Hello. At the moment i have some code that checks for any movieclips that are to the right of a given movieclip and makes them move 60px to the left. At the moment it works fine but the movieclips simply jump 60px left, and I'd like them to ease out instead.
Code:
function autoShiftLeft(clipIn:MovieClip):Void {
// Loop all clips
for (mc in inventoryClip) {
// Store temporary reference to clip
var tMc:MovieClip = menuClip[mc];
// If this clip is to the right of the given clip
if (tMc._x>clipIn._x) {
// Shift it left the size of one slot
tMc._x -= 60;
}
}
}
I realise the part I have to change is:
but I'm not sure how I can apply an actionscript ease within my current function.
Does anyone know a good solid code for easing out that will fit inside my function?
Thank you