Loading sprite adds white lines

C

cdeng001

Guest
Hi!

I am making a tetris clone and created sprites for each basic piece. However I noticed that the sprites that have been uploaded are a bit different than the original .png files. http://imgur.com/ROUIe6o

There are extra white lines on the loaded sprites and it seems to be causing an issue with the collision mask.

http://imgur.com/rQvOErv

Is there any way to get ride of that extra white line residue on the sprites?
maybe it is the format I am uploading in? is bmp better?

Thanks!

Sorry in adv if this is in the wrong section, idk where else to ask this kind of question

I found a hacky solution thanks to jo-thijs!
I erased a border of width 1 from each of the pieces and now they fall in place.
Make sure to use Make Opaque and the wand tool to get rid of any invisible marks
 
Last edited by a moderator:

jo-thijs

Member
Hi and welcome to the GMC!

You should just simply remove the lines in the image editor.
If their alpha values are too low to see, go edit the sprite, click on "Images" and then on "Make Opaque...".
This will make everything of your image visible.

Now go edit the image.
Either use the magic wand to select the background and cut it away
or use the eraser with the smallest size and highest hardness to manually erase everything (from the background).
 
C

cdeng001

Guest
Thanks but after I used "make Opaque" and then the wand to get rid of the white space, they still appeared in the image.

It is strange because the white does not show up in any editor but only in that small thumb nail. That area is exactly where my pieces are getting stuck

edit: http://imgur.com/0y8VeHe
 
Last edited by a moderator:

jo-thijs

Member
Hm, could you upload a project (gmz file, File > Export Project) with the sprites somewhere (mediafire, dropbox, box, onedrive, google drive, ...) and share the link?
Then I can take a look at why this happens.
 
Top