hi everybody again
I´m sorry that I´ve to ask quite a lot, but sometimes I´m unable to find a possible solution.
This time I want to load some images from a sprite sheet, like this...
For this I use the sf::IntRect function... but I don´t know how to set the parameters. After I tried a few things, I allready know that the two last parameters give the size of the sprite.
So I guess the other two are standing for the position, but this won´t work
sf::IntRect Rect(0, 0, 45, 45); /* Everything allright... the first sprite is shown.*/
sf::IntRect Rect2(45, 0, 45, 45); /*This should cut out the second sprite, but when I display it, it appears just a black screen */
sf::IntRect Rect(-45, 0, 45, 45); /*What happens now, you can see in the screenshot below...
So, what have i to do, that the second sprite is shown on the screen?
Thanks in advance!