Shadow Ball Platformer 2
@Stage\n\nwhen flag clicked\nrepeat until <key (j v) pressed?>\n    play sound (pick random (1) to (5)) until done\nend\n\nwhen [g v] key pressed\nforever\n    if <(username) = [Popfiz910]> then\n        switch backdrop to (shadow ball2 v)\n    end\nend\n\nwhen I receive [next! level v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nforever\n    if <(level) = [13]> then\n        broadcast (cutscene v)\n        set [state v] to [Cutscene]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(username) = [Popfiz910]> then\n        if <key (j v) pressed?> then\n            stop all sounds\n            play sound [Tobu - Sweet Story.mp3 v] until done\n            broadcast (music v)\n        end\n    end\nend\n\nwhen I receive [music v]\nrepeat until <key (j v) pressed?>\n    play sound (pick random (1) to (5)) until done\nend\n\n@Ball\n\nwhen flag clicked\nset [level v] to [0]\nset [lives v] to [5]\nset [yvelocity v] to [0]\ngo to x: (-181) y: (-36)\nforever\n    change y by (yvelocity)\n    if <<key (up arrow v) pressed?> and <(yvelocity) < [0]>> then\n        if <touching color (#666666)?> then\n            set [yvelocity v] to [10]\n            change y by (10)\n        end\n    end\n    if <<key (space v) pressed?> and <(yvelocity) < [0]>> then\n        if <touching color (#666666)?> then\n            set [yvelocity v] to [10]\n            change y by (10)\n        end\n    end\n    if <touching color (#666666)?> then\n        if <(yvelocity) < [0]> then\n            set [yvelocity v] to [0]\n        end\n        if <(yvelocity) > [0]> then\n            change y by ((0) - (yvelocity))\n            set [yvelocity v] to [-4]\n        end\n    end\n    repeat until <not <touching color (#666666)?>>\n        change y by (1)\n    end\n    change [yvelocity v] by (-0.5)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-193) y: (-140)\n\nwhen backdrop switches to [game over v]\nhide variable [level v]\nhide variable [lives v]\n\nwhen backdrop switches to [backdrop1 v]\nshow variable [lives v]\nshow variable [level v]\n\nwhen flag clicked\nif <(hardcore) = [1]> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\nwhen flag clicked\nforever\n    if <(username) = [Popfiz910]> then\n        if <key (q v) pressed?> then\n            switch backdrop to (shadow ball2 v)\n        end\n    end\nend\n\nwhen backdrop switches to [shadow ball2 v]\nhide variable [lives v]\nhide variable [level v]\n\nwhen backdrop switches to [start screen2 v]\nhide\n\nwhen backdrop switches to [start screen v]\nshow\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop13 v]\nif <touching (sprite13 v)?> then\n    go to x: (-193) y: (-140)\n    change [lives v] by (-1)\nend\nif <<touching (sprite13 v)?> and <[costume] = [3]>> then\n    change [lives v] by (-1)\nend\n\nwhen backdrop switches to [backdrop12 v]\nshow variable [level v]\nshow variable [lives v]\nset [level v] to [5]\n\nwhen flag clicked\nif <(lives) = [0]> then\n    switch backdrop to (game over v)\nend\n\nwhen flag clicked\nforever\n    if <(username) = [Popfiz910]> then\n        if <key (x v) pressed?> then\n            switch backdrop to (backdrop12 v)\n            set [lives v] to [100000000000000000 ]\n        end\n        if <key (z v) pressed?> then\n            broadcast (Time To Win v)\n        end\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [win v]\nset [level v] to [WIN]\n\nwhen I receive [cutscene v]\nhide\n\nwhen backdrop switches to [backdrop12 v]\nset [level v] to [12]\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-193) y: (91)\n\nwhen flag clicked\nset [xvelocity v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [scrollx v] by (3)\n        set [xvelocity v] to [15]\n    end\n    if <key (left arrow v) pressed?> then\n        set [xvelocity v] to [-15]\n    end\n    set [xvelocity v] to ((xvelocity) / (2))\n    change x by (xvelocity)\n    if <touching color (#666666)?> then\n        change x by ((0) - (xvelocity))\n        set [xvelocity v] to [0]\n    end\n    if <touching color (#330066)?> then\n        change [level v] by (1)\n        broadcast (Next! level v)\n        if <(level) = [4]> then\n            go to x: (-87) y: (-83)\n        else\n            go to x: (-193) y: (-140)\n        end\n    end\n    if <<touching color (#ff0000)?> and <not <(level) = [6]>>> then\n        go to x: (-193) y: (-140)\n        change [lives v] by (-1)\n        if <(level) = [4]> then\n            go to x: (-87) y: (-83)\n        else\n            go to x: (-193) y: (-140)\n        end\n    end\n    if <<touching color (#ff0000)?> and <(level) = [6]>> then\n        go to x: (-193) y: (-160)\n        change [lives v] by (-1)\n        if <(level) = [4]> then\n            go to x: (-87) y: (-83)\n        else\n            go to x: (-193) y: (-140)\n        end\n    end\n    if <(lives) < [1]> then\n        switch backdrop to (game over v)\n        stop [all v]\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(backdrop [name v]) = [backdrop5]> then\n        forever\n            hide\n            wait (1.2) seconds\n            show\n            wait (0.5) seconds\n        end\n    else\n        hide\n        if <(backdrop [name v]) > [backdrop5]> then\n            hide\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [shadow ball2]> then\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(backdrop [name v]) = [backdrop5]>> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nset [state v] to [Game Play]\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [cutscene v]\nforever\n    hide variable [level v]\n    hide variable [lives v]\n    show\n    switch costume to (costume1 v)\n    wait (2) seconds\n    forever\n        switch costume to (costume2 v)\n    end\nend\n\n
Arrow Keys To Move \n\n\n\n                                         STORY\n_______________________________________________________\nAfter You Found Your Friend You Did Not Know Where You Were\nNext Thing You Knew Your Friend Was No were To Be Seen!  