Jacco posted this code for this topic a while back
to load 2 different images in a 50x25 tga file into two different sprites...
when I try this I get two of the same image - how do I get the buffer surface to point to the next image?
- Code:
ASurface buffer("sprites.tga");
ASprite spr1( buffer, 25, 25 );
ASprite spr2( buffer, 25, 25 );
to load 2 different images in a 50x25 tga file into two different sprites...
when I try this I get two of the same image - how do I get the buffer surface to point to the next image?