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: 576

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
40
S
12
G
7
Posts: 603
Reputation: 7,656

Post » Sat Nov 10, 2012 1:35 pm

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


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests