Hello! good day. First of all, I want to clarify that I am following "HeartBeast" tutorials on how to make an RPG game, and the tutorial I saw was for the animation for when you defeat an enemy.
I finished the entire tutorial and followed it step by step, but when I defeat the enemy, the death animation is executed and when it finishes, it stays in the last frame and is not removed from the screen.
I attach images of the code and animation. Thank You!