Move with the mouse


Allows you to move your player character using the mouse.

Utilities
1 year, 10 months ago
1.1 - 2.0
2.92K

b Don't stop moving on destination

4 years ago

Half of the times I put a target with the mouse, when the character reaches it, it continues to walk indefinitely, shaking the entire screen... Sometimes I need to click 10 times with the middle mouse to be able to stop the movement!
Maybe the problem was that the mod don't know that the character reachs the destination and keep trying walking towards it!

Thanks

7 days ago

Fix for the screen-flickering/spazzing issue when moving:

open the mod folder (<YourUsername>\AppData\Roaming\Factorio\mods\Move with the mouse)

Extract the folder and In control.lua, find this line (walking arrival check):

local direction = get_direction(player.position, config.target, 0.1)

The 0.1 is the "close enough, stop moving" radius, and it's too small — at normal walk speed your character overshoots it every tick, which flips the direction back and forth and causes the shaking/flickering.

Change 0.1 to something like 0.5 (this is what I use)

local direction = get_direction(player.position, config.target, 0.5)

make sure you change the file path from this
mods/move-with-mouse-updated_0.3.4/move-with-mouse-updated/
To this
mods/move-with-mouse-updated/

After that edit the movement is smooth with no flickering. Posting this in case it helps anyone else, especially if you're using this mod for accessibility reasons like I am.

New response