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

#1 2012-05-24 11:17:55

CheckTheStick
New Scratcher
Registered: 2012-05-24
Posts: 1

Help with Test Game!

http://scratch.mit.edu/projects/CheckTheStick/2561811
I need help with this game. I'm going to do a test of a game,but I can't pass level. I put a door and this:

when gf clicked
if <touching color [#FF0000]?>//I remember,i can do it with "wait until"...
broadcast [Next Level v]
go to x: --- and y: ---
end

Offline

 

#2 2012-05-24 11:26:32

henley
Scratcher
Registered: 2008-06-21
Posts: 1000+

Re: Help with Test Game!

CheckTheStick wrote:

http://scratch.mit.edu/projects/CheckTheStick/2561811
I need help with this game. I'm going to do a test of a game,but I can't pass level. I put a door and this:

when gf clicked
if <touching color [#FF0000]?>//I remember,i can do it with "wait until"...
broadcast [Next Level v]
go to x: ((x position)) y: ((y position))
end

You're problem is that right as the flag is clicked it checks if it's touching the color, and then the script stops.

You need it to be:

when gf clicked
forever
    if <touching color [#FF0000]?>
broadcast [Next Level v]
go to x:((x position)) y: ((y position))
end
end


"I've worked so hard for you and you give me nothing in return. Do you need help... Or do I?"

Offline

 

Board footer