Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

For some reason I keep getting this error: 

ERROR in action number 1

of Create Event for object obj_main_menu_ui:

[PFE Crash] obj_menu_background did not exist when menu_background_color_set was called

 at gml_Script_crash (line 15) -        show_error(_output, true);

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

gml_Script_crash (line 15)

gml_Script_menu_background_color_set (line 13) -        crash("obj_menu_background did not exist when menu_background_color_set was called");

gml_Object_obj_main_menu_ui_Create_0 (line 8) - menu_background_color_set(c_ltgray);

Is there any way to fix this?

Check the Instance Creation Order in the room, and make sure "obj_menu_background" is created before "obj_main_menu_ui" (note that this is different from the Layer Order)

What should I search for to fix it? Still kinda new to javascript

1. Gamemaker uses GML, not Javascript.
2. Open "rm_main_menu". In the Inspector, click on "Instance Creation Order". Make sure "obj_menu_background" is above "obj_main_menu_ui" on the list.

Ah, thanks

Also tried coding Mario's fireball, but the attack stays as the hadouken. Is there a fix for this?

Nvm, now Mario's turning Green. What's the issue with that?

Sounds like a palette issue https://platformfighterengine.github.io/#/tutorialB6

So since this Mario Sprite has about 15 different colors in one sprite, do I just expand the columns to 15?

The number of columns in the palette is the number of recolors/skins you can use in-game. The number of rows is how many colors are in the original sprite.