If your mouse moves, then the cat will stop. But, if the mouse doesn't move, then the cat will move.
Use it for your own stuff, but please credit me. It works better than seen here. If it moves, then the "Moving?" variable is set to 1. If not moving, then it is set to 0. This works for sprites, too, if you set "Mouse X" to "X position" and "Mouse Y" to "Y position."