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

#1 2009-05-04 21:32:10

sambodhi11
Scratcher
Registered: 2009-05-03
Posts: 2

Gameplay- Level 2

How can I make it so that there are several levels in the game to beat? Like if the object touches a boat, It goes on to level 2 with a whole different environment? I have a lot of decorations already on level one, and I want all of them to disappear as well as the background. Please help.

Offline

 

#2 2009-05-04 21:35:01

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: Gameplay- Level 2

Create a variable named level. If you have different sprites, you can tell the sprite to:

Forever
If <Level = 1>
Show
Else
Hide

Or you can have different costumes in one sprite

Forever
Switch to Costume [Level]

Or you can put everything onto one background:

Forever
Switch to Background [Level]

For the character sprite,

Forever if <touching object>
change level by 1
Go to starting position

Offline

 

#3 2009-05-04 23:42:07

ScratchMusicGroup
Scratcher
Registered: 2009-04-12
Posts: 100+

Re: Gameplay- Level 2

yeah but watch out for the hide and show variable glitch online


http://i44.tinypic.com/2yjx4ht.jpg                  http://i44.tinypic.com/xljspe.png        http://i40.tinypic.com/16c3rdi.png        http://i39.tinypic.com/16jowol.png

Offline

 

Board footer