Question about resolution!

D

Doooooli

Guest
I having a bit of a problem atm, I'm using the simple:

Code:
if mouse_check_button_pressed(mb_left)
   {
   if window_get_fullscreen()
      {
      window_set_fullscreen(false);
      }
   else
      {
      window_set_fullscreen(true);
      }
   }
To make my game in fullscreen, which works, but the sprites I have gets all blurred out when I do it :p I mean the sprites orgin is 32x32, and idk why it gets blurry when the game enters fullscreen :p Does anyone know?

thx!
 

RangerX

Member
It get blurry because when your game when fullscreen is resized by a fractional value instead of an integer value. Upscaling by a fraction value creates graphical damage (fractions of pixels don't exit, GMS need to remove or add pixels to "round" the image). Anyhow, this triggers graphic interpolation wich is meant to hide that graphical damage. Anyhow, you can disable the interpolation with the function "texture set interpolation". And you should scale your game properly too :p
 
D

DevNorway

Guest
Go in Global Game Settings > Windows > Graphics and toggle off Interpolate colors between pixels.
 
Top