CreedVI / Raylib-J

Handmade Java binding for Raylib
zlib License
94 stars 16 forks source link

Question: Make mouse movement grid (snapping) #42

Closed BlueFalcon234 closed 5 months ago

BlueFalcon234 commented 1 year ago

I'm not sure if this is the right place to ask questions, but here I go.

I'm trying to make the mouse move in a grid layout, so not the typical free mouse movement. What I mean is when you move the mouse, the cursor moves as if it's lock on to a grid. This can be called snapping. I try doing in Raylib-j, but the mouse ends up jittering.

Thanks for any help in advance