If I have a function that gets a parameter of an array, how do I modify a value in it, then pass it to transition.to?
I know how to do it, but it’s not working. What am I doing wrong? Here’s my non-working code:
[lua]function moveGround(ground,p1)
p1[onComplete] = function() moveGround(ground,p1) end
–do other stuff
tmove = transition.to(ground,p1)
end
moveGround(groundObj,{x=100,y=235})[/lua]
I get a “table index is nil” error. Help anyone? [import]uid: 8782 topic_id: 5686 reply_id: 305686[/import]