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

#1 2011-08-22 05:16:18

dk233
Scratcher
Registered: 2011-08-22
Posts: 7

Making new levels?

ok is there a way to make it when my dragon gets to the next portal the background stays the same but the wizard goes and there are different obstacles? plz plz plz i have a really cool idea for a game and i need to know how isnt there like a "When Sprite1 touches Sprite3" fovever if brodcast next level or something?
plz plz plz plz help me.
thanks everyone  smile

Offline

 

#2 2011-08-22 06:17:53

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: Making new levels?

Let's say we have four sprites: dragon, portal, level1wall, and level2wall. The level1wall is a wall that appears on LEVEL 1 ONLY, and the level2wall is wall that appears on LEVEL 2 ONLY.

Apply this script to the dragon:

<when green flag clicked>
<wait until> <touching[ portal
<if> <( <{ Level }> <=> 1 )>
<set{ Level }to( 2

Apply this script to level1wall:
<when green flag clicked>
<forever>
<if>
<( <{ Level }> <=> 1 )>
<show>
<else>
<hide>

Do the same with level2wall except replace the 1 with a 2.

For three or more levels, create another script for the dragon in the same way but replace the 1 with a 2 and the 2 with a 3.

Then make the level 3 walls and create the same script as level1wall, but replace the 1 with a 3.

The portal will need a script so it goes to the right place in each level. If you need help with that ask.


http://i.imgur.com/gp6tZ.gif

Offline

 

#3 2011-08-23 03:40:13

dk233
Scratcher
Registered: 2011-08-22
Posts: 7

Re: Making new levels?

thanks but i works but 041 gave me simpler insturtions thanks for taking the time  smile

Offline

 

Board footer