Toggle between Windowed and Fullscreen Mode?

Learn how to start making games.

Toggle between Windowed and Fullscreen Mode?

Postby tdmxross » Thu May 03, 2018 5:17 am

I want to add a toggle button in game, which can toggle the view in full screen and Window mode. i've played some games in which they have 'toggle full screen' button in options. i tried exporting my game in both full screen and window mode, then added the button to switch between those files. but this requires both files and takes more storage space. what can we do about this? :!:
GE is better than every single game engine
User avatar
tdmxross
 
Posts: 48
Joined: Sun Dec 24, 2017 7:12 pm
Location: Maharashtra, India
Score: 4 Give a positive score

Re: Toggle between Windowed and Fullscreen Mode?

Postby lcl » Thu May 03, 2018 11:34 am

There's not much you can do. Game Editor doesn't support changing the view mode while in game. Your solution is the only way to add that functionality to a game.

You can save some space by exporting only one of the two versions as an executable, and using the "Game Data Only (iPhone, iPad or game level without the executable engine)" export option for the other version to export it as a .dat file.
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Toggle between Windowed and Fullscreen Mode?

Postby tdmxross » Fri May 04, 2018 6:47 am

that's okay, i think i should export the game in 800 X 600 resolution. full screen won't be necessary if the game is already 800 X 600 8) . plus i don't need to work on two files! :D

thank you for replying.
GE is better than every single game engine
User avatar
tdmxross
 
Posts: 48
Joined: Sun Dec 24, 2017 7:12 pm
Location: Maharashtra, India
Score: 4 Give a positive score


Return to Getting Started

Who is online

Users browsing this forum: No registered users and 1 guest