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:19:47

cord_thundertree
Scratcher
Registered: 2011-05-29
Posts: 26

Making something disappear after multiple clicks.

I am trying to make a zombie game and I can't seem to make something disappear after more than one clicks.

Offline

 

#2 2013-04-20 19:29:10

Smozzick
Scratcher
Registered: 2011-10-23
Posts: 100+

Re: Making something disappear after multiple clicks.

In the sprite create a variable and when it asks if your want it to be for all sprites or just that one put just that one. Call it Health.

When the zombie first appears set Health to whatever you want its maximum to be, e.g.

when gf clicked
set [Health v] to [3]
Then put in this:

when Zombie clicked
change [Health v] by [-1]
if <(Health) = [0]>
hide
any other code you need to use to get rid of it
end


http://i50.tinypic.com/ded8m.png

Offline

 

Board footer