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