questo è come l'ho fatto io, non ti assicuro che sia il modo "migliore".
sullo stage metti questo as:
_global.xpos = mappa._x
_global.ypos = mappa._y
alla mappa, al posto dell' as che hai messo, scrivi:
onClipEvent (enterFrame){
newx = xpos
newy = ypos
this._x = (xpos + _root.pallino._x);
this._y = (ypos + _root.pallino._y);
}
pallino è il mc che contiene il mio bottone.
![]()