SpeedX
is the step value per frame expressed in hires pixels. Change the sign when you need to reverse the direction.
See also: