How can I display a fullscreen game like youtube video?

Discussion and feedback on Construct 2

Post » Fri Feb 26, 2016 5:57 am

Hello guys! i'm developing a few games in Contruct2 and want to make the games I play on mobile show up on full screen without the top bar of chrome or any other navigator. Something similar to youtube videos when showing up on full screen.

Spanish:

hola chicos estoy desarrollando un juego en construct2 y quiero hacer que los juegos en dispositivos moviles se muestren en pantalla completa y que la barra superior del navegador no se muestre. algo similar a los videos de youtube que ocupan toda la pantalla.
B
3
Posts: 5
Reputation: 185

Post » Fri Feb 26, 2016 7:26 am

Use the Browser object's Request fullscreen action. Note however that this action must be used with an user input (like pressing a button or clicking on something). So, don't use it with events like "On start of layout".

Also, next time use the How do I? section of the forum for these kind of questions ;) :
how-do-i_f147
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797

Post » Fri Feb 26, 2016 3:20 pm

Hello! thank you! I have read in other forums and explain the same thing as you say. there any way to start the fullscreen mode at the beginning of layout?
I can control this from the index.html file with javascript?
thanks!
B
3
Posts: 5
Reputation: 185

Post » Fri Feb 26, 2016 4:10 pm

I think it's not possible due to a browser limitation. However you might want to give it a try with NW.js.
B
137
S
33
G
17
Posts: 1,560
Reputation: 20,797


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests