Created
March 4, 2018 15:28
-
-
Save chrisdugne/e36ae432ccb8ef6a74ce3ab828c3f052 to your computer and use it in GitHub Desktop.
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
local t = 700 | |
local R = (x - toX) * 0.5 | |
transition.to(starHUD, { | |
time = t, | |
x = x - 2*R, | |
rotation = 360, | |
xScale = 0.2, | |
yScale = 0.2, | |
transition = easing.inOutSine | |
}) | |
transition.to(starHUD, { | |
time = t * 0.5, | |
y = y + R, | |
transition = easing.outSine, | |
onComplete = function() | |
transition.to(starHUD, { | |
time = t * 0.5, | |
y = y, | |
transition=easing.inSine | |
}) | |
end | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment