PDA

View Full Version : Memory Problems?


spriggan
05-26-2003, 07:40 PM
I'm makeing a game that plays like the old games Breakout and arachnoid. There are multiple levels that are defined externaly as XML files. When you clear the first level it clears the board and sets up a new one. The only problem is that the program slows down after the first level. It's mostly the paddle moves realy slow but the rest of the program moves at the normal speed. But after playing the second level for a while (I haven't gotten it to do this on the first level) the program will come to a crawl for a few seconds then go back to normal.

I'm posting a link to a zip file on my site since it's too big to post here: my zip (http://www.timewastersguide.com/VG/NickelCade/arcanoid.zip)

any thoughts would be helpfull.

Edit: I'm not sure if this is a factor but my PC is a P3 450mhz 256mg of ram. I've ran into a few flash games that I wasn't able to play because of my older PC.

farafiro
05-27-2003, 08:00 AM
I've went through it rapidly but it's yes slow without even starts it, in the authering mode
also, the paddles code, why u r making it moves with onClipEvent(mouseDown), try the onEnterFrame, would work easier and faster

one last thing, if u r on MX, it's better to make all your code in one frame to control the whole thing

search here for OPTIMISE, to optimise your code

spriggan
05-27-2003, 09:34 PM
Thanks for the advice, ya I know I need to work more on optomizeing my Flash code. I've been working on it a lot the past few months but I'm not that good of a coder so it still looks jumbled.

CyanBlue
05-28-2003, 07:46 AM
Can you give me the list of games that you are not able to play???

I can't fix your problem, but I at least can test them...

I'm on PII 300 with 128mb... :D

spriggan
06-02-2003, 09:20 AM
Ya here you go try these flash games at sega.com
http://www.sega.com/vault/minigames/home_minigames.jhtml

Sorry it took so long to reply I've had a busy week, only have a few days free.

Anyway I was relooking at my code and I'm pretty sure one of the big problems is that every level I'm clearing (with removemovieclip) 420 cells and attaching 420 new ones. I'm going to be reworking the code to only attach them once.