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

#1 2010-11-17 18:53:05

topsnakebite
New Scratcher
Registered: 2010-10-07
Posts: 2

Need help with game

Hello im new here and need some help with my game i want it so that when the character gets to the end of the screen it changes to the next level i cant seem to figure it out

Offline

 

#2 2010-11-18 00:40:01

2l84zwamani
Scratcher
Registered: 2010-09-27
Posts: 100+

Re: Need help with game

You can make the end of the screen a specific colour, and put this in the main sprite:

When flag clicked
Forever
If touching colour colouroftheendofthescreen
Broadcast next level
EndIf
EndForever

Is that what you wanted?  smile


I will be a Ms. Pickle Dr. Deadpebble Great Person <forever>
http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3http://is.gd/d55N3 GROB THE SLIME WILL TAKE OVER THE WORLD!

Offline

 

#3 2010-11-18 12:31:09

topsnakebite
New Scratcher
Registered: 2010-10-07
Posts: 2

Re: Need help with game

yeah thanks but need that for like 4 levels and i need him to go to the start of each level

Offline

 

#4 2010-11-18 13:49:16

ob6160
Scratcher
Registered: 2010-10-10
Posts: 500+

Re: Need help with game

can you post an example to make solving a bit clearer?

OB6160


http://i45.tinypic.com/2jcygsy.gif

Offline

 

#5 2010-11-18 16:19:38

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Need help with game

topsnakebite wrote:

yeah thanks but need that for like 4 levels and i need him to go to the start of each level

Change 2l84zwamani's script to look like this:

Code:

When flag clicked
set level to 1
Forever
   If touching color (color)
      change level by 1
      Broadcast next level
   EndIf
EndForever

When I receive next level
If level = 2
   go to x: __ y: __
EndIf
If level = 3
   go to x: __ y: __
EndIf
If level = 4
   go to x: __ y: __
EndIf

http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://i.imgur.com/OZn2RD3.png&amp;link2=http://i.imgur.com/duzaGTB.png&amp;link3=http://i.imgur.com/CrDGvvZ.png&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer