M
Mandala
Guest
I'm attempting to create something similar to a teleport ability in a game, but this keeps happening after completing the function.
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_Player1:
Unable to find any instance for object index '0' name 'obj_Player1_shadow'
at gml_Object_obj_Player1_Step_0 (line 28) - obj_Player1.x = obj_Player1_shadow.x
############################################################################################
This is the code i'm using to perform the function. Any help is appreciated.
if (keyboard_check(vk_shift)){
obj_Player1_status.Player1energy -= 2
obj_Player1.x = obj_Player1_shadow.x
obj_Player1.y = obj_Player1_shadow.y
instance_destroy(obj_Player1_shadow)
}
___________________________________________
############################################################################################
FATAL ERROR in
action number 1
of Step Event0
for object obj_Player1:
Unable to find any instance for object index '0' name 'obj_Player1_shadow'
at gml_Object_obj_Player1_Step_0 (line 28) - obj_Player1.x = obj_Player1_shadow.x
############################################################################################
This is the code i'm using to perform the function. Any help is appreciated.
if (keyboard_check(vk_shift)){
obj_Player1_status.Player1energy -= 2
obj_Player1.x = obj_Player1_shadow.x
obj_Player1.y = obj_Player1_shadow.y
instance_destroy(obj_Player1_shadow)
}