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

#1 2013-04-20 16:03:00

KayBug229
New Scratcher
Registered: 2013-04-20
Posts: 1

Sprites touching objects

I am currently writing the scripts for a game and have reached a snag. If my sprite touches another sprite, than the level is supposed to restart. So far, I can only make it to where if one sprite is moving and it touches the other sprite the level restarts. How do I make it so that the sprite can be still and touch the other sprite and the level still restart?

Offline

 

#2 2013-04-20 16:20:37

7734f
Scratcher
Registered: 2010-12-23
Posts: 500+

Re: Sprites touching objects

It should work like this:

when gf clicked
forever
 if <touching [sprite 2 v]?>
  go to x: [-200] y: [0]
 end
Right?

With regards,
~7734f


http://internetometer.com/image/38992.png   http://i37.tinypic.com/2qixx6c.png

Offline

 

Board footer