Can we talk about aspect ratio?

Discussion and feedback on Construct 2

Post » Wed Apr 11, 2012 8:24 pm

Speaking of mobile, the first issue are the different resolutions, and more specifically in c2 the real issue is the aspect ratio.
Now I understand that the support of different aspect ratio is not easy, but currently c2 is handling this issue very poorly.

My journey started in this thread that made me also ask on stack overflow (sorry for my lack of mentioning of c2 but I didn't want the question to get dismissed as "game maker").

Basically you can't resize the c2 canvas with certainty, the only way is to create an anchor behaviour and then get the size of the stretched sprite because the c2 canvas DO NOT match the windowsize (I think this is for the scaling) in any case doing it with this hack creates all sort of problems which are unpredictable (and that resulted in errors in iOS4.3 and android 2.2).

Currently in c2 it is not possible to support different aspect ratios, we have to rely on scaling and subsequents horrible whitespaces (which on android are unprofessional, on iOS are immediate ground for rejection) or on building for different resolutions, which by the way is a real nightmare on an interface like c2 where you can't access the code.

I would like to hear:

1) @Ashley what is your position on this issue and what could we do to mitigate this and what are the consequences of stretching a sprite with anchor and then position elements relative to its position (one of them is for sure the onload event not firing anymore on sprites and this error).
2) The guys who published on android (@ranma) what did you do for the ratio issues? Did you scale and left the blank space or found other solutions?

Thanks


EDIT: A possible solution would be the one corona is implementing. Basically is the same as scale mode but binded to the center. C2 Instead binds the canvas to the top-left corner. If we could have it in the exact center we may create "bleed" graphics like bigger background that do not show normally but only on bigger devices (see the corona link).0plus12012-04-11 20:37:27
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Apr 11, 2012 8:49 pm

I like the solution Corona is using, would be very cool to have something like that in Construct.
B
38
S
8
G
3
Posts: 438
Reputation: 6,869

Post » Wed Apr 11, 2012 9:08 pm

I've managed to create a good solution for this:

http://www.scirra.com/forum/multiple-resolutions-solid-example_topic50496.html?KW=

So far didn't run into any bugs!

Yet I agree: Having a option to center the layout and bleed the remaining space could be very useful.gammabeam2012-04-11 21:09:52
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Wed Apr 11, 2012 11:48 pm

@gammabeam I love you.
Disregard what I said and please sticky his solutions because it's a life saver!
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Thu Apr 12, 2012 10:03 am

@0plus1 I love you too, man
B
107
S
40
G
10
Posts: 456
Reputation: 13,202


Return to Construct 2 General

Who is online

Users browsing this forum: randomly, Yahoo [Bot] and 11 guests