(Solved)How do I make an enemy attack on x axis

Get help using Construct 2

Post » Sun Feb 26, 2017 3:21 pm

I am working on a 2d sidescroller but I cant seem to find any informaton on how to make the enemy walk towards the player on the x axis and attack the player. I have tried adding line of sight behavior on the event sheet but the enemy floats on y axis sometimes. Can someone tell me how to do make the enemy move towards the player on x axis only?
Last edited by Mik07 on Mon Feb 27, 2017 12:32 am, edited 2 times in total.
B
12
S
3
Posts: 14
Reputation: 718

Post » Sun Feb 26, 2017 4:33 pm

Are you using the bullet behavior for your enemies?

That works by changing the angle of the bullet and 0 and 170 are right and left on the X axis.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825

Post » Sun Feb 26, 2017 8:49 pm

lamar wrote:Are you using the bullet behavior for your enemies?

That works by changing the angle of the bullet and 0 and 170 are right and left on the X axis.

Hi lamar Thanks for the reply I tried using Move Forward action and it is working now however it moves too fast is there any way of slowing down my enemy movement speed?
B
12
S
3
Posts: 14
Reputation: 718

Post » Sun Feb 26, 2017 9:57 pm

You can change the number of pixels it moves in Move Forward which also changes the speed.
Banned User
B
28
S
7
G
58
Posts: 1,229
Reputation: 34,825


Return to How do I....?

Who is online

Users browsing this forum: androidpro and 16 guests