set player speed to a constant