0% found this document useful (0 votes)
35 views1 page

TweenMax Animation Functions Explained

The document describes methods for shaking, counting, twinkling, and killing tweens in TweenMax. It defines methods like ShakePosition, Count, Twinkle, SetID, and KillByID to animate values and properties over time with effects like shaking and repeating.

Uploaded by

Rahmad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views1 page

TweenMax Animation Functions Explained

The document describes methods for shaking, counting, twinkling, and killing tweens in TweenMax. It defines methods like ShakePosition, Count, Twinkle, SetID, and KillByID to animate values and properties over time with effects like shaking and repeating.

Uploaded by

Rahmad
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

[Link]=function(e,n,t,o){if(void 0!==e){var a=[];void 0===[Link]?

[Link](e):a=e,void 0===t&&(t=3),void 0===o&&(o=5),void 0===n&&(n=1);for(var


i=[],r=0;r<[Link];r++)[Link](a[r].position);var u={vibrato:0},c=-1;return
[Link](u,n,{vibrato:t,ease:[Link],onUpdate:function(){var
e=[Link]([Link]);if(c!==e){for(var n=new
cc.Vec2([Link]()*o,[Link]()*o),t=0;t<[Link];t++){var
r=a[t],f=i[t];[Link]=new cc.Vec2(f.x+n.x,f.y+n.y)}c=e}},onComplete:function()
{for(var e=0;e<[Link];e++){a[e].position=i[e]}}})}[Link]("shake position with
undefine node")},[Link]=function(e,n,t,o,a){var i={value:e},r=e;return
[Link](i,t,{ease:[Link],value:n,onStart:function(){"function"==typeof
o&&o(e)},onUpdate:function(){var e=[Link]([Link]);e!
=r&&(r=e,"function"==typeof o&&o(e))},onComplete:function(){"function"==typeof
a&&o(n),"function"==typeof a&&a()}})},[Link]=function(e,n,t,o){return
IsNumber(t)||(t=-1),0==t&&(t=1),(!IsNumber(n)||
n<=0)&&(n=.5),[Link]({value:0},n,
{value:1,ease:[Link],repeat:t,onRepeat:function(){[Link]=!
[Link]},onComplete:function(){"function"==typeof
o&&o()}})},[Link]=function(e){if("object"==typeof e)return
null==e._arrTweenByID&&(e._arrTweenByID=[]),void
e._arrTweenByID.push(this);null==[Link]&&([Link]={}
),null==[Link][e]&&([Link][e]=[]),[Link]
nByID[e].push(this)},[Link]=function(e,n){for(var
t=[Link](e),o=0;o<[Link];o++){var a=t[o];if([Link](),n){var
i=[Link]("onComplete");"function"==typeof
i&&i()}}},[Link]=function(e){return"object"==typeof e?
e._arrTweenByID||[]:null==[Link]?
[]:null==[Link][e]?[]:[Link][e]};

You might also like