Skip to main content

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

When I tried the trial version, it showed an error:___________________________________________

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

ERROR in

action number 1

of  Step Event0

for object obj_demo_mascot:

sprite_get_height argument 1 invalid reference to (sprite) - requested -4 max is 97

 at gml_Script_sys_scale_init (line 79) -           var action_height = sprite_get_height(ds_data[# prop._sprite, ds_target]);

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

gml_Script_sys_scale_init (line 79)

gml_Script_vngen_prompt_create (line 112) -              sys_scale_init(ds_prompt, ds_target, global.dp_width, global.dp_height, global.dp_width_init, global.dp_height_init, scale_none);

gml_Object_obj_demo_mascot_Step_0 (line 114) -    vngen_prompt_create("inline", spr_prompt_inline, none, none, auto, auto, 0, trans_none, 0);


IDE v2023.8.2.108 Runtime v2023.11.1.160

Hi linko,

This is a known backwards compatibility bug in GameMaker itself since the introduction of typed variables. For some reason, this particular reference to a sprite in the demo is not recognized as a sprite—despite other references working just fine.

For now, the best workaround is to simply comment out the indicated line 114 of obj_demo_mascot's Step event. You will be missing one of two CTC prompts, but the demo will be fully functional.