[R136] Object position after layout scale bug

Bugs will be moved here once resolved.

Post » Tue Jun 25, 2013 11:33 pm

Link to .capx file (required!):
CAPX
https://www.dropbox.com/s/sujlgfdrrmmv1iv/objectPositionBug.capx

Steps to reproduce:
1. Create second layer with scale 0
2. Create two Sprites - one in the first layer, one in the second
3. Change the Layout Scale to something different than 1.0: the object in the first layer with Scale 100% moves around, the second object in the 0% layer stays in place - just fine as expected.
4. Set Sprite2 position to object Sprite1 (image point 0) - hm, it appears that C2 is trying to align both objects in their Layout Scale 1.0 positions and disregards the changed Layout Scale.

Observed result:
The Layout Scale change is disregarded. The second object is not aligned to the actual image point of the first object, but to its initial position as it was at Scale 1.0.

Expected result:
Both objects should be aligned at different Scale ratios to their chosen image points as it happens at Scale 1.0.

Browsers affected:
Browser independent - C2 issue

Operating system & service pack:
WinXP SP3
Construct 2 version:
R136
B
11
S
3
G
3
Posts: 79
Reputation: 3,343

Post » Tue Jun 25, 2013 11:41 pm

Actually there is the same problem with using the first Object's coordinates X and Y. They are pointing to the initial Object's position as it was at Layout Scale 1.0 and not to its actual position after Layout Scale change.
B
11
S
3
G
3
Posts: 79
Reputation: 3,343

Post » Wed Jun 26, 2013 12:59 pm

Closing, this is by design. Setting positions only sets to the position in layout co-ordinates; it does not take in to account the altered viewport.
Scirra Founder
B
383
S
224
G
86
Posts: 24,106
Reputation: 190,410

Post » Wed Jun 26, 2013 5:08 pm

Oh no, what do you mean this is by design?!

As far as I can read - 'Set position to another object' should move my second object to the first Object's origin - nothing else, nothing more. It does NOT function as expected, and it appears to be actually useless, if the Layout Scale or Layer Scale are touched?!
B
11
S
3
G
3
Posts: 79
Reputation: 3,343


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests