system
1
|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
hermo |
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!
system
2
|
|
|
|
Reply From: |
volzhs |
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
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)
ChristianSF | 2020-08-01 21:21
2 Likes