How do I can prevent rotation in a 8 direction enemy?

Get help using Construct 2

Post » Thu Feb 12, 2015 12:10 pm

Hi everyone!

I'm a begginer and have an issue that I can't figure how to solve.

I'm triyng to make a beat em up game (maybe like double dragon) and when I put "Line of sight" to the enemies they spin when follow the main character.

They stop to spin when I remove the function: "Set angle toward position" but doing that, the enemy stop to follow me.

I made a simple example in order to be more specific:I want the enemy moving wihtout spins like the main character (Bull) Thanks a lot for read!
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 3
Reputation: 181

Post » Thu Feb 12, 2015 12:30 pm

Instead of "set angle toward position" put "set angle of motion" and "angle(Sprite3.X, Sprite3.Y, Sprite2.X, Sprite2.Y)" inside.
Also your Sprite3 bullet "Set angle" set to no.
Also you do not need 8 direction for this.
B
12
S
6
G
2
Posts: 99
Reputation: 1,727

Post » Thu Feb 12, 2015 1:43 pm

You are a Fu***ng God!!!

You did solve a 3 days of headache in 5 seconds.

Thank you so much!!!!!!!!!!!!!!!!!!!
B
3
Posts: 3
Reputation: 181

Post » Thu Feb 12, 2015 2:12 pm

Thanks. :D
B
12
S
6
G
2
Posts: 99
Reputation: 1,727


Return to How do I....?

Who is online

Users browsing this forum: Carlafnt, dokthor, marcoscodas, mtnboy22, MushroomKingdomr and 8 guests