Layout/LayerScale not affected by fullscreen scale

Bugs will be moved here once resolved.

Post » Wed Feb 27, 2013 10:59 am

Link to .capx file (required!): https://dl.dropbox.com/u/2175584/Construct2Examples/Scalling.capx

Steps to reproduce:
1. Set-up project with size of 500,500 and layout of 500,500
2. Set Fullscreen in browser to 'Scale'
3. Observer the result of either LayoutScale or LayterScale when change different screen sizes.

Observed result:
LayoutScale or LayterScale are always one even though the layout is scaled.

Expected result:
Shouldn't the returned value be the amount the layout has been scaled by?

Browsers affected:
Chrome: yes
Firefox: yes
Internet Explorer: yes

Operating system & service pack:
Windows 8

Construct 2 version:
r120.2

Notes :
Maybe I am just trying to use it how it wasn't intended but I do require the ability to know how much the layout has been scaled by so I can centre objects by the pixels.
B
24
S
11
G
5
Posts: 140
Reputation: 5,004

Post » Fri Mar 01, 2013 6:43 pm

This is by design. Scaling the window does not affect the layout or layer scales; they are relative to the window.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Sat Jul 13, 2013 10:00 pm

OK, so how do you get the scale amount in letterbox mode?
Borka223 from RecGames
B
14
S
4
G
5
Posts: 39
Reputation: 2,987


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 2 guests