Extreme Platformer

Instructions: Welcome to Extreme platformer.\nFIRST STEP: FIND A LOT OF EXTRA TIME\nMove: Arrow Keys\nAvoid Red\nGo through the almost endless levels\nshow your own skill!

@Stage\n\nwhen flag clicked\nhide variable [☁ world record \(most deaths\) v]\nset [deaths v] to [0]\nhide variable [☁ world record \(least deaths\) v]\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Happy v] until done\nend\n\nwhen I receive [water v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [next level v]\nif <(Level) = [76]> then\n    switch backdrop to (backdrop3 v)\nend\n\nwhen I receive [next level v]\nif <(Level) = [101]> then\n    if <(☁ World Record \(Most Deaths\)) < (Deaths)> then\n        set [☁ world record \(most deaths\) v] to (Deaths)\n    end\nend\n\nbroadcast (1 v)\n\nwhen I receive [next level v]\nif <(Level) = [101]> then\n    if <(Deaths) < (☁ World Record \(Least Deaths\))> then\n        set [☁ world record \(least deaths\) v] to (Deaths)\n    end\nend\n\nwhen I receive [next level v]\nif <(Level) = [101]> then\n    switch backdrop to (backdrop3 v)\n    show variable [deaths v]\n    show variable [☁ world record \(most deaths\) v]\n    show variable [☁ world record \(least deaths\) v]\nend\n\nset [☁ world record \(least deaths\) v] to []\nset [☁ world record \(most deaths\) v] to []\n\n@Hero\n\nwhen I receive [next level v]\nif <not <[14] < (Level)>> then\n    set x to (-230)\nend\n\nwhen I receive [previous level v]\nset x to (230)\n\nwhen I receive [1 v]\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Hurt v)\n        change [deaths v] by (1)\n        play sound [pop v] until done\n        wait (1) seconds\n    end\nend\n\nwhen I receive [1 v]\nshow\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        broadcast (Next Level v)\n        change [left v] by (1)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [next level v]\ngo to (go to v)\n\nwhen I receive [1 v]\nshow\ngo to (go to v)\n\nwhen I receive [hurt v]\ngo to (go to v)\n\nwhen flag clicked\nforever\n    set size to (400) %\n    if <[-180] > (y position)> then\n        broadcast (Hurt v)\n        change [deaths v] by (1)\n        play sound [pop v] until done\n    end\nend\n\nwhen I receive [1 v]\nforever\n    set rotation style [left-right v]\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        Walk (90) (4)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        Walk (-90) (-4)\n    end\nend\n\nwhen I receive [1 v]\nset [fall v] to [0]\nforever\n    change [fall v] by (-1)\n    change y by (Fall)\n    Detection <(Fall) > [0]>\nend\n\nrepeat until \nend\n\nwait (1) seconds\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <<touching color (#999900)?> or <touching color (#000000)?>>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\nwait until <(Touching Ground) = [1]>\nset [w or up v] to [0]\n\nwhen I receive [1 v]\nforever\n    if <(W or UP) = [1]> then\n        change y by (2)\n        wait until <(W or UP) = [0]>\n    end\nend\n\nwhen I receive [1 v]\nset [w or up v] to [0]\nset [level v] to [1]\nforever\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <<(jump key) = [0]> and <(Falling?) < [3]>> then\n            set [fall v] to [15]\n            set [falling? v] to [6]\n            set [touching ground v] to [0]\n            set [jump key v] to [1]\n        end\n    else\n        set [jump key v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#437eff)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [fall v] to [5]\n        else\n            set [fall v] to [-0.5]\n        end\n    end\nend\n\nbroadcast (Next Level v)\n\ndefine Detection <>\nchange [falling? v] by (1)\nrepeat until <not <<touching color (#999900)?> or <touching color (#000000)?>>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [fall v] to [0]\n    set [touching ground v] to [1]\nend\n\nwhen I receive [hurt v]\nset [fall v] to [0]\n\nwhen flag clicked\nhide\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nbroadcast (Next Level v)\n\nwhen flag clicked\nwait (1) seconds\nwait until <key (space v) pressed?>\nbroadcast (1 v)\n\n@Go to\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to x: (-134) y: (-91)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        go to x: (-209) y: (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        go to x: (-230) y: (-58)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [2]> then\n        go to x: (-207) y: (-91)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        go to x: (-209) y: (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [6]> then\n        go to x: (-188) y: (-52)\n    end\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        go to x: (-215) y: (-47)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        go to x: (-200) y: (-83)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        go to x: (-200) y: (-83)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        go to x: (-200) y: (-83)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [11]> then\n        go to x: (-200) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        go to x: (-205) y: (-64)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        go to x: (-206) y: (-40)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        go to x: (-206) y: (-40)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        go to x: (-206) y: (-40)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        go to x: (-208) y: (-66)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        go to x: (-208) y: (-66)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [18]> then\n        go to x: (-181) y: (-51)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        go to x: (-205) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [20]> then\n        go to x: (-205) y: (-64)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        go to x: (-209) y: (-55)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        go to x: (-209) y: (-55)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        go to x: (-209) y: (-76)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        go to x: (-158) y: (-71)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        go to x: (-167) y: (-45)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [26]> then\n        go to x: (-199) y: (-70)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        go to x: (-199) y: (-70)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [28]> then\n        go to x: (-199) y: (-70)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [29]> then\n        go to x: (-232) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [30]> then\n        go to x: (-232) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [31]> then\n        go to x: (-155) y: (-49)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [32]> then\n        go to x: (-155) y: (-49)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [33]> then\n        go to x: (-198) y: (-76)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [34]> then\n        go to x: (-187) y: (-36)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [35]> then\n        go to x: (-198) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [36]> then\n        go to x: (-198) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [37]> then\n        go to x: (-198) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [38]> then\n        go to x: (-198) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [39]> then\n        go to x: (-198) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [40]> then\n        go to x: (-192) y: (-108)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [41]> then\n        go to x: (-192) y: (-84)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [42]> then\n        go to x: (-193) y: (146)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [43]> then\n        go to x: (-193) y: (146)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [44]> then\n        go to x: (-193) y: (146)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [45]> then\n        go to x: (-188) y: (-54)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [46]> then\n        go to x: (-188) y: (-54)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [47]> then\n        go to x: (-143) y: (-38)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [48]> then\n        go to x: (-161) y: (132)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [49]> then\n        go to x: (-173) y: (27)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [50]> then\n        go to x: (-141) y: (28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [51]> then\n        go to x: (-190) y: (-29)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [52]> then\n        go to x: (-207) y: (31)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [53]> then\n        go to x: (-208) y: (169)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [54]> then\n        go to x: (-203) y: (-101)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [55]> then\n        go to x: (-209) y: (-85)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [56]> then\n        go to x: (-208) y: (-102)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [57]> then\n        go to x: (-182) y: (131)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [59]> then\n        go to x: (-215) y: (-77)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [58]> then\n        go to x: (-204) y: (141)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [60]> then\n        go to x: (-204) y: (141)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [61]> then\n        go to x: (-210) y: (156)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [62]> then\n        go to x: (-181) y: (159)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [63]> then\n        go to x: (-181) y: (159)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [64]> then\n        go to x: (-181) y: (159)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [65]> then\n        go to x: (-193) y: (-59)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [66]> then\n        go to x: (-193) y: (-59)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [67]> then\n        go to x: (-193) y: (-59)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [68]> then\n        go to x: (-193) y: (-59)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [69]> then\n        go to x: (-188) y: (138)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [70]> then\n        go to x: (-210) y: (40)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [71]> then\n        go to x: (-174) y: (-71)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [72]> then\n        go to x: (-142) y: (-46)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [73]> then\n        go to x: (-168) y: (136)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [74]> then\n        go to x: (-174) y: (19)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [75]> then\n        go to x: (-179) y: (150)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [76]> then\n        go to x: (-212) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [77]> then\n        go to x: (-212) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [78]> then\n        go to x: (-212) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [78]> then\n        go to x: (-212) y: (-109)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [79]> then\n        go to x: (-214) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [80]> then\n        go to x: (-214) y: (-54)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [81]> then\n        go to x: (-217) y: (-39)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [82]> then\n        go to x: (-217) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [83]> then\n        go to x: (-206) y: (-85)\n    end\nend\n\nwhen I receive [next level v]\nif <(Level) = [36]> then\n    broadcast (Water v)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [84]> then\n        go to x: (-213) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [85]> then\n        go to x: (-213) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [86]> then\n        go to x: (-213) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [87]> then\n        go to x: (-213) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [88]> then\n        go to x: (-213) y: (-69)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [89]> then\n        go to x: (-162) y: (-20)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [90]> then\n        go to x: (-191) y: (-33)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [91]> then\n        go to x: (-183) y: (-84)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [92]> then\n        go to x: (-191) y: (-77)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [93]> then\n        go to x: (-191) y: (-77)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [94]> then\n        go to x: (-191) y: (-77)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [95]> then\n        go to x: (-212) y: (-43)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [96]> then\n        go to x: (-212) y: (-43)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [97]> then\n        go to x: (-198) y: (-28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [98]> then\n        go to x: (-198) y: (-28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [99]> then\n        go to x: (-198) y: (-28)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [100]> then\n        go to x: (-229) y: (-43)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [101]> then\n        go to x: (-223) y: (-83)\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset [level v] to [1]\nset [deaths v] to [0]\nhide variable [deaths v]\n\n@Curtain\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [1 v]\nglide (1) secs to x: (230) y: (0)\nhide\n\n@Curtain2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [1 v]\nglide (1) secs to x: (-230) y: (0)\nhide\n\n@Title\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\nclear graphic effects\ngo to x: (0) y: (0)\n\nwhen I receive [1 v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.1) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [101]>\nif <(Level) = [101]> then\n    switch costume to (costume2 v)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n        wait (0.1) seconds\n    end\nend\n\n