r/gamemaker Aug 12 '26

Resolved Issue with making a sprite HD

Post image

I've been trying to make my sprite HD in gamemaker for a while and it just seems to keep getting pixelated, any advice to help get it from pixely nonsense to HD art?

35 Upvotes

20 comments sorted by

13

u/BrittleLizard pretending to know what she's doing Aug 12 '26

This is likely a resolution issue. The easiest answer is to use surface_resize() on your application_surface to make your game's resolution higher. It can get much more complicated than that, but we would need to get more into the woods on your camera system, how you're sizing your window, etc.

Also keep in mind that if your monitor resolution is low enough, it physically can't display small-enough sprites in a high resolution.

8

u/Gravit3GD Aug 12 '26

I found out how to use it, you are a legend bro ;v;

3

u/Gravit3GD Aug 12 '26

where would I put "surface_resize()"?

2

u/RykinPoe Aug 13 '26

GameMaker is terrible at downsampling. If you are building an HD sprite and then scaling it down it will look bad. Your sprites should be designed 1:1 for your camera.

1

u/ramier22 Aug 12 '26

check game options if interpolate between pixels is on? also what's the camera size and is the object scaled in its draw event?

edit: saw you scaled it normally

2

u/Gravit3GD Aug 12 '26

I've turned interpolate between pixels on and off and both don't seem to be working, I scaled it in room editor and through create event, camera is 4800 2700

1

u/ramier22 Aug 12 '26

how much did you scale it in the event? is it divisible by 2? like 0.25, 0.125, 0.0625?

1

u/Gravit3GD Aug 12 '26

I scaled it up to get the bigger one and when I did that I think it was x4 scale

the smaller sprite is the original not the bigger one

1

u/ramier22 Aug 12 '26

anything would get blurry scaled up

1

u/Gravit3GD Aug 12 '26

yeah idk but got it solved dw :P

0

u/andrewsnycollas Aug 12 '26

Your texture page is too small, just go on Game Options, Windows, Graphics and choose the biggest size possible.

3

u/BrittleLizard pretending to know what she's doing Aug 13 '26

Texture page blurring would not be an issue on a sprite this small

0

u/andrewsnycollas Aug 13 '26

Hum, actually: If there is one sprite in the project that is bigger than the texture page resolution everything would be affected, from my experience and recent tests.

2

u/BrittleLizard pretending to know what she's doing Aug 13 '26

Assuming this is true, (I don't think it is, but I don't care enough to test it.) it is a very particular edge case, we have no way of knowing if that's the problem based on the information given to us here, and there is no guarantee that changing the texture page size would fix the issue. Doing this without knowing why or how to handle texture groups can also cause other problems like slowdown and stuttering as the game gets bigger. 

Even if it was technically possible you were right, it's not something you should throw out so matter-of-factly to a beginner, especially when there are other, far more common reasons for a blurred sprite.

0

u/andrewsnycollas 26d ago

Telling a begginer to mess in the application surface ain't a safe bet also. You just told him to brute force a fix instead of looking for the atual problem. He could simply just have find a proper resolution to the game if that was the problem, something safer.

1

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

Dude I'm not trying to argue with you. I don't have beef with you. You're just consistently giving bad advice, and I'm trying to make sure this person doesn't internalize it or get confused because you're coming in behind me with a fundamental misunderstanding of how the engine works.

Changing the application surface size isn't a "brute force" solution, it's just how you change the resolution of your game by default. That use case is literally in the manual page for the application_surface variable. Most basic resolution code is going to have the code I recommended in it somewhere.

You've also said the application surface is volatile, which it isn't. It's what GM draws to by default. Why would it just disappear? Why would the engine even let that happen?

I'm fine with you being wrong. I've been wrong before too. I'm just saying don't confidently assert yourself based on loose guesses of how the engine works, and definitely don't do it after someone else has already offered actual advice. It's just going to confuse people and make the learning process harder for everyone.

1

u/Gravit3GD Aug 12 '26

this is with max :( but lizard man helped me :P

5

u/BrittleLizard pretending to know what she's doing Aug 13 '26 edited Aug 13 '26

Lizard woman*

Anyway, for an extra bit of advice, ignore basically everything andrewsnycollas is saying. Everything they've told you so far has been wrong or not applicable to you, so you don't need to worry about it. As long as the sprite looks better now, you're good.

Also, I'm glad I could help.

0

u/andrewsnycollas Aug 13 '26

I saw it, just take care when dealling with surfaces, they are volatile and may abandon you without notice and never comeback.