How do I set origin point to another sprite

Get help using Construct 2

Post » Wed Jan 25, 2017 9:33 pm

Is it possible to set the origin point of one sprite to the position of a second sprite through events?
B
14
S
7
G
3
Posts: 145
Reputation: 3,035

Post » Thu Jan 26, 2017 8:20 am

The origin point is what's used to set the position of a sprite so this is what happens normally when you use Set Position.
B
46
S
15
G
73
Posts: 2,029
Reputation: 43,465

Post » Thu Jan 26, 2017 9:30 am

You can reference the x and y of image points, but as far as I know you cant set them in the event sheet.
Image
B
29
S
9
G
3
Posts: 170
Reputation: 3,297

Post » Thu Jan 26, 2017 11:21 am

If you want to do it without moving the original sprite, I don't think its possible.
But if you move the sprite with it, just use set position to
x=secondsprite.x
y=secondsprite.y
B
8
S
2
Posts: 22
Reputation: 606

Post » Fri Jan 27, 2017 7:02 pm

Thanks for all the responses. And thank you for the work around tip, Ben. I set the angle from the first sprite to the second and it works fine for what I need.
B
14
S
7
G
3
Posts: 145
Reputation: 3,035


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, Allardje, R0J0hound, Rudi55, Vinterstille and 1 guest