- Home /
FPS-style controls in 2d top down game
Hi,
So, I'm making a 2D top down game with FPS-style controls. WASD to walk and strafe and mouse movement to rotate. All of that works fine, sort of. But when the mouse reaches the edge of the screen, it can't move any further and the player does not rotate any more.
Two part question: 1) How can I "hide" the mouse cursor but 2) still be able to get inputs from it?
Answer by george_vasilchenko · Jan 06, 2015 at 10:43 PM
Hello,
Screen.showCursor = false //hides your cursor
Screen.lockCursor = true //locks and also hides your cursor
Your answer
Follow this Question
Related Questions
How to make camera position relative to a specific target. 1 Answer
Issue with mouse position script 1 Answer
Can't convert from mouse screen position to world position 3 Answers
How do I get the Vector2 from an input action in code? (New Input System) 1 Answer
Need Help with MousePos and dashing 0 Answers