Parkour Master | | A Mobile Platformer

Instructions: WASD or arrow keys to move\nCan play on mobile\nTouch the right wall to go to next level\nO to skip level\n6 Levels\nM mute\nN unmute

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Parkour-er\n\nwhen I receive [next level v]\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-200) y: (0)\nset [ghost v] effect to (0)\n\nwhen flag clicked\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set size to (size) %\n    set [size v] to [100]\n    show\n    set rotation style [all around v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (a v) pressed?> or <key (left arrow v) pressed?>>> then\n        switch costume to (costume2 v)\n        change [xv v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (d v) pressed?> or <key (right arrow v) pressed?>>> then\n        switch costume to (costume8 v)\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change y by (1)\n                        if <touching (levels v)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (levels v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            set [yv v] to [17]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    set [yv v] to ((Yv) * (0.99))\n    change y by (Yv)\n    if <touching (levels v)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (0)\n    end\n    if touching\nend\n\nwhen flag clicked\n\ndefine if touching\nif <touching (spikes v)?> then\n    set [ghost v] effect to (100)\n    start sound [Crunch v]\n    set [yv v] to [0]\n    set [xv v] to [0]\n    set size to (100) %\n    set [ghost v] effect to (0)\n    go to x: (-200) y: (0)\n    point in direction (90)\nend\nif <touching (1 v)?> then\n    set [yv v] to [20]\nend\nif <touching (speed v)?> then\n    set [xv v] to [21]\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo to x: (-200) y: (0)\nforever\n    if <touching (levels v)?> then\n        broadcast (Bounce v)\n        if <(Yv) > [0]> then\n            set [yv v] to [-20]\n        else\n            set [yv v] to [20]\n        end\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nforever\n    if <touching (danger v)?> then\n        broadcast (Bounce v)\n        broadcast (Return v)\n    end\nend\n\nwhen I receive [return v]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n    if <touching (bounce v)?> then\n        change [yv v] by (10)\n    end\nend\n\nwhen [o v] key pressed\nbroadcast (Next Level v)\n\nwhen flag clicked\nforever\n    play sound [Avicii - Levels v] until done\nend\n\nwhen [m v] key pressed\nset volume to (0) %\n\nwhen [n v] key pressed\nset volume to (100) %\n\n@Levels\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\nnext backdrop\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@SKIP\n\nwhen this sprite clicked\ngo to [front v] layer\nbroadcast (Next Level v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nchange [ghost v] effect by (100)\nforever\n    go to [front v] layer\nend\n\n@Sprite1\n\n@Sprite2\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n