(05-18-2020, 09:07 PM)SuperSledgeBro Wrote: Try changing:
"and (obj_flyingmario.sprite_index != spr_mario_cape_fly or not instance_exists(obj_flyingmario))"
into:
"and ((obj_flyingmario.sprite_index != spr_mario_cape_fly and instance_exists(obj_flyingmario)) or not instance_exists(obj_flyingmario))"
Nope, didn't work!
Code:
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Draw Event
for object obj_capeanimation:
Unable to find any instance for object index '417' name 'obj_flyingmario'
at gml_Object_obj_capeanimation_DrawEvent_1 (line 2) - and ((obj_flyingmario.sprite_index != spr_mario_cape_fly and instance_exists(obj_flyingmario)) or not instance_exists(obj_flyingmario))
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Object_obj_capeanimation_DrawEvent_1 (line 2)