I followed your step by step tutorial. Below are the code snippets.
-define in your component the png frames as OwnedArray frames
- load all the pngs in order and add() them to the frames array- doing this in the constructor.
for(int a= 0;a<8;a++)
image = ImageFileFormat::loadFrom(f);
then start the timer, and trigger a repaint() in timerCallback
then in you paint method, you only need to access the right png, blit it and then increment the counter
void paint (Graphics& g)
if (counter <= images.size())
juce::Image* currentFrame = images.getUnchecked(counter++);
counter = 0;
when I run my program I get the following error
JUCE Assertion failure in juce_OwnedArray.h:157
where am I going wrong.