#How should I write a script for an object to spin around the player, through following the mouse?
1 messages · Page 1 of 1 (latest)
tried google?
yes I tried google, the tutorial I found for it did not pair well with Brackeys 2D Movement scripts.
maybe ask about that instead
So you want the Brackey's 2D movement tutorial, but controlled with the mouse instead?
I want an object to rotate with the mouse in the same way that the video does it
The video isn't very informative.. what are you making? is it like a weapon that points from the player to the mouse?
yes
ok that makes much more sense.
you could research "mouse position from screen to world space", this will help give you a direction from your player to your mouse