Getting the total amount of frames that is contained in the currently playing animation can be useful:
- To determine where roughly the middle part of the animation is - for telling the engine to skip to it in some cases or use it as a condition for something to happen.
I know you can hard code it, but how much easier it would be if we could just get that value and reuse the logic on multiple animation clips/sprites.
-Not only for the middle. We can use math to figure out where 30% is or 80% is of an animation being played