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

Author Topic: Creating sprites with different levels of transparency  (Read 2402 times)

0 Members and 1 Guest are viewing this topic.

Frostbite

  • Newbie
  • *
  • Posts: 17
    • View Profile
Creating sprites with different levels of transparency
« on: December 08, 2009, 06:14:04 am »
Hey, I'm back. Anyway I'll get straight to the point, its not an error, its a question. I have a sprite that is a small sphere and I would like to have it so the fringes are slightly transparent,. Is there any way to do this? I noticed that when I draw it, it is either all the way transparent or it is fully colored. it is a .png and is drawn perfectly in GIMP =)
But yea, not to important of a question, just a wondering

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Creating sprites with different levels of transparency
« Reply #1 on: December 08, 2009, 08:11:06 am »
The solution is to edit the alpha channel of your image directly in GIMP.
Laurent Gomila - SFML developer

Syphod

  • Jr. Member
  • **
  • Posts: 51
    • View Profile
Creating sprites with different levels of transparency
« Reply #2 on: December 08, 2009, 07:43:59 pm »
Save it as a 32-bit PNG (24-bit may work either but I cannot garentee)

 

anything