bullet direction

When I instantiate an object I want to be able to assign it a direction to travel in depending on what way my player is facing. So if the player is facing to the left when pressing the fire button then the bullet will travel to the left. Same would go for any other direction the player is facing. This is a style sprite game so the player never rotates fyi.

That last lines the kicker isn’t it - I was desperate to type “just use transform.forward” but of course, your object doesn’t rotate.

So you presumably know that your player is facing left or right - in that case you can use the transform of the camera to get a direction:

Right would be:

var right = Camera.main.transform.right

And left would be

var left  = Camera.main.transform.right *-1