It is stored...
Here's how I init:
void GameState::initAni()
{
explosionSprite.SetTexture(im.getImage("explosion18.png"));
for(unsigned i = 0; i < 2050; i+=128)
for(unsigned j = 0; j < 2050; j+= 128)
{
sf::IntRect temp(j, i, 128, 128);
ani->AddFrame(1.f, temp);
}
ani->Apply(explosionSprite, 1.f);
animator.AddAnimation("explosion", ani, 2);
}
Then I call:
void GameState::playExplosion(float x, float y)
{
explosionSprite.SetPosition(x+50, y+50);
animator.PlayAnimation("explosion");
explosionCount++;
}
[/quote]