I have an mc that is repositioned with this code:
onClipEvent (enterFrame) {
Ysquare = this._y;
Ydiff = Ypos-Ysquare;
Ymove = Ydiff/3;
this._y = Ysquare+Ymove;
updateAfterEvent(enterFrame);
}
onClipEvent (enterFrame) {
Xsquare = this._x;
Xdiff = Xpos-Xsquare;
Xmove = Xdiff/3;
this._x = Xsquare+Xmove;
updateAfterEvent(enterFrame);
}
Buttons reposition via x-y coordinates. However, this mc needs to be draggable.
I can code the drag and onClipEvent repositioning to work separately, but can’t seem to have them work together.