How to make Exit and Fullscreen for Node-Webkit game

Get help using Construct 2

Post » Thu Nov 06, 2014 3:47 pm

Hi guys
Sorry for the lame questions but i searched all over and couldn't find answer to that
I'm making windows stand alone client game, not a browser based one, and i cant figure out:

- How to make an Exit the Game action?

- How to change the game to borderless fullscreen mode?

Thanks
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Thu Nov 06, 2014 6:39 pm

Heya Pakost! What you need to do, even though it's aimed at being a stand alone client game, is include the Browser object.

The Browser object has functions (or actions) such as 'request fullscreen' and 'close', using these will close or enable fullscreen even in games exported in Node-Webkit
B
8
Posts: 12
Reputation: 338

Post » Thu Nov 06, 2014 8:05 pm

Cool, thanks, Ill test it as soon as i got to my PC
B
12
S
3
G
1
Posts: 120
Reputation: 1,829

Post » Tue Nov 18, 2014 5:42 pm

@Bilaterus - thanks for the info. I'm almost finished with my first game and I had the very same question.
B
5
S
1
Posts: 53
Reputation: 490


Return to How do I....?

Who is online

Users browsing this forum: jkmalau, MoscowModder, terence951, vegapomme27 and 9 guests