Flight paths

My game flies a kite through various patterns - dev site

The next step is to introduce more complex movements like here -
phaser example.

Please advise on how to get my kite object to follow a defined path as a step in a timeline (getting way confused here).

A timeline is probably not the easiest way to do this.

Instead of multiple (chained) tweens, you now want 1 tween, but multiple curves.
So when the tween (from 0 to 1) reaches 1 (onComplete), set curve to the next Bezier you defined, and repeat (no yoyo).

I’m struggling with the syntax. You have an example? Just to be clear, I’m trying to insert a path/curve bit into a timeline. The whole pattern is way too long and complex to do in a single set I think. Maybe not, especially if there is way to reuse bits of it, like common movements, spin 306 and continue for example.

Like this, but obviously you can also not repeat, and chain multiple tweens in a timeline.

You can also look at Phaser PathFollowers.

Fabulous, thanks! The bit I was missing was the ‘onUpdate’ part. The target of the tween is the path and it’s in onUpdate that it refers to the image. Great stuff!