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

#1 2012-06-16 06:56:53

MikeBrain19
New Scratcher
Registered: 2012-06-16
Posts: 10

How a character die

This is all dependent on the fashion and/or manner you want the character to die...there are different ways to do this but the best way to find is something called-expermentation.

However, I'm new here. So I thought after I experiment I can come online and find out how the variable system works.

Offline

 

#2 2012-06-16 08:37:44

sonicfan12p
Scratcher
Registered: 2011-11-16
Posts: 1000+

Re: How a character die

There are many ways to use variables, but the scenario you describe would utilize something like this,

when gf clicked
forever
if <touching [munitions sprite v]?>//whatever the weapon is
change [health v] by [any number you want]
wait [0.5] secs
end
This is one way to do it, but there are many other examples on the scratch main site. Just download a project with variables, and observe how they are used and what they do. Have fun, and Scratch On!


Why are the secret organizations getting all the attention?  mad

Offline

 

Board footer