Look inside for the code and the one with the oldX and oldY is the one you want to copy.
If you do learn how to not go through walls and make a platformer plz heart and star and.... plz give credit to me that I helped you make it. Bye! 12/7/2020 released! just a tutorial on how to not go through walls just use the arrow keys and you can't go through the wall. P.s don't worry about the oldX and oldY at the top left!