Tweening with Billboard Icons
-
Hi Abigail!
I have attached an example project that demonstrates how to play a Tween on a certain event (in your case, Mouth Opened Event). You invoke the Tween with global.tweenManager. For more information on how to create tweens, please visit this guide here.
As for randomizing the movements and rotations of the icons, I recommend looking into Math.random() (see the documentation here). Using this function, you can randomize the start and/or end values that your tweens use. I recommend doing this at the very beginning of the startTween() function of the TweenType. Set the script.start and script.end to randomized values before defining the startValue/endValue variables in startTween(). You may either create your own TweenType script that implements this extra step, or directly modify the built-in TweenTypes.Let us know if you have any other questions!
Cheers,
KaitlynComment actions
Please sign in to leave a comment.
Have a comment?