:-P arrow keys you are the green one to see a completely automated version, see https://scratch.mit.edu/projects/139063488/
For platformers. Comes with slope detection, wall jumping, and more! See inside New update: follow player now has an offset so he doesn't just go in one direction (May 18 2017) Scripts: [Follow player [Head away from player [Random