Thinking about how some of my games operate, I was wondering how to go about implementing directional damage. The example being whether the player is being hit from the front or from behind.
I'm not sure how I would create this since the player sprite can be considered facing left or right. And with 8 direction behavior, you would have front and back depending on the direction the player was facing.
Any ideas on how this could be done would be appreciated.