This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-12-21 12:40:02

telmacblack
Scratcher
Registered: 2009-12-21
Posts: 4

How do I make separate levels?

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

 

#2 2009-12-21 12:41:59

telmacblack
Scratcher
Registered: 2009-12-21
Posts: 4

Re: How do I make separate levels?

hello? can someone help me?

Offline

 

#3 2009-12-21 16:47:28

telmacblack
Scratcher
Registered: 2009-12-21
Posts: 4

Re: How do I make separate levels?

please help!

Offline

 

#4 2009-12-21 18:01:21

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: How do I make separate levels?

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!


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

Board footer