Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Hey yals, i think i touch very important code in this engine. Maybe at priority of message script. Hmm 😢😥😭


___________________________________________

############################################################################################

ERROR in action number 1

of Destroy Event for object parent_menu:

Unable to find any instance for object index '49' name 'obj_player'

 at gml_Script_csc_proceed (line 5) -               obj_player.my_sprite = spr_player

############################################################################################

gml_Script_csc_proceed (line 5)

gml_Script_mev_messageproceed_script (line 6)

gml_Object_parent_menu_Destroy_0 (line 6)

gml_Script_message_menu_step (line 5)

gml_Object_parent_menu_Step_0 (line 10)

Can you help me? 

The error is because there's no player in the room. One way around it is to use with loops instead which does nothing if there's no object that matches it, try replacing the line with this:

with(obj_player){
    sprite_index = spr_player;
}