OK, on the character sprite, add this script:
<when green flag clicked>
<forever>
<if><touching[ TILE
<broadcast[ NEXT LEVEL
<wait until><< <not> <touching[ TILE >>
<end>
<end>
Then add this to the character:
<when I receive[ NEXT LEVEL
<go to x Wherever you want levels to start )y
Wherever you want levels to start
And on the background:
<when I receive[ NEXT LEVEL
<next costume> (this will say "background" not "costume" )
Hope this helps - any questions, feel free to ask
Offline
HotHead25 wrote:
How do i choose where the next level is going to be?
Sorry, I'm not sure I understand you.
There are many ways to change levels in scratch. How you would want to do this depends on how you built your game and your experience with scratch.
One way, similar to what Wolfie1996 said:
you can [broadcast "Next Level"] when you reach a goal. then you can have [when I receive "Next Level"] scripts. to do things in different sprites. and on the background to change the background.
If you upload your project I'll try to help.
Offline
I just checked out the code behind your project - you might want to put the "if touching sprite 5" in a seperate loop - Scratch can only sense one thing at a time in each script, so if keys are pressed in that script, it won't tell if it's touching sprite 5. Hope this helps
Offline