Shooting in player facing direction
Hello!
I've been making Zelda type of game where you can shoot by throwing bottles. Shooting works but only on one direction, it needs to shoot four direction. I can't figure out how to get this work. I'm glad someone could check out my script:
https://github.com/arttuhar/laivapelitesti/blob/master/PlayerController.cs
I think it's might be because my player transform.rotation value doesn't change but I'm not sure. And also I don't know how to fix it.
Thank you!
Answer by ForcefulChaos · Nov 25, 2017 at 11:08 PM
I think if you mounted the shooting mechanism to the camera it would solve it, although this might be a different case but what I suggested solved a similar issue for me
Your answer
![](https://koobas.hobune.stream/wayback/20220612143338im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Detect if UI Button is pressed 0 Answers
Settings menu of main menu not updating in settings menu of pause menu. Unity C#, 0 Answers
Error CS1525: Unexpected symbol 'void' 1 Answer
How can i run a script with a single key press? 1 Answer
Having transitions between two VideoPlayers triggered by clicking "x" times in a text layer 0 Answers