Shadow Ball Platformer
@Stage\n\nwhen I receive [next! level v]\nnext backdrop\n\nwhen flag clicked\nforever\n    play sound [Different Heaven - Nekozilla.mp3 v] until done\n    play sound [Fun.mp3 v] until done\n    play sound [Masked Heroes v] until done\n    play sound [A16 v] until done\nend\n\nwhen backdrop switches to [start screen2 v]\nhide variable [lives v]\nhide variable [level v]\n\nwhen flag clicked\nswitch backdrop to (start screen2 v)\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [WIN]> then\n        broadcast (you win v)\n    end\nend\n\nwhen I receive [time to win v]\nswitch backdrop to (win v)\n\n@Sprite1\n\nwhen flag clicked\nset [level v] to [0]\nset [lives v] to [12]\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 backdrop switches to [backdrop8 v]\nif <not <(hardcore) = [1]>> then\n    set [lives v] to [12]\nend\n\nwhen flag clicked\nforever\n    set [hardcore v] to [0]\n    if <<(username) = [Enderlord2017]> and <key (1 v) pressed?>> then\n        set [hardcore v] to [1]\n    end\n    if <<(username) = [Enderlord2017]> and <key (2 v) pressed?>> then\n        set [hardcore v] to [0]\n    end\nend\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 [backdrop5 v]\nchange [lives v] by (1)\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\nforever\n    if <(level) = [12]> then\n        if <(mode) = [1]> then\n            if <key (down arrow v) pressed?> then\n                switch costume to (costume3 v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\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 [12]\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 backdrop switches to [backdrop12 v]\nset [lives v] to [12]\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nforever\n    if <(username) = [Popfiz910]> then\n        if <key (k v) pressed?> then\n            set [level v] to [8]\n            set [lives v] to [5]\n            show variable [level v]\n            show variable [lives v]\n            switch backdrop to (backdrop8 v)\n        end\n    end\n    if <(username) = [Popfiz910]> then\n        if <key (p v) pressed?> then\n            set [level v] to [12]\n            set [lives v] to [12]\n            show variable [level v]\n            show variable [lives v]\n            switch backdrop to (backdrop9 v)\n        end\n    end\nend\n\nwhen I receive [you win v]\nforever\n    if <touching color (#1f1f1f)?> then\n        switch backdrop to (win2 v)\n    else\n        switch backdrop to (win v)\n    end\nend\n\nwhen backdrop switches to [win v]\nset [level v] to [WIN]\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 <touching color (#6600cc)?> then\n        go to x: (-193) y: (-160)\n        set [lives v] to [1]\n    end\n    if <(lives) < [1]> then\n        switch backdrop to (game over v)\n        stop [all v]\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    if <(level) = [4]> then\n        show\n        go to x: (7) y: (-57)\n    else\n        hide\n    end\n    turn right (25) degrees\nend\n\nwhen backdrop switches to [backdrop11 v]\nshow\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nforever\n    glide (1.5) secs to x: (46) y: (142)\n    glide (1.5) secs to x: (47) y: (-106)\nend\n\nwhen flag clicked\nforever\n    point in direction (180)\n    if <(level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nwhen backdrop switches to [backdrop11 v]\nshow\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nforever\n    glide (2) secs to x: (72) y: (170)\n    glide (1.5) secs to x: (203) y: (168)\nend\n\nwhen flag clicked\nforever\n    point in direction (180)\n    if <(level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\nshow\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [win v]\nhide\n\nwhen backdrop switches to [game over v]\nhide\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (-196) y: (-84)\nshow\nforever\n    glide (4) secs to x: (212) y: (-84)\n    glide (4) secs to x: (-196) y: (-84)\nend\n\nwhen backdrop switches to [backdrop10 v]\nforever\n    if <touching (sprite1 v)?> then\n        wait (0.3) seconds\n        hide\n        wait (3) seconds\n        show\n    end\nend\n\nwhen backdrop switches to [backdrop10 v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (9) y: (-45)\nshow\n\nwhen backdrop switches to [backdrop10 v]\nforever\n    if <touching (sprite1 v)?> then\n        wait (0.1) seconds\n        hide\n        wait (3) seconds\n        show\n    end\nend\n\nwhen backdrop switches to [win v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (168) y: (-17)\nshow\n\nwhen backdrop switches to [game over v]\nhide\n\nwhen backdrop switches to [win v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nhide\n\nwhen backdrop switches to [backdrop10 v]\nforever\n    if <touching (sprite1 v)?> then\n        wait (0.1) seconds\n        hide\n        wait (3) seconds\n        show\n    end\nend\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite9\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop10 v]\nforever\n    wait (1) seconds\n    hide\n    wait (4) seconds\n    show\nend\n\nwhen flag clicked\ngo to x: (284) y: (24)\n\nwhen backdrop switches to [game over v]\nhide\n\nwhen backdrop switches to [win v]\nhide\n\nshow\n\nwhen backdrop switches to [game over v]\nstop [all v]\n\nwhen flag clicked\nforever\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\nwhen backdrop switches to [backdrop11 v]\nforever\n    hide\nend\n\n@Sprite6\n\nwhen flag clicked\nshow\ngo to x: (-23) y: (-63)\n\nwhen backdrop switches to [start screen v]\nhide\n\nwhen this sprite clicked\nswitch backdrop to (start screen v)\n\nwhen backdrop switches to [start3 v]\nhide\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\nwhen backdrop switches to [shadow ball2 v]\nhide\n\n@Sprite10\n\n
arrow keys to move space bar to jump\n\n\n\n\ncomment if there's a bug\n                                                  STORY\n_______________________________________________________\nYou And Your Friend Went Exploring And Found Yourself In A Cave  Your Friend Got Lost And Your Trying To Find Him\n_______________________________________________________  