mob
player
icon = 'player.dmi'
Login()
..()
winset(src, "default", "is-maximized = true")
client.adjust_tiles()
world << "[src.name] logged in!"
client
perspective = EDGE_PERSPECTIVE
proc
adjust_tiles()
var
size1 = winget(src, "map1", "size")
width = text2num(size1)
height = text2num(copytext(size1, findtext(size1, "x") + 1))
xxx = round(width/world.icon_size)
yyy = round(height/world.icon_size)
view = "[xxx]x[yyy]"
Problem description: I use the above code in an effort to 1) make the window of the player full (I use a custom window) 2) After that, adjust the tiles horizontally and vertically so that the maximum number of tiles are placed on screen (with adjust_tiles proc of client). This causes the screen to flicker though at the edges of the screen
https://gyazo.com/e2aa776836cc96e0820f9897e7c53015
If I move the character near the middle, it stop flickering. It also stop flickering completely even in the edges if I remove the edge_perspective from the client but I need that. What could be wrong? Thx
Well, there's a major problem here: you're not properly grabbing the width of the map.