I want my sprite to move with the mouse, but still respect a 32x32 grid. How do I do this?
Something tells me to use Vector2.snapped, but my math knowledge doesn’t allow me to figure it out.
could you write a small script with this action
The mouse movement script is like this:
global_position += event.relative * Camera2D.zoom