Move a sprite in an arc

Get help using Construct 2

Post » Fri Sep 28, 2012 5:06 pm

Is it possible to move a sprite from point a to point b but using a sort of bezier curve?

Think kingdom rudh when you launch a bomb from the artillery tower, it sort of goes up and then down on to the target, like the bomb is thrown out of the tower on to the target but up in to the air
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Post » Fri Sep 28, 2012 5:52 pm

Like projectile motion?
http://www.scirra.com/forum/arcing-projectile_topic54153_post338694.html?KW=projectile#338694

To make it land where you clicked set the bullet speed to:
distance(sprite.X,sprite.Y,mouse.X,mouse.Y)*500/(2*200)

Where 500 is the value added to the projectile's velocity variable
and 200 is the initial value that velocity is set to.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Fri Sep 28, 2012 7:43 pm

Once again cheers! It sounds like this guy was wanting to do exactly the same thing as me!
B
11
S
2
G
3
Posts: 95
Reputation: 3,028


Return to How do I....?

Who is online

Users browsing this forum: Kagubro and 29 guests