Throwing AXE arc

Get help using Construct 2

Post » Wed Dec 04, 2013 5:25 am

Hey guys, How would you approach thr math in making an arc for a projectile? I am trying to make a spinning arcing throwing axe. Thanks Computer friends! :)
B
44
S
14
G
3
Posts: 290
Reputation: 8,895

Post » Wed Dec 04, 2013 7:37 pm

If you're fine with the projectile stopping when hitting solids you could give the object the platform behavior, disable controls and set acceleration and deceleration to 0. Then you can throw it by setting the vectorx and vectory with events.

In that case there is a little bit of math but not to much:
If you know the speed and angle you want to launch the axe do this:
vectorx = speed*cos(angle)
vectory = speed*sin(angle)

Or you could use the bullet behavior and set the gravity property.

There are capx' around the forum. A search for "projectile" will yield a lot of useful topics.
B
94
S
33
G
114
Posts: 5,359
Reputation: 73,779


Return to How do I....?

Who is online

Users browsing this forum: matriax and 21 guests