1
\$\begingroup\$

When setting my game to fullscreen, I get problems with dialogs:

  • "get_save_filename" opens in the background, and when I close it, the game doesn't react anymore.
  • Asking the user a yes/no question exits fullscreen mode and does not enter it again afterwards.
  • "window_set_fullscreen" doesn't seem to do anything either...

Can anyone help?

\$\endgroup\$
  • \$\begingroup\$ How are you asking the user a yes/no question? \$\endgroup\$ – Juanpa Feb 7 at 23:19
0
\$\begingroup\$

By "get_save_filename" dialog, I assume you mean windows dialog to save/load your game somewhere? Here's a few tips:

  • You could potentially make a custom file explorer inside the game, which I don't really recommend, but a lot of games do it and it works.
  • You can simply save/load files only in the game's directory, so when you are about to save the game, the only thing you ask from the user is a slot number, so each user can have their own save.
  • I haven't done gaming in windows for a while, but I assume when you say "Yes/no" questions you mean opening a windows GUI that asks the user a question. From what I remember, when windows has a game fullscreen, it likes to focus on it, so any pop-up would force the game to be minimised, and potentially unload/load assets all over again. If you want your game fullscreen, you don't want to have pop-ups. To be fair, for most games, you don't want GUI pop-ups anyway, as they break immersion with the game.
\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.