Collision with the map?
Hello, sorry for asking, but I really need help with my code for my undertale remake(microtale). I have basic movement and a titlescreen, but am unsure at how to make the player essentially collide with everything OFF the map. As in, if they are on the map, they are fine, but they cant step off of it. I know there is some weird math or something to make it work, but is that really the best way? I cant really put the code in here, as it wont allow me to put the whole thing in triple backtics, but I can add someone to the project if necessary!