hi again ,
Create [health] as a number attribute ( you should have already created that!)
and a color attribute [health color] .......
define it's starting value :
DRAWING :
ALWAYS :
------- you would adjust the width( here 200) and height( here 25) as your needs........
note : whatever or however the health is decreased ( by get hit by bullet,etc) then you have to also decrement this [health] attribute also.....
LIKE :
wish it helps you.........
hey, i'm sorry i wasn't clear, i already have that system in place, this is why i want to use draw.
and as for the damage, it's a calculation of defense and the attacker's offense, or ATK attribute.
if it's not clear yet, i made a JRPG replica in stencyl, something i've read was impossible according to the forum, but it's working and now i only polish some aspects like the draw.
thanks for wanting to help by showing me the stages of code, p.s. the when created is not necessary as the color can change in the drawing, which makes the Always not necessary as well, the both work on a frame by frame, so i just put the color change if's in the draw.