Feel free to remix this and customize it; it is easily customizable, and I have left notes to help you understand the code. Some of this I have used in some of my games (ex. Kirby, Mario ect.)
You can delete the Items sprite, unless you want Items, and you can add as many costumes as you want, just make sure the costumes are named as numbers and in the number order you want them, or it might turn out weird. Wall collision is not great yet, so look forward to when I actually edit this project to finish wall collision.