SFML forum,
SFML 1.6 Visual C++ 2010
I have an png that is 64 x 320 and contains 5 sprite pictures.
1 2 3 4 the last one is blank.
If I use:
Numbers.SetSubRect(sf::IntRect(0,0,63,63));
Screen.Draw(Numbers);
a 1 is dispayed.
If I use:
Numbers.SetSubRect(sf::IntRect(64,64,127,127));
Screen.Draw(Numbers);
nothing is dispayed.
If I use:
Numbers.SetSubRect(sf::IntRect(0,0,127,127));
Screen.Draw(Numbers);
1 2 is dispayed.
etc.......
I have successfully used the same png file in another IDE
where all I have to do is set the frame number.
I have attached the .png file.
Any suggestions?
jerryd
[attachment deleted by admin]