Is there any way to add parameters to a function specified in onComplete in a transition.to? Here’s an example:
--just an example. Don't blame me if something is wrong. local function myFunction(obj) --code code code --used obj somewhere in this code end local objForFunction = display.newImage("image.png") transition.to(obj{alpha = 0.2, onComplete = myFunction(objForFunction)}) -- Can I have onComplete parameters?
I don’t really understand the docs for transition.to, so can anyone answer my question? Thanks.