That would depend on how you made your levels. Is each level a background? Does it consist of multiple sprites?
The most versatile method I can think of is to include a new variable called "Level" and set it to 1 at the beginning. Now, whenever a sprite appears on a certain level, they can check if the level is the appropriate number.
For example, if a bad guy shows up on level 3, then add:
If the background changes according to level, just add in a:
When the level is supposed to change, just change Level by 1.
If your player sprite needs to reset his position when the level changes, add this:
If you need anything else or have questions about what I wrote, just ask.
Last edited by Kileymeister_test (2012-12-27 10:24:26)
Offline