Hello everybody! I'm in the process of making a game. I was using SFML 1.6, and was recently informed to upgrade to SFML 2.0. I did, and fixed everything I had to, hoping that it would fix the texture. But it did not. My texture now looks like this:
http://videobam.com/vdtJRIt's horrible. Normally it would looks like the lights were normally blinking. This is my actual texture:
http://i.imgur.com/oKl4VBO.pngand this is the code I'm using to set the sub rect
playerSprite.setTextureRect(sf::IntRect(imageLoop % 4 * 32, floor(imageLoop / 4) * 32, imageLoop % 4 * 32 + 32, floor(imageLoop / 4) * 32 + 32));
It was working perfectly before I upgraded from SFML 1.6 to 2.0. Please help! This is really annoying.
Also, it made the sprite extremely off center. Normally, these bullets are centered:
http://i.imgur.com/jYDaOqY.jpg