That code could be a bit shorter:
then breathe -= 0.5 //Is this "then" actually needed? I've never used it so I wouldn't know.
else breathe += min(breathe+2,100) //Chooses the smallest between breath+2 and 100.
Wait - nonononono this isn't working
i see no reason why it shouldn't. The bar just stays full.
In more detail : in character create, it creates a breath invisible obj.
in step it uses that code above.
in breath obj draw event it uses:
any1 know why it doesn't work? Is it a problem with my collisions?
Edited by Blazingocean, 27 February 2012 - 04:59 PM.