Drawing a path for a projectile

Get help using Construct 2

Post » Wed Jan 11, 2012 5:26 am

For my game (2D platformer), there's a couple weapons that you can throw. I'd like to be able to aim using the mouse and I'm trying to display the path the projectile would follow if you throw it at that angle. I've hit a number of roadblocks, so, here I am.

My main problem is the projectiles are influenced by gravity, so it can't be some pre-drawn arc; it has to be dynamic and change as the angle between the player and the mouse changes.

Any ideas on how to approach this?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Wed Jan 11, 2012 1:32 pm

Isn't it very convienient that near enough the same time you asked mine was released?

Here: http://www.scirra.com/forum/easy-trajectory-w-wind_topic47971.html
B
17
S
4
G
5
Posts: 226
Reputation: 4,042

Post » Wed Jan 11, 2012 2:08 pm

Very convenient indeed!

One problem, though... I'm probably just missing something, but the trajectories are always only straight lines whenever I click. What am I doing wrong?
B
20
S
9
G
6
Posts: 607
Reputation: 6,112


Return to How do I....?

Who is online

Users browsing this forum: MarkThomas, signupdemo and 0 guests