I'm updating my animation with this line:
animation.setTextureRect(IntRect((frame-1)*16, 0, 16, 16));
Where frame is a number between 0 and 9 and 16 is the width and height of an individual frame of my sprite sheet.
This gives me the first frame and not anything else.
Why doesn't this work?