How to capture mouse,but keep it visible,like in Minecraft?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By God Of Theory

I wanna make a game like Minecraft where players can destroy, interact and place objects, but for the camera movement, I have enabled captured mouse mode, so how do I go about it?

:bust_in_silhouette: Reply From: njamster

If you set the mouse_mode to MOUSE_MODE_CAPTURED the mouse will be centered (but hidden) in the middle of your game window. If you want to show a cursor, all you have to do is spawning a Sprite or TextureRect in the middle of your game window.