According to me it depends if all the possible sprites are already predefined in the game.
If so, you might just build an interface to save a sequence of sprites in an array.
For example: you make 1 sprite with 10 possible frames. You create an array and populate with numbers 0 to 9 at runtime, and you make a routine to loop through the array and set the correct frame.
If, on the other hand you want to upload your own custom sprites at runtime, I don't really know...
You can find plenty of examples of looping through arrays on my youtube channel, for example in the bubble shooter
youtu.be/Skc7JJOYSOI
changing animation frames at runtime is easy, for example found in solitair when flipping cards around :
youtu.be/E1zqEGLeCyI
I hope to have helped you