00:00
00:00
Newgrounds Background Image Theme

Chan99 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

A WIP Help with lag

Share Collapse

Author Comments

*EDIT*
I have Fixed the lag issues and the game will continue production as planned. Thanks newgrounds.

Well i have been working on this game for about 3 - 4 days now and i would like to move on, but on the second frame, the character create screen, there is some lag, and i cant figure out why, i have searched on google for any possible solutions, and can't seem to find anything that helps.
The only thing on the second frame that is constantly using action script would be the leaves, there programmed to have a random fall speed and x position, and when hit the bottom of the screen go to the top again and reset the x position and fall speed. Other than that the rest is pretty much variables. The Leave thing doesn't make sense though because they have the same programming as the rain drops in the menu frame, and the rain doesn't lag, and theres gotta be at least 100 rain drops or so.
is it just because the animation is ( I think) done well on the character create screen that i should turn the entire background into a single image file? (gif, jpeg, png, ect.)
Please help me out here, thanks.

Log in / sign up to vote & review!

This is an Alpha, not a finished game. Remove the bugs, improve graphics, add more content, and polish it.

Well

Looks like it will be a great game. Can't wait to see your final product!

Know nothing about flash but...

Looks like it's going to be a beautiful game. Can't wait to see the full version. I'll be keeping an eye out! Good luck.

acokecan responds:

thanks, and i fixed the problem to no worries

Very nice

Look forward to playing this game when you have it finished.

I didn't experience any lag during the character screen, but while monitoring my cpu performance, the rain drops screen was using about 14% to 17% of my cpu and the leaves were using about 60% to 68% cpu. So yeah, there is a problem. It's hard to say if it's the code or the background, although you should probably leave the quality setting option in the right click menu so the user can change the quality if they experience the lag. You should probably test that first to confirm if it's the quality causing the lag or the code by lowing the quality settings. Once you've confirmed that it's not the images by adjusting the quality and monitoring your cpu usage (such as task manager if you have windows) then try commenting the code that is controlling the leaves and run the flash again to test and see if it's the code causing it or not.

But yeah, this looks like it will be an amazing game. Good Luck!

acokecan responds:

What i ended up doing was turning the background into a PNG image, it lokos exactly the same, but there is no lag whatsoever, so i may now continue my game as planned, this will help so i will be able to have high quality large maps. there will also be many quality reducing options in game so everyone will be able to play.

be looking for this game on release :D
(i also plan to have multiplayer)

Can't wait to see this game finished

I stugled with this game for about 5 minutes then I read your description. I like the game and you're an awsome designer, so here's what you have to do at a first look.
1) Make sure every animation has a startMe() and stopMe() function. All your animations are probably running on the background at the same time so you need to start them only when they are visible, and stop them when they are not visible.

2) Remove any eventListeners the are not used anymore, also remove from the stage all the leaves that fall of the screen.

A little animation managment is all you need

Hope this helps and can't wait to see this game finished ;)

acokecan responds:

What i ended up doing was turning the background into a PNG image, it lokos exactly the same, but there is no lag whatsoever, so i may now continue my game as planned, this will help so i will be able to have high quality large maps. there will also be many quality reducing options in game so everyone will be able to play.

be looking for this game on release :D
(i also plan to have multiplayer)

Credits & Info

Views
6,016
Votes
10
Score
4.04 / 5.00

Uploaded
Jan 6, 2010
11:40 PM EST