Hello,
I was hoping that I could animate the fill of a display object when I had moved any of the corners of the quad. This is not working as displayed by the code below. Is this meant to not be working or do I have to do something else to make it work?
I’m on 2014.2189 (release is imminent so updating is not really an option I’m afraid)
local waterAsset = { path = 'water.png', width = 200, height = 200, } local water = display.newRect(display.getCurrentStage(), 512, 384, waterAsset.width, waterAsset.height) water.fill = { type = 'image', filename = waterAsset.path } --water.path.x1 = waterAsset.width \* -0.5 -- animation does not work with this line local waterAnimation = transition.to(water.fill, { x = 1, time = 10000, })
Best Regards,