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
16
S
9
G
9
Posts: 24
Reputation: 7,145

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
362
S
216
G
75
Posts: 23,120
Reputation: 180,504

Post » Mon Sep 17, 2012 3:17 am

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

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
15
S
5
G
2
Posts: 357
Reputation: 3,691

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
54
S
22
G
8
Posts: 849
Reputation: 10,489


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests