How do I control bullet speed direction

Get help using Construct 2

Post » Tue May 19, 2015 4:12 pm

I created an enemy that's meant to stop moving and aim at the player then dash at the player without aiming itself at them. I'm able to make the enemy dash and stop moving to aim at the player but once the enemy moves they always either go left or right. How can I make them go forward to where they were aiming?
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 19, 2015 4:16 pm

To answer this question we need more information..

to answer the title of this topic:
there is an action set bullet angle of motion, there is an action set bullet speed..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue May 19, 2015 9:11 pm

Is there a way to set that angle towards a player rather than just an angle?
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 19, 2015 9:23 pm

Yep:

set angle = angle(bullet.x,bullet.y,player.x,player.y)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: Artcadev, brunopalermo, Jackriduk and 27 guests