Hi fellas how are you?
I was just wondering if anyone has another idea in how to make the player shoot both sides. I have made my player to flip in X line depending in which button we press to move him and I made an sub empty object that is basically the fire point, but when my player flips in X the fire point does not and the bullet always goes right. Tha only idea that comes to my mind is making different fire points and determine with code which one is going to be use depending on the player’s movement.
If anyone has any other idea please let me know, it will be really helpfull!,Hi how are you?
I was just wondering if anyone has an idea of how to make the player shoot both sides in 2D? I have made him shoot with a sub empty object that is lets say the fire point but when my player flips in the X line the shoot point does not and the bullet always goes right, the only thing that goes into my mind is to make different firepoints and with the code determine which one is going to be use depending on the player’s movements. If anyone else has another idea please let me know, I’ll be thankfull!
You could make the fire point a separate gameObject that is a child of your player, then when you flip your player it will flip too, or you could use a bool to keep track of it, if facingLeft FireLeft() else FireRight()