I am having an issue using when touching sprite decrement counter by 1. However, its not happening that way. Here is some of my blocks. If its just me being dumb please school me on where I'm going wrong.
<when[ start ]key pressed>
<forever>
<go to x
<pick random(-240 )to( 240)y:(180 )
<hide>
<wait(2 )secsc>
<show>
<glide( 6 )secs to x
<pick random( -240 )to( 240 )y
-200)
<if><touching[ sprite2]
<change{ lives }by(-1)
end if
end forever
I have three sprites with the same blocks and the variable never decrements when they touch sprite2. Any ideas or suggestions? Thanks.
Offline
Try this:
Take out the if.
Make a new script:
When flag clicked forever put the if from the first script in there.
Iis it working?
Offline
Could you upload your unfinished project so we could take a look? It's a bit hard to help when we can't see it
Offline