It looks like you're new here. If you want to get involved, click one of these buttons!
scale
alpha
y
local texture = Texture.new("image.png") local myCar = Bitmap.new(texture) stage:addChild(myCar) local newScale = myCar:getScale()*.2 myCar:setPosition(200, 500) GTween.new(myCar, 8, {x = 500, y = 50, alpha = .2, scaleX = newScale, scaleY = newScale})
local newScale = mySprite:getScale()*.2
local newScale = myCar:getScale()*.2
In the example codem you mean:local newScale = myCar:getScale()*.2 don't you?
Comments
Author of Learn Lua for iOS Game Development from Apress ( http://www.apress.com/9781430246626 )
Cool Vizify Profile at https://www.vizify.com/oz-apps
Note for starters : scale is accessible through GTween by using scaleX and scaleY