Object attracts another object

Get help using Construct 2

Post » Sat Nov 10, 2012 8:31 am

Hello everyone.

Could somebody explain me how can i made object attracts another object. I want made object like planet which attracts meteorite. Thanks a lot for any help.
B
6
S
1
Posts: 31
Reputation: 581

Post » Sat Nov 10, 2012 1:25 pm

- distance(obect.X ,object.Y, planet.X, planet.Y) < 50
- everytick
-> set angle 2 towards planet
-> move forward 2 pixels

Use that and change numbers to get the feel you want.
B
46
S
14
G
7
Posts: 603
Reputation: 8,096

Post » Sat Nov 10, 2012 1:35 pm

Thx u very much. I try it today :)
B
6
S
1
Posts: 31
Reputation: 581


Return to How do I....?

Who is online

Users browsing this forum: ashishv, conker23, IceManLT, morti and 2 guests