Pin problem

Bugs will be moved here once resolved.

Post » Sat Nov 23, 2013 8:50 am

Not sure if its a bug or not, but it very confusing if its intended, as it make it hard to know pinned objects actual position. Seems that if you press the button a second time it shows the correct position. If you add a wait 0.05 it works. So seems that it doesn't get updated straight away, which is very confusing.

Link to .capx file (required!):
https://dl.dropboxusercontent.com/u/109921357/Pin%20test.capx

Steps to reproduce:
1. Pin an object to another object
2. Move the parent object


Observed result:
When you print out the X,Y value of the pinned object, its not correct.

Expected result:
That the pinned object had the X,Y value of its current position.

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

Operating system & service pack:
Windows 7

Construct 2 version:
r151 beta    nimos1002013-11-23 08:55:36
B
44
S
11
G
2
Posts: 1,182
Reputation: 6,848

Post » Sat Nov 23, 2013 2:26 pm

Closing as won't fix - afraid this is by design. The pin behavior updates positions at the end of the tick, when events have finished running. So you do have to wait until the next tick before the position will be updated.
Scirra Founder
B
397
S
236
G
88
Posts: 24,412
Reputation: 194,526


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests