This platformer script can be used on both computer and mobile, and it even has the ability to reverse gravity. The script also has wall-jumping. It detects the ground and some "special things" by color (ground is black, red is death, jump pads are orange, gravity reversers are purple; however, Goal is a separate sprite). When gravity is reversed, the only difference from the normal platformer controls is that you have to press the DOWN arrow key (or S), or tap below the player if on mobile. You can press R to reset the player in the level (though it adds to the death counter). With the gravity variable, 1 = normal and -1 = reversed. The "Player X" and "Player Y" lists control where the player will spawn in each level. I put together a little course to allow you to test out the platformer script.
This platformer script is the same one I used in my Platformer Script Tutorial (https://scratch.mit.edu/projects/290806654/), although it has a few changes; in this version, you don't have to ask the user whether they're on computer or mobile, and I also figured out why wall-jumping wasn't working on mobile and fixed it. I also changed "normal" and "reversed" gravity to 1 and -1 to lessen the chance that going from reversed gravity to normal gravity will be wonky. This platformer script is a combination of @Naked_JellyBean's platformer script and @qucchia's mobile platformer script, with some code I added to allow for reversed gravity.