It's pretty self explanatory, comment if you have questions. https://scratch.mit.edu/projects/117556593/ , for the game is designed this for. Tip: Try playing a platformer with this. (I haven't yet)