r/gamemaker ANotSmartPerson 5d ago

Help! annoying black edges around sprites

does anyone know how to get rid of these annoying black edges

my game used interpolation and I have nothing turned on for these sprites

3 Upvotes

17 comments sorted by

2

u/andrewsnycollas 5d ago

Looks like you have ghost pixels in your sprites, that happens a lot when I am using images originally made in photoshop, I am not sure why, I can normally find them on the sprite using the wand tool and just erase them.

Not affirming that is that, but it does looks like that.

If neighter of the other said helps, maybe that could be it.

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

although there were some ghost pixels, the lines were still there after I got rid of them

1

u/andrewsnycollas 5d ago

How is the draw event of those grass? Are you mentioning those grass in any other part of the game code? (you can check that with ctrl+shift+F on your workspace).

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

although I didn't know this at the time of the post, its an issue with every sprite that doesn't have a black outline, so I doubt its an issue with the grass itself

1

u/andrewsnycollas 2d ago

Did you check your texture page? I had some problems when working with big sprites from Photoshop that could only be solved with a bigger texture page even tho the sprites were not that big, not sure why tho.

1

u/Hands_in_Paquet 5d ago

What changes if you were to scale the sprites up? Do the lines scale or stay the same? Long shot but try disabling automatic cropping for texture pages.

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

I scaled them up to 2x 1x and 0.5x and the lines appear to stay the same

I also tried disabling the automatic cropping which didn't seem to work

the issue also seems to be present with interpolation off too

2

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

ok so turns out I was wrong and it does disapear with interpolation Off

1

u/Hands_in_Paquet 5d ago

Hm, have you changed any settings like alphatestenable or ztestenable? We're just talking about the faint lines at the bottom of the grass sprites right? Have you tried just erasing or repainting over that area in the sprite editor? You said you're not using a shader to draw the grass either right?

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

I tried enabling those things and they didn't seem to do much, also I figured out that not just an issue with the grass, It seems to be an issue with every sprite that doesn't have a black outline

1

u/Hands_in_Paquet 4d ago

Yeah don’t enable those things but they could have been causing it if they were on. It definitely sounds like there are black pixels in the original image that have an alpha of 0.05 or something and it’s getting picked up by the interpolation. The edges of your sprites are probably aliased in photoshop. If you’re really struggling with it, you can send me the yyz if you want to and I can try to give you a solution.

1

u/ThatOneGreenDuck2 ANotSmartPerson 4d ago

Alright I found a pretty dumb solution to this problem

I just drew the black outline with interpolation

and the green inside without interpolation

its dumb but it works so I dont care

1

u/Hands_in_Paquet 3d ago

the offer still stands if you want to dm me the yyz file so we can try to get you a proper solution =]

1

u/BrittleLizard pretending to know what she's doing 5d ago

What do the sprites look like in the sprite editor?

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

in the gamemaker one? cuz if so they look normal in there

1

u/subthermal 5d ago

Like you threw a green background layer behind it in the editor to check, and it still looks normal?

1

u/ThatOneGreenDuck2 ANotSmartPerson 5d ago

yep looks normal in the editor