+6 votes

Hello people!

I'm doing a 2d platform game where only keyboard is needed.
How can I disable or hide the mouse cursor so it doesn't show in the game?

Thank you very much! :)

in Engine by (58 points)

1 Answer

+13 votes
Best answer
by (9,688 points)
selected by

That worked! Thank you!!!

And for completeness's sake, use Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) to make the mouse cursor visible again.

(At least in Godot version 3.2.2)

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.