Just some basic code to help with movement within a game.
I have seen this done so many times, I can't name every creator, so I will simply thank every single scratch user out there.