|
if you mean like when you get a star my way: execute code in step event:
| QUOTE | if invi > -5 invi -= 1 if collision_rectangle(x,y,x,y,obj_star,1,1) invi = "whatever you want(must be a number value)" //put this in collision with obj_enemy(other.alarm[0] is its "enemy killed" event) collision_rectangle(x,y,x,y,obj_enemy,1,1) { if invi > -5 other.alarm[0] = 1 else "your event here" } |
if you mean after your hurt execute code in step event:
| CODE | if invi > -5 invi -= 1 //put this in collision with obj_enemy collision_rectangle(x,y,x,y,obj_enemy,1,1) if invi > { "your event(s) here" } |
I didn't test iit, but it should work.
--------------------
rain.AKA Artic I'm gonna miss you ol' pal. See you guys in the 3.0.
|