Hello All and thank you for looking
I have 2 objects; an enemy & a hero. I want the enemy to change animations depending on the angle between the 2.....but, I cannot figure it out.
If I use int(angle(hero.X, hero.Y, enemy.X, enemy.Y)) I can get a number but it changes as the hero moves closer or further away form the enemy (doesn't follow a set perimeter.)
In the diagram, the dark blue circle is at ~330 degrees but the the light blue circle is not. I want C2 to return the same degree regardless of how close/far the circle is and instead just give me the angle it sits on? How do I go about setting a command that returns the angle I'm looking for?
Thank you for looking