I'm not sure how to even start such thing, but I want to make when I click a button it will capture PNG Sequence of every FRAME of an animated sequence exactly for X amount of frames.
If the Sprite Animation have 12 frames on X speed.
I want the button to CAPTURE all 12 frames that on the canvas (even if there are more than 1 sprites)
with all the frames without weird manual timing guesses issues or bugs based on machine speed, it must be accurate based on every frame of the Sprite Speed so it won't just capture multiple of the same frame more than once. like when you Render / Export from any animation or video edit software to PNG Sequence.
The goal is to let the user CLICK to capture the canvas and it's sprites as a usable PNG file sequence.
So it's also need to add number at the end of the file AUTOMATICALLY.
PNG_Sequence_0001.png, PNG_Sequence_0002.png, PNG_Sequence_0003.png etc..
Can somebody help me start make such thing work, I don't even know how to begin but I can only guess that it's related to drawing canvas and capture features? (just guessing)
Any help, step-by-step guide or video tutorial related will be very appreciated, thanks ahead! :)