GO UP BEFORE DOING ANYTHING TO AVOID GETTING STUCK Arrow keys to move. This is a simple tile system that I will soon make into an RPG. Let me explain what's happening here: Rather than the character moving freely, the player character moves to the next tile each time. A variable recognizes which tile the character is on. Every time the player wants to move, the game detects what kind of tile the player is about to go to. If said tile is an obstacle, the player stays put, rather than the sprite having to learn for itself what tile is in front by moving towards the tile and sometimes getting stuck.
GIVE CREDIT IF YOU REMIX. All coding by me. The system is inspired by old games where the player always had to be on one tile. Also inspired by Hobson-TV's One-Man World.