Created
November 15, 2012 17:13
-
-
Save vib3oh/4079838 to your computer and use it in GitHub Desktop.
AKtween ":append()" Implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Create a new AKtween | |
| local tween = AKtween:newTween({time=5000, y=-600, ease='outQuad', | |
| onComplete={time=5000, y=600, ease='inQuad'} | |
| }) | |
| --Append an existing AKtween | |
| tween:append({time=10000, x=100, ease='outQuad'}) | |
| --Sample result: | |
| --tween = { | |
| -- arr = { | |
| -- "y" = {-4.79, ... 0, ... 4.79}, | |
| -- "x" = {0.02, ... 2.43} | |
| -- }, | |
| -- totFrames = 600 | |
| --} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment