SFML community forums
Help => Graphics => Topic started by: DarkNemesis on August 03, 2013, 09:24:54 pm
-
Hello everyone.
Can anyone give me a hint on how to do this :
I have a sprite of a character, and all its various angles into a single image. But when I draw the sprite, it draws the complete square i.e. it includes the white background along with the human body and this overlaps in my game and create weird visuals. One solution I see is that I save one sprite with complete pixel accuration per image so that there is no background. But this means 4 images for a single character (top, left , right, bot) and drawing this way would be very inefficient. So is there any way that I have all the movement sprites loaded in a single image and I am able to draw them pixel by pixel with no unnecessary background coming along with it??
-
It sounds like what you want is an image with transparent parts. MS Paint can't do transparency at all, so if that's what you're using try another image editor like Paint.net or GIMP which can.