It looks like you're new here. If you want to get involved, click one of these buttons!
local background = Bitmap.new(Texture.new("background.png")) sprite:setAlpha(0.0) stage:addChild(background) -- Fade in and out GTween.new(background, 2, {alpha = 1.0}) GTween.new(background, 2, {alpha = 0.0}, {delay = 1.0}) |
Comments
You can also tween "rotation", "scaleX" and "scaleY" parameters. Here is a simple example:
Likes: Holonist
GTween and Ease is good stuff when you know all the properties.
update: Some usefull information: http://gskinner.com/libraries/gtween/docs_v2_01/