#Getting a directional input from each mouse movement

3 messages · Page 1 of 1 (latest)

molten gate
#

Hello! I'm making a 2.5d game (in orthogonal 3d from 45°) . I already have a direction pointer using raycasting to find where the mouse is on the viewport- but what I actually want is closer to a joystick using the mouse where every time it pushes in a direction it sets it that way. For example- mouse on left side of screen- but I move it slightly right. I would like that to make the direction pointer go to the right.

I don't know how to solve this but I feel like it would be simple. If anyone has any advice I'd greatly appreciate it 🩵

dense frost
#

That gets you "mouse moved right"(-even-when-mouse-is-left)