Spawning projectile in relative direction of player

Hello,
I apologize if this has been answered elsewhere: But I am trying to create a mega man style shooter/platformer. The bullet spawns properly if the player is facing left. However, if the player is facing right, the bullets still spawn from the left. They also travel in the left direction. My question:
How do I spawn bullets and ensure that they are moving in the direction that the player is facing?
I apologize if this has been answered elsewhere: But I am trying to create a mega man style shooter/platformer. The bullet spawns properly if the player is facing left. However, if the player is facing right, the bullets still spawn from the left. They also travel in the left direction. My question:
How do I spawn bullets and ensure that they are moving in the direction that the player is facing?
Comments
I have a cannon in my game that fires in different directions. On the spawn behavior I have is set to spawn
Direction: -self.rotation
Position: X: 72 Y: 0
Relative to Actor
Relative to Actor
My actor is about 140 wide, so 72 puts it just in front of the actor when it fires.
Give that a try.