Custom class animations not working

I don’t understand what’s wrong with my code, I looked it up online, I tried messing around but I couldn’t get it to work. GitHub - Disuqi/Disuqi.github.io here you can see all the source code
PLEASE HELP I have been stuck for hours it’s really frustrating :frowning:

:wave:

Which part isn’t working and how?

if you go to the github page and look at the playerClass branch, you can see that I tried to make a custom class called player, before that I just had this.physics.add.sprite(x, y, key); where this was the main scene. I then changed this to be new Player(scene, x, y); Player is the custom class that extends Phaser.Physics.Sprite I think or something similar. Anyways when I did that the animations did not work any more. I can see the debug lines, I think that’s what they are called and I can move the player, but no animation will play, not even idle, nothing. I tried setting the frame of the player to 0, but that did not work as well. I am not sure what’s wrong. I really appreciate your help. Thank you very much

https://github.com/samme/phaser3-faq/wiki#how-do-i-extend-a-game-object

That worked thank you so much!