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

#1 2009-05-21 15:44:17

sbzztop
Scratcher
Registered: 2009-05-21
Posts: 2

Proble with the if color is touching color block please hurry!

This is the second parat of my script

<if><color[  ]is over[
<hide>
<end>

Whenever the two sprites touch, and the colors are touching too, nothing happens
What am I doing wrong?
Its a game so i want it so when the sprite touches the sprite#2- Sprite#2 will dissapear

Offline

 

#2 2009-05-21 16:13:35

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Proble with the if color is touching color block please hurry!

Make sure you have a Forever loop around the If test so that the computer is looking again and again to see if the condition is met.  Otherwise it will only check once and that's not what you want.


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2009-05-23 16:06:59

Dudeson
Scratcher
Registered: 2009-05-07
Posts: 25

Re: Proble with the if color is touching color block please hurry!

maybe its better for you to use:
<touching[

Offline

 

Board footer