Skip to main content

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

Hi there, I've been messing around with some of the code and have been deleting the parts with the emotes and portrait to see what it would like like without them and how the system will work. Deleting some of the code for these could be my problem... When I start up the game and go to the object to start the text it stops and gives me the following error: 

FATAL ERROR in

action number 1
of Key Press Event for <Space> Key
for object obj_player:

instance_create_layer :: specified layer "Text" does not exist
 at gml_Script_create_dialogue (line 16) - var _textbox = instance_create_layer(x,y, "Text", obj_textbox);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_create_dialogue (line 16)
called from - gml_Object_obj_player_KeyPress_32 (line 1) - create_dialogue("Just a little monologue.", -1);

If there is anything wrong here or someplace that is crucial to the code that I need to go to fix please let me know! Thank you!

Hey - it looks like this is actually because you don't have a layer called "Text" in your room. This is where the textbox will get spawned by default.

Deleted 3 years ago

Thank you so much!