Hi i am making a game and i want to learn abou how to make levels, if someone could tell me or give me an example that would be great thx
Offline
This is the way I do it, but there's probably a better way.
Make a variable called "level". then, put this script in the stage:
<when green flag clicked>
<set{ level }to( 1
<broadcast[ change level
Then put these in the sprites that change:
<when I receive[ change level
<if><( <{ level }> <=> 1 )>
your actions here
<end>
<if><( <{ level }> <=> 2 )>
your actions here
<end>
Then, whenever you reach the end of the level make it change level by 1 and broadcast change level.
Last edited by hmnwilson (2008-12-20 16:09:36)
Offline
Offline
If you aren't making a scroller, set a designated goal colour. For instance...
Player:
[blocks]<when green flag clicked>
<forever>
<if><touching color[ red
<broadcast[ level_up
<end>[/blocks]
Stage (if that's where your environment is):
[blocks]<when I receive[ level_up
<next costume>
<when green flag clicked>
<forever>
<if> <( background # <=> final level number )>
<switch to costume[ you win!
<end>[/blocks]
Oh, and you should actually use the blocks tag! It explains it right in the post and doesn't make all your text bold!
Last edited by big-bang (2008-12-22 20:13:08)
Offline
I use
[blocks]<when green flag clicked>
<set{ level }to(1
<forever>
<if><touching color[
<change{ }by( 1[/blocks]
in the player sprite and then the background:
[blocks]<when green flag clicked>
<forever>
<switch to costume[ <{ }>[/blocks]
Offline