That code could be a bit shorter:
if place_meeting(x,y,Swampwater)
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:
draw_healthbar(view_xview+2,view_yview+50,view_xview+60,view_yview+55,breathe,c_black,c_blue,c_blue,
0,true,true)
any1 know why it doesn't work? Is it a problem with my collisions?
Edited by Blazingocean, 27 February 2012 - 04:59 PM.