SFML community forums

Help => Graphics => Topic started by: slotdev on October 18, 2011, 06:07:05 pm

Title: Fading a sprite
Post by: slotdev on October 18, 2011, 06:07:05 pm
Hello

Forgive the stupid question but how do you fade a sprite? I just want to be able to adjust the level of alpha (I think).

Thanks
Ed
Title: Fading a sprite
Post by: Laurent on October 18, 2011, 07:08:00 pm
Code: [Select]
sprite.SetColor(sf::Color(255, 255, 255, alpha));