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
39
S
11
G
3
Posts: 279
Reputation: 8,446

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
92
S
32
G
107
Posts: 5,280
Reputation: 69,971


Return to How do I....?

Who is online

Users browsing this forum: sean080 and 23 guests