Line 54: | Line 54: | ||
} | } | ||
} | } | ||
+ | console.log(xp) | ||
// change 12 to alter damping higher is slower | // change 12 to alter damping higher is slower | ||
xp += (mouseX - xp) / 12; | xp += (mouseX - xp) / 12; | ||
− | + | console.log(xp) | |
rider.css({left:xp}); | rider.css({left:xp}); | ||
}, 30); | }, 30); |
Revision as of 00:25, 31 October 2017