Advertisement

hspeed is the horizontal speed (in pixels per step). Together with vspeed it can define the direction of an object. But when changing hspeed, the variable direction and speed are changed right away too.

See Also

Community content is available under CC-BY-SA unless otherwise noted.