Real Full Screen on Android

Get help using Construct 2

Post » Sun Sep 16, 2012 6:10 am

Is there a real solution or a plugin to get displayed a Html5 C2 game in Real Full Screen on Android 2.1 or above without the address bar as on Iphone?villmaxie2012-09-16 07:32:00
B
20
S
12
G
9
Posts: 24
Reputation: 7,545

Post » Sun Sep 16, 2012 3:21 pm

It's best to publish native apps (directCanvas or CocoonJS) since you not only get fullscreen, but the game will run significantly faster too.
Scirra Founder
B
382
S
223
G
86
Posts: 23,998
Reputation: 189,773

Post » Mon Sep 17, 2012 3:17 am

Thank You Ashley, I"ll try your advice...
B
20
S
12
G
9
Posts: 24
Reputation: 7,545

Post » Mon Sep 17, 2012 9:19 am

Its quite easy to get rid of the address bars in iphone. You just need to edit the export-fs.html template, use window.scrollTo(1, 0) and set the window height to an extra 60 px. Works a treat. The same strategy will work to give full screen for Android, but I haven't done it yet as am too busy with iphone versions for now. Android is a bit trickier, as there are different heights of address bar.

If you use an app on iphone, you have to pay apple 30% of cost don't forget, and go through the pain of acceptance.nutmix2012-09-17 09:21:07
B
17
S
6
G
3
Posts: 370
Reputation: 3,942

Post » Fri Jan 17, 2014 2:13 pm

@nutmix - in which area of the .html file do you add the window.scrollTo(1,0) part?

B
73
S
33
G
11
Posts: 935
Reputation: 13,797


Return to How do I....?

Who is online

Users browsing this forum: marcoscodas and 11 guests