Hi,
I want to apply seperate actions for different intervalls of the angle between player and enemy; 4 quadrants for the total circle of 360 degrees.
In the code I have used the condition "is between two values" for each quadrant and written "angle(Sprite1.X,Sprite1.Y,Sprite2.X,Sprite2.Y)".
The angle values I have set to the following:
Quadrant 1: first angle 315, second angle 45
Quadrant 2: first angle 45, second angle 135
Quadrant 3: first angle 135, second angle 225
Quadrant 4: first angle 225, second angle 315
However, this does not yield satisfying results, the desired actions will not take place when the angle between player and enemy is within these angle intervals. Maybe the first and second angles I have assigned are the wrong values?