Damage sprite progress

Hi, I’m still new and still learning gdevelop . I’m working on my game that’s a scarecrow scaring away crows from a field, and I trying to make a damage progress of the crops becoming smaller as the field in attacked.
How do I set the animation to follow the damage’s progress (eg. 75%, 50%)?
And I’m also trying to limit the attack to a number of key press, that would give a slight delay if you used it all up before it recovers or have a faster recovery if don’t. like a stamina system.

These should be 3 separate events
But there is better way to do it

If you have crops with 100 health and you actually set animations of your crops names to 100 75 50 25 0
Then you can literally have ONE event to set animation of crops by name Set to ToString(crops.Health::Health())

How do I apply this? Do I need change the variable of the sprite?

I just realized your center object have health and crop have animation

Hi …can you explain the second part a bit more …just breaking down exactly what you want to happen