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

Author Topic: Pixel perfect sprite  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

DarkNemesis

  • Newbie
  • *
  • Posts: 11
    • View Profile
Pixel perfect sprite
« 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??

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Pixel perfect sprite
« Reply #1 on: August 03, 2013, 09:40:43 pm »
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.

 

anything