Discuss Scratch

danielwelty
New to Scratch
1 post

Health

How do I make it so that if sprite 2 touches sprite 1 four times sprite one “dies” of the game ends.
scubajerry
Scratcher
1000+ posts

Health

In spite 1

when GF clicked
show
set [hits v] to (0)
forever
if (touching [sprite2 v] ?) then
change [hits v] by (1)
if <(hits) = (4)>
broadcast [game over v]
hide
stop [this script v]
end
wait until (not (touching [sprite1 v] ))

Last edited by scubajerry (Oct. 11, 2013 02:07:02)

Powered by DjangoBB