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

#1 2012-05-31 12:15:57

jackhonour
New Scratcher
Registered: 2012-05-31
Posts: 1

Sensing help please

Hello everyone,

I am creating a basic game involving a bomb and some knights. i have managed to get the bomb to fire but it the knights aren't hiding when the bomb touches them. I have tried two scripts: one involving an actual sprite touching and the one below is the colour. I have also give details about all the other knight scripts in case that is the problem.

Any help to get the knight to hide when the bomb touches him would be greatly appreciated.

Jack

forever if <touching colour black>
  hide
 
the rest of the script is to forever move right then left and change costumes whilst doing so, so is 'forever' the problem there. Is it re-showing it because I put forever? What should I change?

Offline

 

#2 2012-05-31 12:29:14

infinite_minus_zero
Scratcher
Registered: 2010-02-18
Posts: 100+

Re: Sensing help please

Try doing
When gf clicked
forever
repeat until touching sprite bomb
show
else
hide.

Offline

 

#3 2012-05-31 14:33:17

PhirripSyrrip
Scratcher
Registered: 2012-02-11
Posts: 100+

Re: Sensing help please

You should upload a test project so we can see exactly what's wrong


http://i46.tinypic.com/ao03lk.png

Offline

 

Board footer