• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Windows tileset graphic bug (weird lines inbetween tiles)

JoeCruz

Member
i have a feeling its something to do with interpolation, whenever i zoom in and out or move around, causes tiles to have weird lines around them. any solutions?

Many thanks! can provide more info if needed ^^ (took screenshot while moving so its only showing few of those lines, but its all over)

bug_pic.png
 

Ricardo

Member
Yeah, these lines are most likely interpolation. You probably want to disable it considering the art style of your graphics.
Preferences > Windows/macOS > Interpolate colours between pixels.

Alternatively, you can selectively manage interpolation by using gpu_set_texfilter. So you could disable it for your tiles but still apply it to other elements if needed.
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
Those lines are caused by the way the graphics card interpolates the texels from the texture. Increase the texture border size in the tileset editor for the tileset from 2 to 3 or even 4 and see if that helps. To explain why this happens, have a read at this tech blog (it's for GMS1.4 but equally valid for GMS2): https://www.yoyogames.com/blog/3/seamless-tile-scaling-in-gamemaker

PS: This is actually explained a bit in the manual too (see the section on Properties): https://docs2.yoyogames.com/index.html?page=source/_build/2_interface/1_editors/tilesets.html
 

Mike

nobody important
GMC Elder
You have a large amount of scaling there - increase the "output border X" and "output border Y" to get rid of it.

Alternatively, change the size of your application surface to be 1:1 with the size of the graphics, and then scale the app surface up to whatever you need......
 
Top