Here is part of the code. When the enemy is hit, it moves back based on the direction the player is moving/attacking.
<img src="http://stevemazzaro.com/OM6A/Collision.png" border="0" />
This works fine, but if a large environment obstacle (such as a rock, hill, or something that should create a boundary for the enemies/player) is behind the enemy when he is hit, he is shot into the object with no way of getting out.
Let me know if this is more clear.
Steve