I created a DemoCharSprite object that extends Pane and holds an imageview of the character. I only used the extension of Pane here because I'm novice to Javafx... However, implementing sprite animations is confusing me.
I have a set of 8 png files that showcase an avatar walking north. I've stored them in a Collection object. However, I don't know what data structure I could use that could make it so that javafx loops through each collection and changes the imageview within my DemoCharSprite pane to display each sprite picture in an evenly spaced and short amount of time. There doesn't seem to be any built-in Transition objects that could be used for displaying multiple images in a sequential order.
Does anyone know a workaround for this?