Line 55: | Line 55: | ||
} | } | ||
// change 12 to alter damping higher is slower | // change 12 to alter damping higher is slower | ||
− | xp += (mouseX - xp) / | + | xp += (mouseX - xp) / 2; |
// rider.style.left = xp; | // rider.style.left = xp; | ||
$("#rider").stop().animate({left:xp}); | $("#rider").stop().animate({left:xp}); |
Revision as of 00:18, 31 October 2017