How do I make game rotate/resize to fit screen

Get help using Construct 2

Post » Tue Apr 26, 2016 1:27 am

Really hate to ask this as im sure its somewhere. Here goes

Developing an app/game for a mobile device, ipad, android etc... Is there a way to make the game resize when the device is rotated so it fits the screen?

In portrait the d pad a/b button are on the left and right respectivly. Rotate the device to landscape and the controls shift/slide left/right to fill screen.

Thanks
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Post » Tue Apr 26, 2016 3:20 am

Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Apr 29, 2016 3:41 pm

That is great information but not exactly what I'm looking for. I have posted screen caps of what is happening and what I'm looking to accomplish. Any help would be awesome. thanks

Current App
Image
Image

Desired
Image
B
21
S
7
G
1
Posts: 128
Reputation: 3,076

Post » Wed May 04, 2016 6:21 am

You are using letterbox scale. You'll need to use Scale Inner or Scale Outer and design your views accordingly, as described in the tutorial.

Also I accidentally posted the second page of the tutorial. Here is the first page, in case you didn't notice it had a first page - https://www.scirra.com/tutorials/73/sup ... zes/page-1
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Wed May 04, 2016 3:51 pm

you need to lock the orientation to "landscape" and that should solve it. however if your exporting using ludei u have to choose again the fit of the screen and if you have it the wrong way... they wont match... if its made in intelxdk u dont need to worry for the fit just lock the landscape and design your game to fit the landscape view .

Image
B
75
S
22
G
68
Posts: 1,337
Reputation: 43,271

Post » Wed May 11, 2016 12:32 pm

I make an app and need landscape and portrait and just "hacked" this together and it seems to work so far.
Image

This does not work for games with levels cause you had to make all levels again but I think it will work for my App. I just rearrange the objects on the landscape layout so it fits better on wide screens. Or any other ideas how to do this? (I thought about showing different layers with UI elements on different positions, too).
B
54
S
16
G
6
Posts: 719
Reputation: 9,207

Post » Fri May 13, 2016 5:30 pm

Excellent, thank you. I did find Scale Outer eventually. I was not able to get the Orientation to work, but was able to force it to landscape with Intel XDK. I really appreciate the responses.
B
21
S
7
G
1
Posts: 128
Reputation: 3,076


Return to How do I....?

Who is online

Users browsing this forum: evillair, vankizzle and 8 guests