Use arrow keys to move (up jumps, left and right move). It detects whether or not to move with color - if orange touches black, you won't move left and right (to prevent going through walls). If green touches black, you stop falling. If pink touches black, it stops going up (you hit a ceiling). Yellow is a placeholder. Draw maps by using the background's costumes. Black is a wall. Red kills you. It dosen't react to any other colors but you can add your own.
First off, I would like to thank anyone who has helped me (past or future). This is a physics engine base which can be used in many programs. I encourage you to use and remix this (just give credit if you do). If you have a suggestion, or found a glitch, please let me know in the comments. I am somewhat new to this and would like a little advice.