Well, when you reach a door (for example) you will broadcast something (or change a variable). Than either the background or level sprite will change according to what it receives (like level2, or on my Scribble demo, I broadcasted next level and changed the level variable by 1 so it knew wen the game ended)
Offline
can you explain in more detail please
Offline
Levels are not something you easily put onto Scratch. There is no code for "change level" so you have to find a means of duplicating the effect. For me, I usually change the background based on levels. So, lets say you want to get to a door, have it sensed so when you touch it, it does this:
change level by 1
broadcast next level and wait
Now on your background you can make it so
When I recieve next level
set background to level.
Also, always remember to make it so:
When green flag clicked
set level to 1
broadcast next level
(Just so the level starts as level 1)
Offline
that's very well explained newareagle, since levels are pretty hard to say on the forums. They aren't like "How do you scroll?".
Offline
Bluestribute wrote:
that's very well explained newareagle, since levels are pretty hard to say on the forums. They aren't like "How do you scroll?".
Thanks blue. Its quite hard to explain programming in text, but I try to make it more simple.
Offline