I am working on an FPS using a doom like system, were enemies and object are flat sprites that are always turned towards the player. It was quite easy to make the sprites turn towards the player. However, I am at a loss for how to change between sprites depending on the direction of the enemy actors relative to the player. Like this:
I guess I would have to divide the rotation of the enemy actor into zones depending on the angle (perhaps through the Clamp Angle node?), and then compare the players location to see if it falls within each zone - but I don’t know how to do any of that.
Anyone working on something similar, or have any ideas?