I am making a game in which enemies strut down a path. At each turn in the path I have a movieclip that sets up a tweenMax instance on the enemy clip when the enemy clip makes contact with it. I am using 'shortestRotation' and 'transformAroundPount' on these tweenMax instances and they basically rotate the enemy clip 90 degrees in the appropriate direction. This all works fine and dandy until I go to the 'choose level' screen which basically turns the level container movieclip's visibility to false and the 'choose level' movieclip's visibility to true. Once you select a new level from the chooser, a function nullifies all the arrays and variables populated by the last level and loads the appropriate level into the level container. Now it seems that the Tweens in each subsequent level that is loaded jitter or are jerky at the beginning and end of the tweens.
Here is the code I'm using for each tween instance.
TweenMax.to(baddie, tweenSpeed, {
ease:Linear.easeNone,
useFrames:true,
overwrite:5,
immediateRender:true,
onUpdate:addRotToDistanceTraveled,
onUpdateParams:[baddie, baddie.rotation],
onComplete:resume,
onCompleteParams:[baddie],
shortRotation:{rotation:rot},
transformAroundPoint:{
point:rPoint,
scaleX:1,
scaleY:1
}
});