So, I have my player with 5 HP (health).
And I have an animation with 5 frames. Each representing the number of hearts of the health. Each damage, player loses 1 HP (and 1 heart from animation).
What I want to do, and I'm not being able to, is something like this:
If HP = 5, set animation frame to 1
If HP = 4, set animation frame to 2
why not?
If HP = 5, set animation frame to 5
If HP = 4, set animation frame to 4
or in one event:
................set animation frame to HP
example.capx