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

#1 2013-04-21 10:53:36

cord_thundertree
Scratcher
Registered: 2011-05-29
Posts: 26

Help with touching sprites.

When I make a sprite get touched by another, I made it broadcast "Game Over" and something pops up. But when i click green flag it broadcasts game over when the sprites have not even touched. Please help.
      when gf clicked
           if touching sprite1
broadcast Game Over
that is my script.

Last edited by cord_thundertree (2013-04-21 10:56:27)

Offline

 

#2 2013-04-21 12:25:56

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Help with touching sprites.

Couple of things:

should be:

when gf clicked
forever
if touching [sprite v]?
broadcast [Game Over v]
end
You should also ensure that when you start a new game they aren't touching by putting a set x and set y block before it starts the forever loop.


http://i50.tinypic.com/ded8m.png

Offline

 

Board footer