View Full Version : easing
mdipi
November 15th, 2002, 06:18 PM
onClipEvent(load){
_x=0;
_y=0;
speed=2;
}
onClipEvent(mouseDown){
targetx=_root._xmouse;
targety=_root._ymouse;
}
onClipEvent(enterFrame){
_x+=(targetx-_x)/speed;
_y+=(targety-_y)/speed;
}
what do i replace to use easing on rotation, if triggard from a button? please respond.
lostinbeta
November 15th, 2002, 07:17 PM
I am in a rush, can't help too much, replace the _x and _y stuff with rotation....
onClipEvent (load) {
_x = 0;
_y = 0;
speed = 2;
}
onClipEvent (mouseDown) {
targetx = _root._xmouse;
targety = _root._ymouse;
}
onClipEvent (enterFrame) {
_rotation += (targetx-_rotation)/speed;
_rotation += (targety-_rotation)/speed;
}
Try something like that.
mdipi
November 15th, 2002, 07:41 PM
lol i replaced the wrong stuff on my try. thanks for the help. i will test it as soon as i finish my grunge pic for the battle!:P
mdipi
November 15th, 2002, 08:16 PM
hey it worked! :P thanks. now to tweak it to what i want and i will be good to go.
lostinbeta
November 15th, 2002, 10:39 PM
I am glad it worked, I had like 30 seconds to change and repost it....lol.
I didn't even test it or anything, just took a shot in the dark.
Bezzer
November 16th, 2002, 08:27 AM
Stabs in the dark work out well sometimes... :)
lostinbeta
November 16th, 2002, 12:45 PM
Yes.... yes they do :)
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.