- Home /
Question by
unity_5arCsUpVGCq1yg · Feb 01, 2021 at 10:10 PM ·
2d rotation
My 2d player pointing to mouse while camera fixed on him script wont work.,I have a problem with my player pointing to mouse script.
so i have a script making the player face towards the mouse which works fine when the camera stands still, but as soon as i attatch the camera to the player the game starts spinning around infinitely. can someone give me a script to make the player point to the mouse while the camera is fixed on him.,i am new to programming and i have a problem with my first 2d game. As i want the camera to follow the player i attached it to the player but when the camera is attached to the player the game spins like crazy. can someone please give me a script that makes my player point to my mouse while the camera is fixed on his position?
Comment