VicFirth Posted December 4, 2018 Share Posted December 4, 2018 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. Link to comment Share on other sites More sharing options...
samme Posted December 4, 2018 Share Posted December 4, 2018 PathFollower is based on Sprite, so yes. Link to comment Share on other sites More sharing options...
VicFirth Posted December 4, 2018 Author Share Posted December 4, 2018 Is there an example in the Phaser documentation? I've searched far and wide but couldn't find a proper example. Link to comment Share on other sites More sharing options...
Telinc1 Posted December 7, 2018 Share Posted December 7, 2018 As samme already said, a Path Follower is a subclass of a Sprite. This means that it has all of the properties of a Sprite, so you can animate it like you would animate any other Sprite. There are plenty of examples of animation, just substitute the Sprites in them with your Path Follower. Link to comment Share on other sites More sharing options...
Recommended Posts