• Content Count

  • Joined

  • Last visited

  1. Is there an example in the Phaser documentation? I've searched far and wide but couldn't find a proper example.
  2. Hi, I was wondering if you can add an animation to a follower object? I want to spawn enemies that have their own walking animations and walk their own path (using startFollow()) Thanks.
  3. Hi Everyone, I want to rotate my bounding box of my follower object that I've created. Is this even possible? If so, how to do it? This is a little snippet of my code: class Car { constructor(game, texture, path){ var curve = new Phaser.Curves.Path(game.cache.json.get(path)); var graphics =; graphics.lineStyle(1, 0xff0000, 1); curve.draw(graphics, 128); graphics.fillStyle(0x00ff00, 0.5); = game; =, 0, 0, texture); //Set the size of the bounding box,35, true);; = 45 //????? this.path = path; //Start following along the predefined path{ duration: 7000, positionOnPath: true, rotateToPath: true, verticalAdjust: true }); } So what I want is this: but what I get is this: How can I achieve that with a follower? Thanks.