when gf clicked set [health v] to [10]
When I receive [hit v] if <((health) - (hitdamage)) < [1]> character dies else change [health v] by <[0]-(hitdamage)> endThis bit checks for if the health will drop too low; you can replace the hitdamage variable with the actual damage as needed if you want to. Also doesn't have to be placed in a broadcast.
Last edited by Smozzick (2013-01-27 05:48:38)
Offline
i want to make sprite when touch any sprite it have to stey on the sprite like when i control a sprite, when it land on
a line it will stay on the line not moving down the line
Offline