I'm making a simple platformer, I already have movement going fine, and he can destroy blocks and stuff, but I can't figure out how to do levels, can someone help
Offline
hello? can someone help me?
Offline
please help!
Offline
Make a variable for levels. Set it to one at the beginning of game. Once the character reaches the end of the level, change the variable by one.
For the different background of the levels, make a background for each level then use this script:
[blocks]
<when green flag clicked>
<forever>
<switch to costume[ <{ level }>
<end>
[/blocks]
For the particular sprites on each level, use this script
[blocks]
<when green flag clicked>
<forever>
<if><( <{ level }> <=> level the sprite is on )>
<show>
<else>
<hide>
<end>
[/blocks]
Hope that helps!
Offline