Here's a polished fixed bug version of @new_dude124578's movement code. Please improve it!
Everyone in the Runetale team.