When I first started my game it went pretty fast, but now it's really slow. my game's size is only 515 KB and it's set to run at 30 FPS. Does anyone know how to fix this?
yes its lagging, and I think I did but i can't remember. also do you think that adding a preloader would help? because it doesn't lag in the menu's just when I get into the game.
i lag quite a bit usually. the best thing to do is only use what you actually need remove anything on your computer that you don't need. doing scans and configurations will help reduce unwanted things and increase mb making computer faster. if your computer is usually faster then make sure you got the best java/flash player for it. also go to task manager there is a little thing called seaport that appears in there that can cause your computer to go slow and isn't needed at all to run anything.
You might have an infinite loop or some element might be creating itself repeatably, significantly slowing the game down. Since only the game has a problem it has to do with poor optimization in your game alone.
Yes well, the problem is you used big images and resized them to fit in your game. The images will stay big in filesize, but are smaller. Thing you need to do: Open the image in photoshop or something. Resize it. Save it as a new file. Voila. Smaller file size but the same result.
I have a car Movie clip that gets attached to the stage about 6 every second but gets deleted a few seconds later, so there are about 12-15 on stage at a time. I think that might be it. The pic's size is 43.9 KB. I will resize it in Photoshop and see if that works.
I don't think just removing the car works without removing reference to it. But I'm not sure what code you are are using, also if your worried about the fps you can check that too. With a textbox or just tracing stage.frameRate
how would you do the stage.frameRate in AS2? I tried this: _root.fpsText.text = stage.frameRate; but that didn't work. The code I use to remove the cars is this: if(_y > 610) { this.removeMovieClip(); }