• 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!

Windows tiles with strange lines in views

B

Beppo Gringo

Guest
Hi,
when i use tiles in views and run the game, there are strange lines and some tiles have strange borders.
TilesViewsLines.png
When i don't use views, they are gone.
What can i do?

thanks
 

jo-thijs

Member
Hi and welcome to the GMC!

I've had this issue once too, but I can't directly remember what the solution was.
Try changing the dimensions of the application surface to the dimensions of the view when entering the room:
Code:
surface_resize(application_surface, view_wview, view_hview);
Did that do the trick.
 

jo-thijs

Member
I don't think moving the view in fractional values causes that.
Rather, bad fractional scale between the application surface and the view, together with interpolation between pixels causes this.

By the way, in the screenshot, judging by the position of the player, I would guess the view hasn't moved horizontally yet at all.
 
B

Beppo Gringo

Guest
Oh yes, surface_resize worked well, thank you very much. Now i can go on without anger :)
 
Top