Shadow - A Platformer (Mobile Friendly! v4.9) #games

Instructions: Shadow 2 Coming Soon\n#82 On Trending!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It Is Finally Trending!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank You So Much Scratch Team!\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nI Spent Days On This!!!\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nThank You So Much For Playing :D Please Love, Favourite, Remix, Follow And Of Course, Enjoy! More @Teensy564\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Shadow - A Platformer (Mobile Friendly!)\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nThank Yous:\nThanks To Paragon X9 And @icmy123 For Music.\nThanks To @DarkStar177 For The Saw And The Portal Sprite  And The Idea Of The Player Sprite\nThanks @FUNUT For The Button Tutorial.\nThanks To cooltext.com and flamingtext.com for text\nThanks To @Teensy564 For Everything Else.\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nDescription:\nFight Your Way Through 15 Levels Avoiding Lava, Saws And Spikes! Use Trampolines, Wall Jump And Much, Much, More!\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nPro Tips:\n1. Read The Text In The Levels\n2. Take Your Time\n3. Follow @Teensy564\n4. Enjoy The Game\n5. Read The Description\n6. Don't Eat Cheese\n7. Slap A Pig\n8. Love This\n9. Favourite This\n10. Don't Die\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\nControls:\nArrow Keys To Move\nMobile Works!\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 

@Stage\n\nwhen flag clicked\nswitch backdrop to (menu v)\n\nwhen I receive [play game v]\nswitch backdrop to (in game v)\n\nwhen flag clicked\nset [level v] to [1]\nwait until <(LEVEL) = [16]>\nswitch backdrop to (end v)\n\nwhen flag clicked\nforever\n    stop all sounds\n    start sound [ParagonX9 - Chaoz Fantasy v]\n    wait until <(backdrop [number v]) = [2]>\n    repeat until <(backdrop [number v]) = [1]>\n        stop all sounds\n        start sound [City Lights v]\n        wait (134) seconds\n    end\n    stop all sounds\n    start sound [City Lights v]\n    wait (80) seconds\nend\n\nwhen I receive [open menu v]\nswitch backdrop to (menu v)\n\nwhen I receive [continue game v]\nswitch backdrop to (in game v)\n\n@Continue\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nreset timer\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((95) - (size)) / (3))\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            Click\n        end\n    else\n        point in direction (90)\n        change size by (((75) - (size)) / (3))\n        set [brightness v] effect to (-10)\n    end\nend\n\ndefine Click\nstart sound [Hand Clap v]\nchange size by (-2.5)\nwait (0.1) seconds\nchange size by (5)\nwait (0.1) seconds\nchange size by (-2.5)\nwait (0.5) seconds\nbroadcast (Continue Game v)\n\nwhen I receive [continue game v]\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [open menu v]\nshow\n\n@Play\n\nwhen flag clicked\ngo to x: (60) y: (-100)\nswitch costume to (play v)\nshow\nreset timer\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((95) - (size)) / (3))\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            Click\n        end\n    else\n        point in direction (90)\n        change size by (((75) - (size)) / (3))\n        set [brightness v] effect to (-10)\n    end\nend\n\ndefine Click\nstart sound [Hand Clap v]\nchange size by (-2.5)\nwait (0.1) seconds\nchange size by (5)\nwait (0.1) seconds\nchange size by (-2.5)\nwait (0.5) seconds\nbroadcast (Play Game v)\n\nwhen I receive [play game v]\nswitch costume to (new v)\nhide\n\nwhen I receive [continue game v]\nswitch costume to (new v)\nhide\n\nwhen I receive [open menu v]\ngo to x: (60) y: (-100)\nswitch costume to (new v)\nshow\n\n@Logo\n\nwhen flag clicked\nshow\ngo to x: (0) y: (125)\nreset timer\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (3))\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            start sound [Cymbal2 v]\n            change size by (-2.5)\n            wait (0.1) seconds\n            change size by (5)\n            wait (0.1) seconds\n            change size by (-2.5)\n        end\n    else\n        point in direction (90)\n        change size by (((100) - (size)) / (3))\n        set [brightness v] effect to (-10)\n    end\nend\n\nwhen I receive [continue game v]\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen I receive [open menu v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Zoom\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nforever\n    if <(LEVEL) = [14]> then\n        show\n        switch costume to (costume1 v)\n    else\n        if <(LEVEL) = [15]> then\n            show\n            switch costume to (costume2 v)\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [continue game v]\nforever\n    if <(LEVEL) = [14]> then\n        show\n        switch costume to (costume1 v)\n    else\n        if <(LEVEL) = [15]> then\n            show\n            switch costume to (costume2 v)\n        else\n            hide\n        end\n    end\nend\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [play game v]\nset [level v] to [1]\nswitch costume to (costume1 v)\nrepeat (10)\n    go to x: (0) y: (0)\n    set size to (90) %\n    go to [front v] layer\n    show\nend\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [continue game v]\nrepeat (10)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\nend\nforever\n    switch costume to (LEVEL)\nend\n\n@Trampoline\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [play game v]\nforever\n    if <touching (player v)?> then\n        start sound [Drum Boing v]\n        wait until <not <touching (player v)?>>\n        repeat (5)\n            wait (0.001) seconds\n            next costume\n        end\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (-150) y: (-110)\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (-150) y: (-115)\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [continue game v]\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [4]> then\n        show\n        go to x: (-150) y: (-110)\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (-150) y: (-115)\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    if <touching (player v)?> then\n        start sound [Drum Boing v]\n        wait until <not <touching (player v)?>>\n        repeat (5)\n            wait (0.001) seconds\n            next costume\n        end\n    end\nend\n\n@Trampoline2\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [4]> then\n        hide\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (20) y: (-115)\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <touching (player v)?> then\n        start sound [Drum Boing v]\n        wait until <not <touching (player v)?>>\n        repeat (5)\n            wait (0.001) seconds\n            next costume\n        end\n    end\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [continue game v]\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [4]> then\n        hide\n    end\n    if <(LEVEL) = [5]> then\n        show\n        go to x: (20) y: (-115)\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    if <touching (player v)?> then\n        start sound [Drum Boing v]\n        wait until <not <touching (player v)?>>\n        repeat (5)\n            wait (0.001) seconds\n            next costume\n        end\n    end\nend\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nshow\nforever\n    wait (0.001) seconds\n    go to [front v] layer\n    switch costume to (LEVEL)\nend\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [continue game v]\nshow\nforever\n    wait (0.001) seconds\n    go to [front v] layer\n    switch costume to (LEVEL)\nend\n\n@portal\n\nwhen I receive [open menu v]\nstop [other scripts in sprite v]\nhide\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nshow\nforever\n    turn left (3) degrees\n    go to [front v] layer\nend\n\nwhen I start as a clone\nrepeat (10)\n    clear graphic effects\nend\nshow\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (200) y: (130)\n    end\n    if <(LEVEL) = [3]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [4]> then\n        go to x: (200) y: (20)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [6]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [7]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [8]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [9]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [11]> then\n        go to x: (200) y: (-20)\n    end\n    if <(LEVEL) = [12]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [16]> then\n        hide\n    end\nend\n\nwhen I receive [play game v]\nrepeat (10)\n    clear graphic effects\nend\nforever\n    show\n    if <(LEVEL) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (200) y: (130)\n    end\n    if <(LEVEL) = [3]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [4]> then\n        go to x: (200) y: (20)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [6]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [7]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [8]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [9]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [11]> then\n        go to x: (200) y: (-20)\n    end\n    if <(LEVEL) = [12]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [16]> then\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen I receive [play game v]\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nshow\nforever\n    go to [front v] layer\n    turn right (3) degrees\nend\n\nwhen I receive [continue game v]\nrepeat (10)\n    clear graphic effects\nend\nforever\n    show\n    if <(LEVEL) = [1]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (200) y: (130)\n    end\n    if <(LEVEL) = [3]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [4]> then\n        go to x: (200) y: (20)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [6]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [7]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [8]> then\n        go to x: (200) y: (-75)\n    end\n    if <(LEVEL) = [9]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (200) y: (150)\n    end\n    if <(LEVEL) = [11]> then\n        go to x: (200) y: (-20)\n    end\n    if <(LEVEL) = [12]> then\n        go to x: (200) y: (0)\n    end\n    if <(LEVEL) = [16]> then\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen I receive [continue game v]\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nshow\nforever\n    go to [front v] layer\n    turn right (3) degrees\nend\n\n@KillerWheel\n\nwhen I receive [open menu v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nforever\n    turn left (6) degrees\nend\n\nwhen I receive [play game v]\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (100) y: (-80)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (-110) y: (-120)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (110) y: (-120)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (0) y: (0)\n    end\n    if <(LEVEL) = [15]> then\n        go to x: (50) y: (-120)\n    end\nend\n\nwhen I receive [play game v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [continue game v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [continue game v]\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (100) y: (-80)\n    end\n    if <(LEVEL) = [2]> then\n        go to x: (-110) y: (-100)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (110) y: (-120)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (10) y: (5)\n    end\n    if <(LEVEL) = [15]> then\n        go to x: (75) y: (-120)\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    turn left (6) degrees\nend\n\n@Grunge\n\nwhen I receive [open menu v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nset [ghost v] effect to (95)\n\nwhen I receive [continue game v]\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nset [ghost v] effect to (95)\n\n@Player\n\nwhen I start as a clone\nshow\nrepeat (15)\n    switch costume to (guycloneback v)\n    change size by (-3)\n    change [ghost v] effect by (7)\nend\ndelete this clone\n\nwhen I receive [open menu v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [restart v]\nSetup\n\nwhen flag clicked\nSetup\n\nwhen I receive [previous level v]\nSetup\n\nwhen I receive [next level v]\nSetup\n\nwhen flag clicked\nhide\n\ndefine Setup\nswitch costume to (guy v)\nset [color v] effect to (0)\nset size to (50) %\nset [x v] to [0]\nset [yv v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (-50)\n\nwhen I receive [play game v]\nforever\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <touching (zoom v)?> then\n        change [x v] by (5)\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <<touching (trampoline v)?> or <touching (trampoline2 v)?>> then\n        set [y v] to [15]\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    if <<touching (trampoline v)?> or <touching (trampoline2 v)?>> then\n        set [y v] to [15]\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    if <touching (zoom v)?> then\n        change [x v] by (5)\n    end\nend\n\nwhen I receive [continue game v]\nforever\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n    end\nend\n\nwhen I receive [continue game v]\nstart sound [Coin v]\nshow\ngo to x: (-216) y: (-70)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (0.8)\n        else\n            switch costume to (guy v)\n            change [x v] by (0.8)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (-0.9)\n        else\n            switch costume to (guy v)\n            change [x v] by (-0.9)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [4]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\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 (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (level v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n        if <[4] < (costume [number v])> then\n            set [y v] to [10]\n        else\n            set [y v] to [10]\n            switch costume to (hello4 v)\n        end\n    end\n    change y by (0.5)\n    if <<touching (bad v)?> or <<touching (killerwhell2 v)?> or <<[-175] > (y position)> or <touching (killerwheel v)?>>>> then\n        change [deaths v] by (1)\n        start sound [Punch  Gaming Sound Effect HD v]\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0.01) seconds\n        end\n        set [ghost v] effect to (0)\n        Setup\n    end\nend\n\nwhen I receive [play game v]\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [continue game v]\nforever\n    wait (0.005) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [play game v]\nstart sound [Coin v]\nshow\ngo to x: (-216) y: (-70)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (0.8)\n        else\n            switch costume to (guy v)\n            change [x v] by (0.8)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        if <[4] < (costume [number v])> then\n            change [x v] by (-0.9)\n        else\n            switch costume to (guy v)\n            change [x v] by (-0.9)\n        end\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [4]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    change x by ((x) * (-1))\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 (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching (level v)?> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n        if <[4] < (costume [number v])> then\n            set [y v] to [10]\n        else\n            set [y v] to [10]\n            switch costume to (hello4 v)\n        end\n    end\n    change y by (0.5)\n    if <<touching (bad v)?> or <<touching (killerwhell2 v)?> or <<[-175] > (y position)> or <touching (killerwheel v)?>>>> then\n        change [deaths v] by (1)\n        start sound [Punch  Gaming Sound Effect HD v]\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0.01) seconds\n        end\n        set [ghost v] effect to (0)\n        Setup\n    end\nend\n\n@Bad\n\nwhen I receive [open menu v]\nhide\n\nwhen I receive [previous level v]\nswitch costume to ((costume [number v]) - (1))\n\nwhen backdrop switches to [backdrop7 v]\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nshow\nforever\n    switch costume to (LEVEL)\n    set size to (90) %\nend\n\nwhen I receive [continue game v]\nshow\nforever\n    switch costume to (LEVEL)\n    set size to (90) %\nend\n\n@KillerWhell2\n\nwhen I receive [open menu v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nforever\n    turn right (6) degrees\nend\n\nwhen I receive [play game v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [play game v]\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (-100) y: (-130)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (-65) y: (-120)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (-150) y: (150)\n    end\nend\n\nwhen I receive [continue game v]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [continue game v]\nforever\n    turn right (6) degrees\nend\n\nwhen I receive [continue game v]\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (-100) y: (-130)\n    end\n    if <(LEVEL) = [5]> then\n        go to x: (-65) y: (-120)\n    end\n    if <(LEVEL) = [10]> then\n        go to x: (-150) y: (150)\n    end\nend\n\n@Menu\n\nwhen flag clicked\nhide\ngo to x: (-172) y: (155)\nreset timer\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        change size by (((45) - (size)) / (3))\n        set [brightness v] effect to (20)\n        if <mouse down?> then\n            Click\n        end\n    else\n        point in direction (90)\n        change size by (((35) - (size)) / (3))\n        set [brightness v] effect to (-10)\n    end\n    go to [front v] layer\nend\n\ndefine Click\nstart sound [Hand Clap v]\nchange size by (-2.5)\nwait (0.1) seconds\nchange size by (5)\nwait (0.1) seconds\nchange size by (-2.5)\nwait (0.5) seconds\nbroadcast (Open Menu v)\n\nwhen I receive [open menu v]\nstart sound [Coin v]\nhide\n\nwhen I receive [continue game v]\nshow\n\nwhen I receive [play game v]\nshow\n\n@Music\n\nwhen flag clicked\nshow\n\nwhen I receive [continue game v]\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen flag clicked\nset [brightness v] effect to (0)\nforever\n    repeat (10)\n        change [brightness v] effect by (10)\n    end\n    repeat (10)\n        change [brightness v] effect by (-10)\n    end\nend\n\n