Is width affected by scaling?

Get help using Construct 2

Post » Mon Mar 04, 2013 2:33 pm

If the width property of an object returns data in pixels (assumption) then will I get different values depending if the game is scaled up or down in different window sizes?
B
20
S
6
G
2
Posts: 157
Reputation: 3,109

Post » Mon Mar 04, 2013 3:31 pm

Nope the width of an object isn't , only the frame is scaled to fit the size of the pgame assets ...
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Mon Mar 04, 2013 4:54 pm

@silkc2, as @WhiteClaws has already answered, the width and height (<name>.Width and <name>.Height) of an object don't change with the scaling of the Window, Layout, or Layer.

I put a little test project together to demonstrate.here
B
11
S
2
G
3
Posts: 10
Reputation: 3,026

Post » Mon Mar 04, 2013 5:19 pm

Good, just checking because I want to use width as a measure of "ink expenditure" if you like.

Thanks both. :)
B
20
S
6
G
2
Posts: 157
Reputation: 3,109


Return to How do I....?

Who is online

Users browsing this forum: anty21ro, Braus, zenox98 and 2 guests