How do I position object respect a image point??

Get help using Construct 2

Post » Tue Mar 31, 2015 6:29 pm

Sorry for english

With the event" set position to another object" you can choose the image point destination.
----- object.1 / set position to / object.2"imagepoint1"

How do I do it the following way??
----- object.1"imagepoint1" / set position to / object.2
B
4
S
1
Posts: 34
Reputation: 418

Post » Tue Mar 31, 2015 7:25 pm

There doesn't seem to be a straightforward way to get the imagepoint offset, but you can (object.ImagepointX-object.X). Thus you can Object.SetX = Object2.X - (object.ImagepointX-object.X). Of course you can do it for both x and y at the same time with setposition.
B
14
S
5
G
1
Posts: 189
Reputation: 1,536

Post » Thu Apr 02, 2015 8:21 am

Your solution works great 8-)

Thank you very much
B
4
S
1
Posts: 34
Reputation: 418


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, Google [Bot], Jackriduk, Username05, Yahoo [Bot] and 22 guests