Arrow follow arc

Get help using Construct 2

Post » Tue Dec 04, 2012 10:00 am

Hello. I got an arrow shot out by a physics impulse moving in a nice arc. But the arrow's rotation does not follow the arc. How do I set the continous rotation of the arrow so that it is more "lifelike"?
B
14
S
4
G
3
Posts: 32
Reputation: 2,959

Post » Tue Dec 04, 2012 12:12 pm

Why not shoot a circle and attach to it an arrow sprite
B
34
S
16
G
16
Posts: 2,222
Reputation: 16,564

Post » Tue Dec 04, 2012 12:21 pm

I'd probably not recommend a circle, as projectiles should follow a parabola.

However, I know an easy way to solve your problem.

Set arrow angle to:
angle(0,0,arrow.physics.vectorX,arrow.physics.vectorY)

Let me know with @sqiddster if that doesn't work.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Tue Dec 04, 2012 2:01 pm

[QUOTE=sqiddster] I'd probably not recommend a circle, as projectiles should follow a parabola.

However, I know an easy way to solve your problem.

Set arrow angle to:
angle(0,0,arrow.physics.vectorX,arrow.physics.vectorY)

Let me know with @sqiddster if that doesn't work.[/QUOTE]

Thanx! This seem to work.
B
14
S
4
G
3
Posts: 32
Reputation: 2,959


Return to How do I....?

Who is online

Users browsing this forum: Braus and 11 guests