@skidma uh
function animate(target, current, speed, partialTicks) {
dif = target - current;
if (speed < 0) {
speed = 0;
}
if (speed > 1) {
speed = 1;
}
factor = dif * speed * partialTicks;
if (target > current) {
current += factor;
} else {
current -= factor;
}
return current;
}
var shit;
//...(the following lines of code will use Core)
onRender2D: function(event) {
shit = animate(target_here, shit, speed_here, event.getPartialTicks());
//too lazy since it's late rn
}