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
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 endThis 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!
Offline