Hi,
I tried to follow the menu group tutorial, but menu groups seem buggy.
When I run my tutorial code I get the following error:
###
sprite_get_width argument 1 invalid reference to (sprite) at gml_Script_anon_GGL_sub_panel_gml_GlobalScript_scr_GGL_sub_panel_5522_GGL_sub_panel_gml_GlobalScript_scr_GGL_sub_panel (line 302) - var _baseW = sprite_get_width(sprite_index) * image_xscale * owner.scale_relative.x;
###
If I check line 302 in scr_GGL_sub_panel there seem to be some variables not initialized. I tried to fix the code with the following modifications:
- I initialized _baseW/_baseH with value 0 at 268, so they're declared earlier.
- I also replaced lines 302-303 with the code from lines 280-287, but used _baseW/_baseH instead of _w/_h
That makes the code run. But the buttons still don't work perfectly. The hover section of the button is very small around the center.
There seem to be more problems. Changing the font in parent_GGL_menu variables doesn't work.
Also I'm not able to center the menu - but this could be a problem with the camera I use (I'm using stanncam from Github). GGL seems to ignore the resolution of the camera and only uses a fraction of the resolution, so items are cut off.
FYI, these errors also happen to the demo room 12.
Could you please have a look at my problems? You probably can ignore the camera problem, as it seems to be an incompability with stanncam. I probably need to fix this myself.