Fabseven
Member
Hello there,
got a strange problem.
In my game when using "Enter" i show a menu with multiples things
The game is composed of multiples randoms stages so i use some dsgrid and dslist, etc
When i changing stage 5-6 times and access the menu the game crash
draw_sprite_ext argument 2 incorrect type (undefined) expecting a Number (YYGI32)
at gml_Object_obj_system_DrawGUI_3 (line 50) - draw_sprite_ext(obj_hero.stuff[#i,SPR],obj_hero.stuff[#i,SPRN],menu_hero_stuff[i,3],menu_hero_stuff[i,4],2,2,0,c_white,1)
############################################################################################
--------------------------------------------------------------------------------------------
In the log i can see why :
Grid 4, index out of bounds writing [0,13] - size is [3,3]
Grid 4, index out of bounds writing [0,12] - size is [3,3]
Here is the problem : the grid is create one time with 4,50
Why is it reduced to 3,3 and crushing the game ?
a show_debug_message( string( ds_grid_height()) show that the size is indeed reduced at 3
got a strange problem.
In my game when using "Enter" i show a menu with multiples things
The game is composed of multiples randoms stages so i use some dsgrid and dslist, etc
When i changing stage 5-6 times and access the menu the game crash
draw_sprite_ext argument 2 incorrect type (undefined) expecting a Number (YYGI32)
at gml_Object_obj_system_DrawGUI_3 (line 50) - draw_sprite_ext(obj_hero.stuff[#i,SPR],obj_hero.stuff[#i,SPRN],menu_hero_stuff[i,3],menu_hero_stuff[i,4],2,2,0,c_white,1)
############################################################################################
--------------------------------------------------------------------------------------------
In the log i can see why :
Grid 4, index out of bounds writing [0,13] - size is [3,3]
Grid 4, index out of bounds writing [0,12] - size is [3,3]
Here is the problem : the grid is create one time with 4,50
Why is it reduced to 3,3 and crushing the game ?
a show_debug_message( string( ds_grid_height()) show that the size is indeed reduced at 3