NodeWebkit - Real Fullscreen

Get help using Construct 2

Post » Wed Jul 24, 2013 8:47 pm

How to make a game exported in the node webkit go fullscreen?
Really fullscreen like other games not only "maximized" ?
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Wed Jul 24, 2013 9:18 pm

Set a fullscreen mode in the project's properties and try the Browser plugin's Request fullscreen action.
B
174
S
79
G
29
Posts: 56
Reputation: 23,532

Post » Wed Jul 24, 2013 9:22 pm

What fullscreen mode?
Where to set the plugin to "request fullscreen"
i want to start the game in real fullscreen at every pc :-)
B
27
S
7
G
3
Posts: 299
Reputation: 4,551

Post » Wed Jul 24, 2013 9:39 pm

If you are not sure which fullscreen mode to choose, try referring to this tutorial.
To get a Request fullscreen action, add a Browser object to your game.
B
174
S
79
G
29
Posts: 56
Reputation: 23,532

Post » Tue Aug 20, 2013 9:05 pm

@Przemek32767, thank you very much. Found the existence of the browser object most useful. Thanks for taking the time to answer.
B
13
S
4
Posts: 67
Reputation: 1,270

Post » Thu Jan 30, 2014 4:14 pm

I kinda ran into the same problem...
requesting fullscreen via the browser object works finde in the browser, but when exported as a webkit node it just flickers briefly, but doesn't go to fullscreen mode.

Any Ideas on that?AndyKayJah2014-01-30 16:15:15
B
6
S
2
G
2
Posts: 31
Reputation: 1,293

Post » Thu Jan 30, 2014 4:17 pm

It works for me. There may be a problem on your end.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,674

Post » Thu Jan 30, 2014 6:16 pm

@squiddster: thanks for pointing that out

tested a new blank project and have the same problem there, so it's not my project. Maybe it's my C2 Installation or my windows is playing tricks on me... gonna investigate...
B
6
S
2
G
2
Posts: 31
Reputation: 1,293

Post » Thu Jan 30, 2014 7:48 pm

ok found the problem I guess

my events for fullscreen:
_______________
1 condition:
keyboard - on F pressed | Browser - request Fullscreen
_______________
2 conditions:
keyboard - on F pressed | Browser - cancel Fullscreen
browser - is fullscreen |
_______________


this works just fine in the browser, but not when using Node-Webkit
(when I'm using a different key for leaving fullscreen it works, what I think is quite inconvenient)
I know, I could define a variable to make it work... but what is the "browser - is fullscreen" condition good for, when I can't use it this way?
AndyKayJah2014-01-30 19:49:07
B
6
S
2
G
2
Posts: 31
Reputation: 1,293

Post » Thu Jan 30, 2014 8:16 pm

@AndyKayJah its because both events get true in the same tick.
In had the same problem.
way to fix it: Add a Wait DT Seconds
before the Request fullscreen and Cancel FullscreenSgtConti2014-01-30 20:17:53
"It's done when it's done"

Shadows of War
Buy on Steam ;)
B
23
S
10
G
7
Posts: 253
Reputation: 4,896

Next

Return to How do I....?

Who is online

Users browsing this forum: Gokee and 2 guests