• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Resize screen

N

Nerozeau

Guest
Yeah sorry. But I didn't want create a new post for this problem. sorry again.
 

Cameron

Member
This is a stab in the dark but go into global game settings, windows, and toggle off "interpolate colors between pixels" and see if that produces the result you are looking for. Also, make sure "maintain aspect ratio" is toggle on.
 
N

Nerozeau

Guest
Thanks for your help, but I have already do that. When I go in other size of screen the tiles and object are correct but the text is blurry ^^
 
D

Danei

Guest
What are the dimensions of your view? If they don't scale up to the size of the fullscreen display in integer amounts, it could result in pixels appearing stretched or squashed. Of course, in that case, this should also happen to other scaled-up graphics, which you say look correct, but it's often most noticeable on text.
 

Cameron

Member
Thanks for your help, but I have already do that. When I go in other size of screen the tiles and object are correct but the text is blurry ^^
Is your text being drawn to the gui? You may need to set the gui size or experiment with that. Something like display_set_gui_maximise(); for example. Again, just another shot in the dark.
 

Dr_Nomz

Member
If by blurry you mean what I think you mean, then I would consider trying this:
Click on the top bar option "Resources"
Then Change Global Game Settings
Go into Windows > Graphics, then turn off "interpolate colors between pixels" and see how that looks. That can cause blurriness for certain assets.

If that wasn't it, post screen shots and maybe some code/preferences that may be affecting it.
 

RangerX

Member
Your text is being blown up to an eneven scale factor and therefore the interpolation kicks in.
Yes you can disable interpolation like previous posters are saying but the fonts in gamemaker also have their own anti-aliasing / interpolation. You need to open up your font properties screen and uncheck "high quality". This means you will prevent interpolation on the text. There's won't be anymore. If your font looks clear but distorted then its your scale factor that isn't an integer.
 
N

Nerozeau

Guest
I'm sorry if I was not very precise in my explanations.
Here is some screen of the code and game :

Room view 640/480 size screen 640/480 - https://www.noelshack.com/2019-05-3-1548837974-capture.png
Room view 640/480 size screen 1280/960 - https://www.noelshack.com/2019-05-3-1548837989-runner-30-01-2019-09-45-52-867.png

Room view when I uncheck "High quality" in 1280/960 - The text not appear
Global settings - https://www.noelshack.com/2019-05-3-1548838265-capture.png
Code in draw gui - https://www.noelshack.com/2019-05-3-1548838054-code.png (It was before in basic draw but I thought I understood that we need to put in Draw gui when we want to change size of screen)


RangerX "If your font looks clear but distorted then its your scale factor that isn't an integer." What do you want to say by "that isn't an integer" .

Thanks all for your help ! ^^
 

RangerX

Member
What I mean is that you need to make sure you're not scaling up by a fraction else it will look bad or make the interpolation kick in if you didn't block it. Right now you apparently scale up to 1280x960 which is "x2", that's good.
If you had scaled to "1024x768" even if that is a 4:3 resolution like your game, it would have looked like a mess because the scale factor wouldn't be a number (integer) like 2 but a fraction. (1,6 in the case of my example here)
Also, there's something wrong with your text. Its not because you unchecked "high quality" that it doesn't appear anymore.
 
Top