Skip to content

Instantly share code, notes, and snippets.

@vib3oh
Created November 15, 2012 17:13
Show Gist options
  • Save vib3oh/4079838 to your computer and use it in GitHub Desktop.
Save vib3oh/4079838 to your computer and use it in GitHub Desktop.
AKtween ":append()" Implementation
--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