Can someone explain to me how to make it so that a character’s shooting direction is both ways?
I have a projectile in the game as a player skill, but it can only shoot to the right, if I turn the character so that he looks to the left the projectile still flies to the right.
I used a simple Spawn Actor and a simple determination of the player’s location
There can be multiple ways to achieve that, but all would require a rotation or a direction for the projectile to move towards. I think you already have that set up based on this explanation of yours:
So whatever way you handle that, you should be able to change the direction it’ll be shot at like this:
I think I know what’s going on, now knowing your approach.
What’s “Projectile Shoot”? It should be an arrow component. That way your projectiles will already shoot at the direction where the player character’s facing. Can you show the Components window of your player character BP? Or wherever you set that variable, if it doesn’t represent a component.
If it is indeed an arrow component, does it rotate as expected? You can check by disabling the Hidden in Game option on the Details window while having the arrow component selected.