I have the following code in my program:
local test = function( obj )
print( "done")
end
transition.to( grid[bS].visual, { time=2000, x=gridX+21+((temp1x-1)\*43) , y= gridY+21+((temp1y-1)\*43), onComplete = test()} )
Despite all my best efforts and various changes of the time param, the message prints as soon as the transition is reached and not after is it done. Has anyone else experienced this or see anything wrong with my code? I literally copy and pasted from the reference page and just changed the names so I don’t know where the error lies.
Thanks. [import]uid: 8666 topic_id: 9830 reply_id: 309830[/import]