this is a pid controled sprite that follows the mouse see https://en.wikipedia.org/wiki/PID_controller about pid this script is roughly based on https://code.activestate.com/recipes/577231-discrete-pid-controller/ this script uses key value pairs to reduce clutter,