Hello. I am new to SFML and using version 2. I am able to create and texture a sprite but when I try to create any more than 1, I get an segmentation fault. Here is how I am trying to display the sprites:
int i, x, tile = 0;
for(i = 0; i < WINDOW_W; i += TILE_W) {
for(x = 0; x < WINDOW_H; x += TILE_H) {
sprite[tile].SetPosition(i, x);
window.Draw(sprite[tile]);
}
}
Thank you for any suggestions!