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: 160
Reputation: 1,934

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
402
S
238
G
89
Posts: 24,632
Reputation: 196,031

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
172
S
50
G
183
Posts: 8,439
Reputation: 115,597

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: 160
Reputation: 1,934


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests