Im trying to increase the size of an object from 0,0 to 500,500 over 2.25 seconds, I have the codes as below, but can’t seem to get it to work. Can anybody help?
Thanks
[blockcode]
local hoop = display.newImageRect(“greenhoop.png”, 0, 0 )
gamescreen:insert( 1 , hoop )
dospawn = 0
hoop.alpha = 0
hoop.x = centreX
hoop.y = centreY
transition.to( hoop, { time=2250, alpha = 1,} )
transition.to( hoop, { time=2250, width = 500, height = 500, transition=easing.inQuad, onComplete = destroyHoop } )
timer.performWithDelay(1000, resetSpawn, 1 )
[/blockcode] [import]uid: 8699 topic_id: 5552 reply_id: 305552[/import]