There are a number of ways to do this depending on the shape of your pieces and game action.
One way is to use collision detection. Have an invisible triangle or rectangle extending from the front of your enemy object as a physics object and “fire” when a collision occurs between this invisible object and the player.
Another option is to track the facing of the enemy in a master game loop by getting the current rotation of the enemy and compare it to the player.objectBounds screen coordinates to trigger a “fire”, if the X or Y coordinates of the enemy fall within the bounds of the player object.
-David [import]uid: 96411 topic_id: 18320 reply_id: 70199[/import]