I looked at the Group class but not sure how to incorporate that with paths and graphics shapes.
Hi, not sure if this is what you mean, but look at this example
Simply add
var lemming2 = this.add.follower(path2, 0, 0, 'lemming')
lemming2.startFollow({
positionOnPath: true,
duration: 3000,
yoyo: true,
repeat: -1,
rotateToPath: true,
verticalAdjust: true
});
And you will have a lemming sprite following path1 and another one following path2 with same timing
1 Like