I don't know which behavior you are using, so it's up to you to determine the moving angle of the player. In 8direction behavior it's Self.8Direction.MovingAngle. Or you can check which button was pressed:
If Down key is pressed : Set angle1 to 90
If Left key is pressed : Set angle1 to 180 etc.
.
angle2, the angle between the player and the yellow imagepoint:
angle(Player.x, Player.y, Shape.ImagepointX("tag"), Shape.ImagepointY("tag"))
And to compare them use System conditions - "Is Between angles", "Is within angle", "Is clockwise".