Easing


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.

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.

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!:stuck_out_tongue:

hey it worked! :stuck_out_tongue: thanks. now to tweak it to what i want and i will be good to go.

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.

Stabs in the dark work out well sometimes… :slight_smile:

Yes… yes they do :slight_smile: