How do I check if an animation is playing?
I saw in the phaser API docs an isPlaying function under the ‘Animation’ section, and I tried doing something like:
if ( player.anims.isPlaying(‘walk’) ) {
// do something
}
I got an error that there’s no such function. Is there a way to check?