At 5/12/09 04:59 PM, Doomsday-One wrote:
Take a look at functions; these are blocks of code you can call up whenever you wish.
I know what functions are... Maybe I should rephrase my problem. In my code, there is one section that does all the actions, and there is another section where I provide values for the different variables that control how my game runs. The first section stays the same for every level. The second section changes for each new level.
The reason I don't want to make a frame for each level is because if I find a problem with the first section, I will have to copy the fixed first section code into all the different frames, which is a huge hassle.
I was thinking that I could make 30 frames, one for each level, as long as each frame only contains the second section, and the first section is somehow imported. Perhaps this could be done with a .as file (which I don't know how to import and use).
I hope that helped clear up my problem.