How do I set an object to attract a bullet? (gravity)

Get help using Construct 2

Post » Sun Nov 02, 2014 10:51 pm

-------------
Last edited by Aleyba on Thu Jul 06, 2017 1:29 am, edited 1 time in total.
B
16
S
4
G
4
Posts: 59
Reputation: 3,091

Post » Mon Nov 03, 2014 4:40 am

You'll likely want to use the physics behavior. Set the physics world gravity to 0 and apply a constant force on your bullets toward the middle of your planet. After that, it's merely a matter of tweaking the bullets' tangential velocities relative to the planet to get them to orbit.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116

Post » Tue Nov 04, 2014 12:17 am

--------------------
Last edited by Aleyba on Thu Jul 06, 2017 1:29 am, edited 1 time in total.
B
16
S
4
G
4
Posts: 59
Reputation: 3,091

Post » Tue Nov 04, 2014 12:34 am

The bullet object needs to use the physics behavior, not so much for the planet. You'll apply the force using the "Apply force" or some such action of the bullet object.

Blending the use of the bullet and physics behaviors will yield nothing but pain. Custom movement would likely be relatively simple, though I wouldn't know how simple in comparison to just using the physics behavior.
Moderator
B
113
S
41
G
20
Posts: 1,586
Reputation: 19,116


Return to How do I....?

Who is online

Users browsing this forum: luckyrawatlucky, nahima and 5 guests