Hello.
I want make scale my object when it move.
I know about object.scale(), but using this method I get instant results, and I need a change (for example, an increase in the object) to occur in real time, “before my eyes”
How can I achieve this?
Hello.
I want make scale my object when it move.
I know about object.scale(), but using this method I get instant results, and I need a change (for example, an increase in the object) to occur in real time, “before my eyes”
How can I achieve this?
You probably want to use transitions (see https://docs.coronalabs.com/api/library/transition/to.html).
You can use transition.to and pass xScale and yScale as references to scale the display object over time.
Ditto.
local obj = display.newCircle( 100, 100, 10 ) transition.to( obj, { xScale = 2, yScale = 2, time = 5000 } )
You probably want to use transitions (see https://docs.coronalabs.com/api/library/transition/to.html).
You can use transition.to and pass xScale and yScale as references to scale the display object over time.
Ditto.
local obj = display.newCircle( 100, 100, 10 ) transition.to( obj, { xScale = 2, yScale = 2, time = 5000 } )