mmmh.
mmmh.
Out of context: Reply #26
- Started
- Last post
- 37 Responses
- stewart0
okay, okay!
this is the script i'm using, including the one for the rotation. one thing: mail me the links of the results!
-----------
obj = background;
dY = obj._y-yT;
dX = obj._x-xT;
dSx = sTx-obj._xscale;
dSy = sTy-obj._yscale;
dR = obj._rotation-rT;if (dY != 0) {
obj._y -= baseSpeed+(dY/baseSpeed);
}if (dX != 0) {
obj._x -= baseSpeed+(dX/baseSpeed);
}
if (dSx>1) {
obj._xscale += 2;
} else if (dSx1) {
obj._yscale += 2;
} else if (dSy<-1) {
obj._yscale -= 2;
}
if (dX-0.2) {
obj._x = xT;
}
if (dY-0.2) {
obj._y = yT;
}
if (dR>1) {
obj._rotation -= 2+(dR/10);
} else if (dR<-1) {
obj._rotation -= 2+(dR/10);
}-----------
success!!