I am using transition.to to move objects, but the problem is that I don’t know how to get another object to start transitioning after the first object either finishes moving or is collided with. Can anyone help me? [import]uid: 48020 topic_id: 21143 reply_id: 321143[/import]
can you explain more your problem…what do you want to do when you move the first object? [import]uid: 116872 topic_id: 21143 reply_id: 83692[/import]
If it’s collision you’d use a collision listener, if it’s on complete then it would be like this;
[lua]local function trans1 ()
transition.to(obj2, {time=1000, x=100})
end
transition.to(obj1, {time=1000, y=100, onComplete=trans1})[/lua]
That says when obj1 has finished its transition to call the function trans1, which we wrote to move obj2.
Peach
[import]uid: 52491 topic_id: 21143 reply_id: 83717[/import]