[MOBILE!] Platformer Tutorial + Remixable Engine!

Instructions: Be sure to see the remixes!\nThis is a platformer with a tutorial on how to make a platformer. See inside to see the construction and the main building blocks I use.\nThis is a remixable engine! Remix with your own platformer! Change the spikes, the ground, add levels, portals, coins, lava, and more!\nThis engine has: \nSpikes\nWall Jump\nMobile Controls\nWall Detection\nSlope Detection\nAnd More!

@Stage\n\n@Player\n\nwhen flag clicked\nswitch costume to (center v)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <<not <key (up arrow v) pressed?>> and <<not <key (right arrow v) pressed?>> and <not >>> then\n        switch costume to (center v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (over right v)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (over left v)\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nset size to (100) %\nReset player variables\nreset\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v v] by (.9)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v v] by (-.9)\n    end\n    set [x v v] to ((X v) * (0.9))\n    change x by (X v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (moving platfom v)?>> then\n                            change x by ((X v) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n                                if <(X v) > [0]> then\n                                    set [x v v] to [-5]\n                                else\n                                    set [x v v] to [5]\n                                end\n                                set [y v v] to [15]\n                            else\n                                set [x v v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v v] by (-1)\n    change y by (Y v)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        change y by ((Y v) * (-1))\n        set [y v v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (moving platfom v)?>> then\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>>> then\n            set [y v v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching (spikes v)?> then\n        reset\n    end\n    if <touching (killer wheel v)?> then\n        reset\n    end\n    if <touching (jump pad v)?> then\n        set [y v v] to [25]\n    end\nend\n\ndefine Reset player variables\nset [x v v] to [0]\nset [y v v] to [0]\n\ndefine reset\nclear graphic effects\nset size to (100) %\nshow\ngo to x: (-200) y: (0)\npoint in direction (90)\nReset player variables\n\nwhen flag clicked\nswitch costume to (center v)\nforever\n    set [direction v] to (direction)\nend\n\nwhen flag clicked\nforever\n    if <(x position) = [240]> then\n        broadcast (NEXT LEVEL v)\n        change [level v] by (1)\n    end\nend\n\nwhen I receive [next level v]\nreset\nReset player variables\n\nwhen [timer v] > (0.01)\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(y position) = [-179]> then\n        switch costume to (die v)\n        reset\n    end\nend\n\nwhen flag clicked\n\nwhen [r v] key pressed\nswitch costume to (center v)\ngo to x: (-200) y: (0)\n\nwhen [s v] key pressed\nbroadcast (NEXT LEVEL v)\nchange [level v] by (1)\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nshow\nwait (2) seconds\nhide\n\n@Jump Pad\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Killer Wheel\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    turn left (5) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Moving Platfom\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    glide (1) secs to x: (53) y: (6)\n    wait (1) seconds\n    glide (1) secs to x: (-41) y: (6)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        show\n    else\n        hide\n    end\nend\n\n