How do I make a object go to another object, not the origin?

Get help using Construct 2

Post » Thu Nov 26, 2015 5:49 am

I've got a object when on collision, goes to another object. It sets angle to the object: Object.X,Object.Y and takes off via the Bullet behavior.

The problem is that it goes straight to the origin of the object and that is where the object is least present, since I've moved the origin to fit some other needs. How do make a projectile set angle to another object and not just go to it's origin, rather other parts of the targeted object.
Risk Rocket now available on Google Play
Image
B
35
S
15
G
6
Posts: 337
Reputation: 6,275

Post » Thu Nov 26, 2015 6:23 am

One way would be to use an imagepoint, and use Sprite.imagepointx(1) instead of Sprite.x. The same for y.
B
89
S
30
G
96
Posts: 5,160
Reputation: 63,956


Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests