How to make the curser a custom sprite?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dezekeerjoran
:warning: Old Version Published before Godot 3 was released.

How to make the curser a custom sprite?

:bust_in_silhouette: Reply From: avencherus

In a more flexible way, you can hide the cursor and set a sprite at mouse position :

var mouse = get_viewport().get_mouse_pos()

Nutr1z | 2017-01-08 12:25

this seem to be a nice way, but I ran into the problem, that the sprite lags behind when going in fullscreen mode, because the game seems to update only 60 per frame (300-1000 times when in windowed mode).
Have you found a solution to that? this also is important, if I want a mouse cursor moving along the games resolution and not the screen resolution (for pixel art games)

k4sma | 2018-04-28 21:41