elmagnum
Member
I have two objects: o_player and o_holder.
o_holder is persistent and is created when the game starts. o_player is not persistent and only is created when the game room is entered. This one needs variables form o_holder to work.
I put an option to restart the level in the pause menu [room_restart();]. However, when the room is restarted, an error appears saying that the holder object wasn't found by the player object:
I believe persistent objects are supposed to persist even if the room is restarted, right? Any ideas on how the holder object is disappearing?
Thank you.
o_holder is persistent and is created when the game starts. o_player is not persistent and only is created when the game room is entered. This one needs variables form o_holder to work.
I put an option to restart the level in the pause menu [room_restart();]. However, when the room is restarted, an error appears saying that the holder object wasn't found by the player object:
Code:
___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object o_player:
Unable to find any instance for object index '26' name 'o_holder'
at gml_Object_o_player_Create_0 (line 2) - level = o_holder.level;
############################################################################################
gml_Object_o_player_Create_0 (line 2)
Thank you.