[SOLVED] Stretching for android tablets.

Get help using Construct 2

Post » Sat Feb 02, 2013 12:05 pm


Been playing around with experimental apps,
converted via cocoon js and deployed on android market

and i have noticed they are fine on a phone, up to around 5"
minitablets, however when you load it into a normal tablet
it does not "stretch" or fill as on the phone, and i end up with
a whitespace or bar on side from the the lack of background.


Is there any way i can secure a correct fill of the background
on any size view, even if some crazy person would load it into a 55"inch
screen, now that android is coming to Tv's.. Vaupell2013-02-02 22:49:10
B
11
S
2
G
4
Posts: 6
Reputation: 2,777

Post » Sat Feb 02, 2013 9:32 pm

I've not managed to actually get anything published to a testable APK on appmobi, but you can get the screen edges by using ViewportBottom,ViewportTop system variables to align things.

The rest, like UI, backgrounds etc can then be scaled/repositioned to get a layout that fits into the various aspect ratios.

My phone is 16:9 but ipods seem to be at 4:3 still.JohnnySix2013-02-02 21:33:04
Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Sat Feb 02, 2013 10:13 pm

[QUOTE=JohnnySix] ViewportBottom,ViewportTop system variables to align things.
[/QUOTE]

Thank you for this!
I'ts mostly the border that annoys me.

I've pulled the app since it was just for testing purposes.

My fiance was sad one day so I've made an app that does nothing but
show a screen with text and play some music saying "love Vera"

That really cheered her up :D

But noticed the same issue here as with the test app,
with scaling on tablet not matching like it did on the phone..


Love app link :p
https://play.google.com/store/apps/details?id=org.evisystems.vslykVaupell2013-02-02 22:13:56
B
11
S
2
G
4
Posts: 6
Reputation: 2,777

Post » Sat Feb 02, 2013 10:45 pm

B
14
S
6
G
2
Posts: 136
Reputation: 3,210

Post » Sat Feb 02, 2013 10:48 pm

[QUOTE=wretchedshark] supporting multiple screen sizes

does this help?[/QUOTE]

Nice of you,

Thank you..

had to remove the last part of the url for the link to work..
but i got it.

http://www.scirra.com/tutorials/73/supporting-multiple-screen-sizes

Thumbs up!   
B
11
S
2
G
4
Posts: 6
Reputation: 2,777


Return to How do I....?

Who is online

Users browsing this forum: adi pratama and 24 guests