Arc motion

Get help using Construct 2

Post » Fri Feb 01, 2013 12:11 am

Hi, anyone help me?

(first, sorry my english)

How do I make the shot of the enemy, in arc motion, go to the player position, but do not following him if he moving.

(example)


Thanks!
B
21
S
4
G
2
Posts: 96
Reputation: 2,392

Post » Fri Feb 01, 2013 6:46 am

I just written a answer but misunderstood what you want,

I'll take a look at it when i get home.

Should the bullet go up and down as shown in the photo?
B
5
Posts: 55
Reputation: 585

Post » Fri Feb 01, 2013 6:58 am

When firing bullet you'll have to give it a target position (or 'force' if you are using physics). I guess you are targeting player the whole time bullet is moving, while you actually want to target the position player is at when bullet was fired.

Give bullet variables TargetX and TargetY where you save the bullets target location the moment bullet is fired and use these rather than player.x and player.y.

This was just a guess, post a .capx of your problem so we can actually see what is happening :)
B
24
S
8
G
7
Posts: 756
Reputation: 7,202

Post » Fri Feb 01, 2013 8:32 am

Is more or less like this (see capx). But there are a problem, It seems a chaser missile and not a "bullet" which was thrown with an arc angle =/

http://hugoluigi.com/arc-motion.capx

tnks
B
21
S
4
G
2
Posts: 96
Reputation: 2,392

Post » Sat Feb 02, 2013 6:18 am

Finally done. With the help of my friend "snake" =)

http://hugoluigi.com/arc-motion-vspeed.capx

Tnks!
B
21
S
4
G
2
Posts: 96
Reputation: 2,392


Return to How do I....?

Who is online

Users browsing this forum: Megavolt, selaus and 0 guests