How do I run my game full screen by default?

Get help using Construct 2

Post » Thu Nov 20, 2014 5:33 pm

Hi,

As the subject says, I'm trying to call the Request fullscreen action of the browser object on start of layout but it's not working. Does anyone knows what do I have to do to achieve this?

Thanks
B
12
S
2
G
1
Posts: 32
Reputation: 756

Post » Fri Nov 21, 2014 10:27 pm

From the manual entry on the Browser object:

Request fullscreen
Request that the browser enter fullscreen mode. Note the browser may ignore this request unless the action is in a user-initiated event, such as a mouse click, key press, touch event or button press.
B
86
S
43
G
71
Posts: 601
Reputation: 43,619

Post » Mon Nov 24, 2014 9:25 am

Thaks for the answer, spacedoubt.

However most browsers ignore the fullscreen request unless it is made in a user-input trigger. This is to prevent websites annoying the user by automatically entering and exiting fullscreen mode.


Yes, it makes sense...
B
12
S
2
G
1
Posts: 32
Reputation: 756

Post » Mon Nov 24, 2014 9:41 am

Node-webkit can go fullscreen without user input though.
B
10
S
2
G
1
Posts: 49
Reputation: 693


Return to How do I....?

Who is online

Users browsing this forum: Microbex and 22 guests