hi, in the code below, i can’t have acces to result because the two value are volatile and is not persistent.
is there a way to have a persistent value for two to make the last operation result ? i must say that in the future i must have access to result, so result must be also persistent.
local rectangle = display.newRect(200,200,300,300) rectangle.xScale=1 rectangle.yScale=1 transition.scaleBy(rectangle, {tag=rectanglefall, time=1000, yScale=-1 , xScale=-1}) one= rectangle.xScale timer500 = function() two=rectangle.xScale end timer.performWithDelay( 500, timer500) result=two-one print(result)