Search code examples
actionscript-3flashtweengsap

How to create a wiggle effect using GreenSock


I can't see any built-in methods in TweenMax that lets you "wiggle" an object from side to side. It needs to be a really quick animation from its start position such as: x -> x-5 -> x+5 -> x-5 -> x+5 -> x.


Solution

  • If Bounce isn't working for you, you will have to create the effect yourself by working with a counter and the onComplete method!