Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dezekeerjoran | |
Old Version | Published before Godot 3 was released. |
How to make the curser a custom sprite?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | dezekeerjoran | |
Old Version | Published before Godot 3 was released. |
How to make the curser a custom sprite?
Reply From: | avencherus |
In a more flexible way, you can hide the cursor and set a sprite at mouse position :
Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN)
var mouse = get_viewport().get_mouse_pos()
get_node("Crosshair").set_pos(mouse)
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