1
Window / Re: Change window position - event
« on: September 30, 2014, 02:57:33 pm »
Thanks a lot! It's good idea ;-)
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
May I ask why do you want to do this instead of manually putting all your sprites on a big image manually?The answear is include in Your question - because it's manual ;-).
It multiplies the colour you give it with the colours in the texture. White would mean that it allows all colours to pass through unmodified. Other colours tint the texture. Imagine holding different coloured glass/plastic over the texture image; white would represent clear.Thanks @Golden Eagle but it still doesn't work ;/
EDIT: Also, you wouldn't be putting an sf::Color as a paramter to sf::Color.
Try this:sprite.setColor(sf::Color::Red);
sf::Texture texture;
texture.loadFromFile("ball.png");
sf::Sprite sprite;
sprite.setTexture(texture);
sprite.setPosition(100, 25);
sprite.setColor(sf::Color::Red);
And Sprite changed a color but not for Red but almost black. I tried set meny of colors but it changed for black only.sprite.setColor(sf::Color(sf::Color::White));
but it doesn't work ;/