#when zooming in, the graphics on my screen stretch and shrink in very ugly ways

5 messages · Page 1 of 1 (latest)

spiral saffron
#

Its a pixel art game, any idea how to fix?

rain zephyr
#

If you can provide a video or screenshots of the problem, and the related code, you'll get much more help. We don't really have anything to go off of with just a sentence of description.

spiral saffron
#

as you can see the pixels are stretched and shrinked

rain zephyr
#

So this kinda stuff can happen when you're messing with cameras and have decimals as your camera position and scale.

The easiest fix I know for this is to just resize the application_surface to a larger size.

var _surfW = window_get_width()
var _surfH = window_get_height()
surface_resize(application_surface,_surfW,_surfH)

This will make the game draw more detail and there should be fewer rounding artifacts. However the game will no longer be in your original pixel resolution, it'll be in drawn in a higher resolution. So this solution isn't perfect.