Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Fading a sprite  (Read 1082 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Fading a sprite
« 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
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Fading a sprite
« Reply #1 on: October 18, 2011, 07:08:00 pm »
Code: [Select]
sprite.SetColor(sf::Color(255, 255, 255, alpha));
Laurent Gomila - SFML developer

 

anything