Here's how I want it to work: when standing on the plant with the player, it should play the "plant.shrink" animation, and when the player gets off, it should play the "plant.reset" animation. But if the player gets off before the "plant.shrink" animation finishes, the "plant.shrink" animation still should finish before playing the "plant.reset" animation. Once the "plant.reset" animation is finished, it should stay on that last frame and not play any animation.
Here is my hierarchy: StaticBody2D at the root, an Area2D underneath with a CollisionShape2D inside (this will check if the player is standing on the plant {checks if player on floor while touching the area}), another CollisionShape2D under the root, this is the collision itself the player will be able to stand on, the animation shrinks it so it doesn't need to be worried about in code, a Skeleton2D for the display sprites and an AnimationPlayer for the animations.
Any help?