Hi everyone I’m looking to create a scaleTo Tween with elasticity from the following moveit Tween code.
This is the original AS:
MovieClip.prototype.moveit = function (centerx, centery, inertia, k) {
vx = -this._x+centerx;
vy = -this._y+centery;
this.xp = this.xp*inertia+vx*k;
this.yp = this.yp*inertia+vy*k;
this._x += this.xp;
this._y += this.yp;
}
Called like so:
onClipEvent (enterFrame) {
this.moveit(11, 28, .75, 0.1);
}
onClipEvent(load) {
var xp = 0;
var yp = 0;
}
How do I make this safe for pixel fonts? in other words no blurring during the tween?