How do I position an image point to an image point?

Just started using Construct 2? Post your questions here

Post » Fri Oct 24, 2014 11:41 am

How do I position an image point from one sprite to an image point of another sprite?
B
28
S
6
G
7
Posts: 681
Reputation: 5,682

Post » Fri Oct 24, 2014 8:11 pm

Imagine you want sprite1 image point number 3 to go to sprite 2 image point number 4, it should go like this:

Sprite1:set position
X : Sprite2.ImagePointX(4) - (Sprite1.ImagePointX(3)-Sprite1.X)
Y : Sprite2.ImagePointY(4) - (Sprite1.ImagePointY(3)-Sprite1.Y)

Tell me if that works, as I did not tried it

You can also replace the number of the imahes points with the name of them.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat Oct 25, 2014 8:53 pm

Thanks!
B
28
S
6
G
7
Posts: 681
Reputation: 5,682


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest