Making an object follow a path

Hi, i’ve been trying to make an object traverse along a pre-defined path with no success.

I’ve tried using transition.to to achieve the effect by placing the coordinates of the path into an array and using a while block to execute the transitions
However, it seems the while block executes without processing the intermediate transitions, so what results is only the last transition.

Would there be a way to go about this, and if there is, could someone point me in the right direction please. [import]uid: 8694 topic_id: 2280 reply_id: 302280[/import]

A transition can have an onComplete handler. In this handler function you can check if there is another node of the path to move too and then you fire the next transition. [import]uid: 5712 topic_id: 2280 reply_id: 6873[/import]

If you are still having problems, please post some sample code.

Thanks,
Tom [import]uid: 7559 topic_id: 2280 reply_id: 7042[/import]