How to make full screen on mobile devices?

Get help using Construct 2

Post » Tue Dec 27, 2016 4:16 am

Hi there, I'm trying to build a mobile application. Testing the app on mobile devices, it shows black bar on top and bottom of the device, to solve this and to support multiple screen size, is there anyway to stretch the layout to fill the whole screen instead of showing the black bar?

I had some idea, but it doesn't really work..

Set a global variable myScale,
At start of layout,
- set myScale = WindowWidth/LayoutWidth
- set layout scale = myScale
- set layer scale = myScale

Can anyone share how they make fullscreen on mobile device please..?
B
48
S
20
G
6
Posts: 72
Reputation: 6,472

Post » Tue Dec 27, 2016 4:24 am

Well, when I had a problem with full screen on mobile, I just put; Every tick - Set Fullscreen scaling to High Quality. And it worked perfectly.
B
14
S
8
Posts: 11
Reputation: 1,336

Post » Tue Dec 27, 2016 4:39 am

@GameOverBeast nice! It's working perfectly, thanks dude!
B
48
S
20
G
6
Posts: 72
Reputation: 6,472

Post » Tue Dec 27, 2016 1:48 pm

Your very welcome
B
14
S
8
Posts: 11
Reputation: 1,336

Post » Fri Mar 24, 2017 5:58 pm

Hi, just in case you want to have your testing in fullscreen on Android, i have just found out this:
- call your game within the browser. In Example at 192.xxx.xx.xx:50000
- Once it is loaded call the browser menu and choose "Add to Home screen"
An icon will be added to your smartphone homescreen
- Click on it and it will appear in fullscreen without any bars or menus
B
6
S
1
G
1
Posts: 14
Reputation: 878


Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, MikaelS, nahima and 23 guests