wilma
July 16th, 2003, 01:21 PM
Hi, i put this simple easing code together (below). You can call me i'm being greedy but i'd like to introduce alittle outbounce effect. nothing fancy just one bounce from its final position and then the mc returns to x=500 and y=0.
Is my code below easy to adapt or will i have to start again?
onClipEvent(load){
_x=0;
_y=0;
speed=4;
finalx=500
finaly=0
}
onClipEvent(enterFrame){
_x+=(finalx-_x)/speed;
_y+=(finaly-_y)/speed;
}
any help or advice would be most appreciated.
wilma.
Is my code below easy to adapt or will i have to start again?
onClipEvent(load){
_x=0;
_y=0;
speed=4;
finalx=500
finaly=0
}
onClipEvent(enterFrame){
_x+=(finalx-_x)/speed;
_y+=(finaly-_y)/speed;
}
any help or advice would be most appreciated.
wilma.