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: 161
Reputation: 1,941

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
414
S
245
G
92
Posts: 25,198
Reputation: 200,327

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
178
S
50
G
205
Posts: 8,684
Reputation: 127,211

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: 161
Reputation: 1,941


Return to Construct 2 General

Who is online

Users browsing this forum: Ambramerlin and 1 guest