LayoutWidth / WindowWidth/ Width and screen ratio questions

Discussion and feedback on Construct 2

Post » Thu Aug 04, 2016 10:35 am

Hey all,

I often encounter issues with measuring the layout width, as well as sprite width. I can only suspect that it's due to the pixelDensityRatio, but I'm not really sure...
How can I properly measure sprites and layouts, considering all variants?

Thanks :)
B
18
S
7
G
1
Posts: 157
Reputation: 1,928

Post » Thu Aug 04, 2016 10:57 am

There aren't any variants. Those things only have one size. I think you need to be clearer about what you need.
Scirra Founder
B
397
S
236
G
88
Posts: 24,402
Reputation: 194,474

Post » Thu Aug 04, 2016 1:20 pm

You can't really cover all variations. The best method I've found is to cover an aspect ratio.
Like 4:3, 16:9, 21:9.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Thu Aug 04, 2016 6:10 pm

Ashley wrote:There aren't any variants. Those things only have one size. I think you need to be clearer about what you need.


I was meaning to create a capx showing my problem, then I understood I had a sprite anchored at the center, and this messed up my calculations (couldn't figure out why some other sprites were out of bound...)

A noob mistake, really :)

Thanks anyway!
B
18
S
7
G
1
Posts: 157
Reputation: 1,928


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests