This is a Smooth-Ish Walking Mechanic. The reason that you cant move for a minute after touching the edge is; think of it as going off the map, you are basically still walking or slowing down after touching the wall, so you will not be able to go back until your x/y position is inside of the screen
this was made before the featured one got featured, so dont say i copied