GTween is a light-weight instance oriented tween engine. This means that you instantiate tweens for specific purposes, and then reuse, update or discard them. This is different than centralized tween engines where you "register" tweens with a global object. This provides a more familiar and useful interface for object oriented programmers.
GTween boasts a number of advanced features:
--define what to animate
local animate = {}
animate.y = 100
animate.x = 100
animate.alpha = 0.5
animate.scaleX = 0.5
animate.scaleY = 0.5
animate.rotation = math.random(0, 360)
--define GTween properties
local properties = {}
properties.delay = 0
properties.ease = easing.inElastic
properties.dispatchEvents = true
--animate them
--- First argument: sprite to animate
--- Second argument: duration of animation in seconds or frames
--- Third argument: properties to animate
--- Fourth argument: GTween properties
local tween = GTween.new(sprite, 10, animate, properties)
--adding event on animaiton complete
tween:addEventListener("complete", function()
stage:removeChild(sprite)
sprite = nil
end)