PDA

View Full Version : tile based game trouble!


mygameline
11-05-2007, 08:02 PM
Hello everyone.
I'm making a tile based game and I'm encountering a specific issue.
it does not scroll like mario. it is more of a donkey kong type where all the tiles are on the screen and you just kill the enemies.
everything is working. all the code is on one frame.
on the first level. things run very smoothly.
when you kill all of the enemies it calls a function to make the next level.
same name for the array and such.
then even with the same number of enemies and tiles it begins to run slowly. then as you play more levels it is just unbearable.
it lags and freezes up and i can see it is using more and more CPU power
Would this have to do with the array? and loading the new levels into it?
I'm so confused! i've been wracking my brain and i am pretty new to this anyway so any help would be amazing!
Thank you!