Hi there
I’m wanting to create a variable that changes with the speed of a tween. The faster the tween the higher the variable, the slower the tween the lower the variable. for example: The below tween has an easeInOut so the start of the tween would be the slowest and the variable would = 0. At the middle point of the tween would be the fastest and the variable would = 10. Then as the tween winds back down the variable would reduce back to 0.
var HeroTween:Tween = new Tween(Hero, "_y", Regular.easeInOut, 92, 396, 2, true);
HeroTween.onMotionChanged = function() {
//here is where I want to trace the momentum/speed of the tween
};
Any help would be appreciated