Skip to content

Instantly share code, notes, and snippets.

@chrisdugne
Created March 4, 2018 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdugne/e36ae432ccb8ef6a74ce3ab828c3f052 to your computer and use it in GitHub Desktop.
Save chrisdugne/e36ae432ccb8ef6a74ce3ab828c3f052 to your computer and use it in GitHub Desktop.
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