A Basic Platformer
@Stage\n\n@Player\n\nwhen I receive [start epic platformer v]\nforever\n    wait (0.5) seconds\n    play sound [The Chain Smokers: Don't Let Me Down v] until done\nend\n\nwhen I receive [start epic platformer v]\nshow\nswitch costume to (righty v)\ngo to x: (-235) y: (-50)\nswitch backdrop to (lvl 1 v)\n\nwhen flag clicked\nset [deaths v] to [0]\nhide\n\nwhen I receive [die player v]\ngo to x: (-235) y: (-50)\nchange [deaths v] by (1)\nset [y v] to [0]\n\nwhen flag clicked\nforever\n    change [y v] by (-0.5)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        switch costume to (righty v)\n        change [x v] by (0.5)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        switch costume to (lefty v)\n        change [x v] by (-0.5)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n        change y by (1)\n        if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n            change y by (1)\n            if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n                change y by (1)\n                if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n                    change y by (1)\n                    if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n                        change y by (1)\n                        if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n                            change y by (1)\n                            if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n                                change y by (-5)\n                                change x by ((x) * (-1))\n                                if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <<touching color (#663b00)?> or <touching color (#00cc44)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<touching color (#663b00)?> or <touching color (#00cc44)?>> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        set [y v] to [8]\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        go to x: (-235) y: (-50)\n        change [deaths v] by (1)\n        set [y v] to [0]\n    end\n    if <[215] < (x position)> then\n        switch backdrop to (next backdrop v)\n        go to x: (-235) y: (-50)\n    end\n    if <touching color (#ffff00)?> then\n        set [y v] to [15]\n    end\n    if <touching color (#003fff)?> then\n        change x by (150)\n        set [y v] to [0]\n    end\n    if <(y position) < [-175]> then\n        go to x: (-235) y: (-50)\n        change [deaths v] by (1)\n        set [y v] to [0]\n    end\n    if <touching color (#00ff55)?> then\n        switch backdrop to (next backdrop v)\n    end\n    if <touching (cookie v)?> then\n        broadcast (COOKIE GO BYE v)\n    end\n    if <touching color (#009999)?> then\n        change y by ([abs v] of ((x) + (1)) )\n    end\n    if <touching color (#009999)?> then\n        set [y v] to [2.24]\n    end\n    if <key (down arrow v) pressed?> then\n        set [y v] to [-5.14]\n    end\nend\n\n@Death Sprite\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-10)\n\nwhen backdrop switches to [you win! v]\nshow\nif <(Deaths) = [0]> then\n    switch costume to (death 0 v)\nend\nif <(Deaths) = [1]> then\n    switch costume to (death 1 v)\nend\nif <(Deaths) = [2]> then\n    switch costume to (death 2 v)\nend\nif <(Deaths) = [3]> then\n    switch costume to (death 3 v)\nend\nif <(Deaths) = [4]> then\n    switch costume to (death 4 v)\nend\nif <(Deaths) = [5]> then\n    switch costume to (death 5 v)\nend\nif <(Deaths) = [6]> then\n    switch costume to (death 6 v)\nend\nif <(Deaths) = [7]> then\n    switch costume to (death 7 v)\nend\nif <(Deaths) = [8]> then\n    switch costume to (death 8 v)\nend\nif <(Deaths) = [9]> then\n    switch costume to (death 9 v)\nend\nif <(Deaths) = [10]> then\n    switch costume to (death 10 v)\nend\nif <(Deaths) = [11]> then\n    switch costume to (death 11 v)\nend\nif <(Deaths) = [12]> then\n    switch costume to (death 12 v)\nend\nif <(Deaths) = [13]> then\n    switch costume to (death 13 v)\nend\nif <(Deaths) = [14]> then\n    switch costume to (death 14 v)\nend\nif <(Deaths) = [15]> then\n    switch costume to (death 15 v)\nend\nif <(Deaths) = [16]> then\n    switch costume to (death 16 v)\nend\nif <(Deaths) = [17]> then\n    switch costume to (death 17 v)\nend\nif <(Deaths) = [18]> then\n    switch costume to (death 18 v)\nend\nif <(Deaths) = [19]> then\n    switch costume to (death 19 v)\nend\nif <(Deaths) = [20]> then\n    switch costume to (death 20 v)\nend\nif <(Deaths) = [21]> then\n    switch costume to (death 21 v)\nend\nif <(Deaths) = [22]> then\n    switch costume to (death 22 v)\nend\nif <(Deaths) = [23]> then\n    switch costume to (death 23 v)\nend\nif <(Deaths) = [24]> then\n    switch costume to (death 24 v)\nend\nif <(Deaths) = [25]> then\n    switch costume to (death 25 v)\nend\nif <(Deaths) = [26]> then\n    switch costume to (death 26 v)\nend\nif <(Deaths) = [27]> then\n    switch costume to (death 27 v)\nend\nif <(Deaths) = [28]> then\n    switch costume to (death 28 v)\nend\nif <(Deaths) = [29]> then\n    switch costume to (death 29 v)\nend\nif <(Deaths) = [30]> then\n    switch costume to (death 30 v)\nend\nif <(Deaths) > [30]> then\n    switch costume to (death 31 v)\nend\n\n@jetpack\n\nwhen I receive [drop v]\nwait (1) seconds\ngo to [front v] layer\n\nwhen I receive [drop v]\nwait (1) seconds\nbroadcast (BASS v)\nwait (1) seconds\nbroadcast (BASS v)\nwait (1.7) seconds\nbroadcast (BASS v)\nwait (1) seconds\nbroadcast (BASS v)\nwait (1) seconds\nbroadcast (BASS v)\nwait (1.7) seconds\nbroadcast (BASS v)\nwait (0.5) seconds\nbroadcast (BASS v)\nwait (1) seconds\nbroadcast (BASS v)\n\nwhen I receive [bericht1 v]\nswitch costume to (jetpack-2 v)\nwait (3) seconds\nswitch costume to (jetpack-4 v)\nrepeat (22)\n    change x by (2)\n    wait (0.05) seconds\n    change x by (-2)\n    wait (0.05) seconds\nend\nwait (1.3) seconds\nswitch costume to (jetpack-5 v)\nrepeat (18)\n    change x by (3)\n    wait (0.05) seconds\n    change x by (-3)\n    wait (0.05) seconds\nend\nwait (1) seconds\nswitch costume to (jetpack-6 v)\nrepeat (7)\n    change x by (4)\n    wait (0.05) seconds\n    change x by (-4)\n    wait (0.05) seconds\nend\nwait (0.5) seconds\nswitch costume to (jetpack- v)\nrepeat (30)\n    change x by (5)\n    wait (0.05) seconds\n    change x by (-5)\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nshow\nswitch backdrop to (backdrop1 v)\ngo [backward v] (2) layers\nswitch costume to (jetpack-3 v)\ngo to x: (5) y: (5)\nplay sound [Sci Fi FX - The Most Incredible SCI Fi FX Sound Effects Library.mp3 v] until done\nbroadcast (DROP v)\nstart sound [TOP 15 INTRO SONGS  DROPS - 12 \(Songs in desc.\).mp2 v]\n\nwhen I receive [start epic platformer v]\nstop all sounds\nhide\n\nwhen I receive [bass v]\nchange size by (20)\nrepeat (5)\n    change size by (-4)\nend\n\nwhen I receive [drop v]\nwait (1) seconds\nrepeat (100)\n    switch costume to (lit2 v)\n    wait (0.01) seconds\n    switch costume to (lit v)\n    wait (0.01) seconds\n    switch costume to (max v)\n    wait (0.01) seconds\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    wait (0.1) seconds\nend\nbroadcast (Start Epic Platformer v)\nhide\n\n@Launcher 2\n\nwhen flag clicked\nswitch costume to (jetpack-3 v)\ngo to x: (67) y: (-4)\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nwait (1) seconds\nglide (1) secs to x: (252) y: (-4)\n\nwhen I receive [bericht1 v]\nswitch costume to (jetpack-2 v)\n\nwhen I receive [drop v]\nwait (1) seconds\nglide (0.2) secs to x: (300) y: (-4)\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\nclear graphic effects\n\nwhen I receive [start dumb tutorial v]\nhide\n\n@Launcher 1\n\nwhen flag clicked\nswitch costume to (jetpack-3 v)\ngo to x: (-71) y: (-4)\nshow\ngo to [front v] layer\nwait (1) seconds\nglide (1) secs to x: (-278) y: (-4)\nbroadcast (bericht1 v)\n\nwhen I receive [bericht1 v]\nswitch costume to (jetpack-2 v)\n\nwhen I receive [drop v]\nwait (1) seconds\nglide (0.2) secs to x: (-300) y: (-4)\nrepeat (10)\n    change [ghost v] effect by (25)\nend\nhide\nclear graphic effects\n\nwhen I receive [start dumb tutorial v]\nhide\n\nwhen I receive [start dumb tutorial v]\nhide\n\nwhen I receive [start dumb tutorial v]\nhide\n\n@Cookie\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen backdrop switches to [you win! v]\nswitch costume to (cookie v)\nshow\n\nwhen backdrop switches to [you win! v]\nif <touching (player v)?> then\n    switch costume to (yum! v)\nend\n\nwhen I receive [cookie go bye v]\nswitch costume to (yum! v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@Shooter\n\nwhen I start as a clone\nshow\nswitch costume to (blob thingy v)\npoint towards (player v)\nforever\n    move (6) steps\n    if <<touching color (#00cc44)?> or <touching (_edge_ v)?>> then\n        delete this clone\n    end\n    if <touching (player v)?> then\n        broadcast (Death v)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [You Win!]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [You Win!]> then\n        hide\n    end\nend\n\nwhen I receive [green mutating chemical v]\nswitch costume to (green mutating chemical v)\nshow\ngo to x: (170) y: (145)\nforever\n    create clone of (_myself_ v)\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [lvl 13 v]\nshow\ngo to x: (215) y: (150)\nforever\n    create clone of (_myself_ v)\n    wait (0.9) seconds\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 1]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 2]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 3]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 4]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 5]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 6]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 7]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 8]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 9]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 10]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 11]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(backdrop [name v]) = [lvl 12]> then\n        delete this clone\n    end\nend\n\nwhen backdrop switches to [lvl 15 v]\nshow\ngo to x: (215) y: (150)\nforever\n    create clone of (_myself_ v)\n    wait (10) seconds\nend\n\nwhen backdrop switches to [lvl 14 v]\nshow\ngo to x: (215) y: (150)\nforever\n    create clone of (_myself_ v)\n    wait (1.5) seconds\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (thing v)\nhide\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        broadcast (DIE PLAYER v)\n        hide\n    end\nend\n\n