I was using the code every tick and zone is overlapping hero: scroll to: lerp(scrollx, (clamp(hero.X,zone.X+(800),zone.x+zone.Width-(800))),0.1*60*dt) for x and for y I am using lerp(scrolly,(clamp(hero.Y,zone.Y+(450),zone.Y+zone.Height-(450))),0.1*60*dt). My window and layout size is 1600, 900. And have a specific zone for every room. My character is called Hero. If you need more information please ask. I dont understand what is wrong.