[mobile]Problems with screen resolutions

Get help using Construct 2

Post » Fri Sep 13, 2013 2:10 pm

Hi guys, i having problems with construct 2 and mobile resolutions, i already read the post about this topic and then i created this simple background to test on wich device it work.

In project properties i setted letter box scale and scale outer both work well on iphone5 and note 2 but on tablets and lower resolutions, both, fit the width but not the height.


Like this:

480x800 (u can't see it but there is a white bar in the bottom)



my note 2, where it work well:



anyway i always get these messages:





anyone can help me?

thanks a lot.v00d02013-09-13 14:13:58
B
5
Posts: 22
Reputation: 344

Post » Fri Sep 13, 2013 4:55 pm

what's your background size?
You should do a huge background (username Arima's suggestion)
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Fri Sep 13, 2013 6:04 pm

But i need to show it entirely. There is no other way?
B
5
Posts: 22
Reputation: 344

Post » Fri Sep 13, 2013 10:53 pm

@v00d0 how do you mean entirely? Stretch? Or do you want to crop off the edges and make sure it fills the height?
Moderator
B
72
S
14
G
11
Posts: 900
Reputation: 11,940

Post » Sat Sep 14, 2013 12:45 am

I believe he means stretch.

Scale outer only works for a small number of games. Other games that need an exact fit don't work well with scale outer, and I hope there is some sort of solution or way to make letterbox scale work in the future.
Project Lead of Zems Online Card Game

Producer at Impulse Limited
B
18
S
6
G
3
Posts: 677
Reputation: 5,234

Post » Sat Sep 14, 2013 2:14 am

I found a work-around to fix this problem.

For smartphone: using scale outer and stretching background a little out of layout size (4% top and 4% bottom), it works well from 400x800 to note 2 resolution and iphone 5.

For tablets: stretch only the bottom (8%), always scale outer.

If you wanna test it and give me some feedbacks on other resolutions you can use this url in CocoonJs launcher:

http://www.stefanocerelli.com/pier.zip

this version is for smartphones.

Thanks everybody.v00d02013-09-14 02:15:55
B
5
Posts: 22
Reputation: 344


Return to How do I....?

Who is online

Users browsing this forum: jojomickymack and 61 guests