Adaptation tab and mobile (iOS/Android)

Get help using Construct 2

Post » Wed Mar 19, 2014 8:20 pm

Hello, there is a tutorial with detailed instructions to make a game perfectly suited to tablets and mobile android/iOS?
I can not position the sprites / backgrounds in the same way in all supports.

A recent tutorial you've already tried

Thank you
B
7
S
1
Posts: 71
Reputation: 642

Post » Wed Mar 19, 2014 10:37 pm

Did you have a look at this?
https://www.scirra.com/tutorials/73/sup ... reen-sizes

It explains the options for "Fullscreen in browser" and also gives tips on how to setup your ui to scale properly.
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Wed Mar 19, 2014 10:46 pm

Well actually it does, it just shows those different screen sizes by example of a resized browser-window.

Basically you may wanna go with "Scale Outer" and have your UI elements with anchor-behavior and use expressions to get the current screen. I.g. ViewportRight for the width and ViewportBottom for the height of your screen.
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Wed Mar 19, 2014 10:58 pm

Thank you for your reply.

I tried several things but I can not fix the problem for android :(

IOS (perfect): img.imagesia.com/fichiers/hf/ios_imagesia-com_hfmg.png
Android (bug): img.imagesia.com/fichiers/hf/samsung_imagesia-com_hfmh.png
B
7
S
1
Posts: 71
Reputation: 642

Post » Wed Mar 19, 2014 11:02 pm

Did you add Anchor behavior to the button?
When you added it, try setting the edge-attributes.

In your case i believe you want to go with Top edge "Window Bottom".
B
22
S
7
G
4
Posts: 154
Reputation: 3,709

Post » Wed Mar 19, 2014 11:13 pm

I just put an anchor on the button and I put like you said but there is a problem:

Scale inner:
iOS: img.imagesia.com/fichiers/hf/ios_imagesia-com_hfmj.png
Android: img.imagesia.com/fichiers/hf/samsung_imagesia-com_hfmk.png

Scale outer:
iOS: puu.sh/7BWNZ.jpg
Android: puu.sh/7BWw2.jpg

In Construct 2 the button is located at the bottom right

And the background is always cut at the bottom on android :(

Parralax: 0,0
Scale rate: 0

Button > Anchor
Left edge: Window left
Top edge: Window bottom
Right edge: none
Bottom edge: none
Last edited by Sikro on Thu Mar 20, 2014 12:15 am, edited 1 time in total.
B
7
S
1
Posts: 71
Reputation: 642

Post » Thu Mar 20, 2014 1:24 am

My capx: mega.co.nz/#!AwdThbxJ!lXQ85kln6O1qkQkHbACgNgcEG4gY2XBir082I9-7S4Y

If someone could make my game (Layout menu) is compatible with mobile/tablet android & iOS dimensions so that I know how to do in the future ...: (
B
7
S
1
Posts: 71
Reputation: 642


Return to How do I....?

Who is online

Users browsing this forum: inkfalcon, jorgmaquoi, kettering bug, senecaa and 17 guests