Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Gameframe

Custom window frame for GameMaker games · By YellowAfterlife

[Fixed in 1.0.1a] Awesome plugin - missing sprite on gameframe_draw()?

A topic by Studio Spacefarer created Dec 09, 2022 Views: 158 Replies: 1
Viewing posts 1 to 2
(4 edits) (+1)

Thanks so much for creating this! It's something I've been bashing my head against for a long time and eventually gave up on, so I'm very glad someone else figured it out. :)

I'm hitting an error when starting the game. obj_window_frame_manager is visible and persistent, and created in rm_init by an initializer object, same as all my other manager objects. rm_init jumps to the main game room after a few frames.

I imported all from the yymps file, which I downloaded 9 Dec 2022. obj_window_frame_manager simply calls gameframe_init() on Create, gameframe_update() on Step, and gameframe_draw() on Draw GUI.

I'm on IDE v2022.11.0.54 and runtime v2022.11.0.73.

___________________________________________ ############################################################################################ ERROR in action number 1 of Draw Event for object obj_window_frame_manager: Trying to draw non-existing sprite.  at gml_Script_gameframe_caption_draw_border_default (line 803) -        draw_sprite_stretched_ext(gameframe_spr_border, (window_has_focus() ? 1 : 0), __x, __y, __width, __height, gameframe_blend, gameframe_alpha); ############################################################################################ gml_Script_gameframe_caption_draw_border_default (line 803) gml_Script_gameframe_draw (line 1055) -        if (!gameframe_isMaximized_hx) gameframe_caption_draw_border(0, 0, _gw, _gh); gml_Object_obj_window_frame_manager_Draw_64 (line 4) -        gameframe_draw();

I debugged through gameframe.gml and looks like all the sprite globalvars are being set to -1, including gameframe_spr_border.

Thanks again and best of luck on everything. 

Україна в моєму серці

Developer

Oh right, I should probably bundle the default button sprites with the extension so that users don’t have to set them. You can get them from the demo project or GitHub for now.