Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Fading a sprite
Print
Pages: [
1
]
Author
Topic: Fading a sprite (Read 1321 times)
0 Members and 1 Guest are viewing this topic.
slotdev
Sr. Member
Posts: 385
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
Logged
SFML 2.1
Laurent
Administrator
Hero Member
Posts: 32498
Fading a sprite
«
Reply #1 on:
October 18, 2011, 07:08:00 pm »
Code:
[Select]
sprite.SetColor(sf::Color(255, 255, 255, alpha));
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Fading a sprite