100 Lives (a platformer)
@Stage\n\n@100 Lives Stickman\n\nwhen backdrop switches to [backdrop66 v]\nrepeat (50)\n    change [life v] by (1)\n    wait (0.0.1) seconds\nend\n\nwhen [left arrow v] key pressed\nrepeat until <not <key (left arrow v) pressed?>>\n    change x by (-5)\nend\n\nwhen flag clicked\nset [time v] to [Normal]\nforever\n    if <touching color (#cccccc)?> then\n        change x by (5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#7f7f7f)?> then\n        change x by (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        wait (0.1) seconds\n        start sound [smw_kick v]\n        change [life v] by (-1)\n        go to x: (-194) y: (-50)\n        broadcast (message1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        broadcast (end v)\n        go to x: (-18) y: (-144)\n        wait (1) seconds\n        hide\n        forever\n            go to x: (-18) y: (-144)\n        end\n    end\nend\n\nwhen [right arrow v] key pressed\npoint in direction (90)\nif <(TIME) = [0]> then\n    repeat until <not <key (right arrow v) pressed?>>\n        switch costume to (runn-0 v)\n        wait (0.1) seconds\n        switch costume to (runn-1 v)\n        wait (0.1) seconds\n        switch costume to (runn-2 v)\n        wait (0.1) seconds\n        switch costume to (runn-3 v)\n        wait (0.1) seconds\n        switch costume to (runn-4 v)\n        wait (0.1) seconds\n        switch costume to (runn-5 v)\n        wait (0.1) seconds\n    end\n    switch costume to (runn-6 v)\nend\nif <(TIME) = [XMAS]> then\n    repeat until <not <key (right arrow v) pressed?>>\n        switch costume to (runn-7 v)\n        wait (0.1) seconds\n        switch costume to (runn-8 v)\n        wait (0.1) seconds\n        switch costume to (runn-9 v)\n        wait (0.1) seconds\n        switch costume to (runn-10 v)\n        wait (0.1) seconds\n        switch costume to (runn-11 v)\n        wait (0.1) seconds\n        switch costume to (runn-12 v)\n        wait (0.1) seconds\n    end\n    switch costume to (runn-13 v)\nend\n\nwhen [right arrow v] key pressed\nrepeat until <not <key (right arrow v) pressed?>>\n    change x by (5)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        forever\n            go to x: (-18) y: (-144)\n        end\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\npoint in direction (90)\nset size to (25) %\ngo to x: (-194) y: (68)\nset [veloy v] to [0]\nforever\n    if <key (up arrow v) pressed?> then\n        start sound [mariojump v]\n        set [veloy v] to [15]\n    end\n    repeat until <touching color (#666666)?>\n        change [veloy v] by (-0.5)\n        change y by (veloy)\n    end\n    if <touching color (#666666)?> then\n        set [veloy v] to [2]\n    end\n    change y by (veloy)\nend\n\nwhen flag clicked\nset [time v] to [0]\nif <(TIME) = [XMAS]> then\n    show\n    switch costume to (runn-13 v)\nelse\n    show\n    switch costume to (runn-6 v)\nend\nforever\n    if <touching color (#cc7700)?> then\n        repeat until <not <touching color (#cc7700)?>>\n            change x by (-5)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (runn-6 v)\nwait (.1) seconds\nswitch costume to (runn-6 v)\nset [time v] to [0]\nhide variable [keyhole v]\nset [keyhole v] to [0]\nforever\n    if <(x position) > [220]> then\n        broadcast (message2 v)\n        start sound [smw messsage block cut short v]\n        switch backdrop to (next backdrop v)\n        go to x: (-194) y: (-50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <[0] > (Life)> then\n        set size to (100) %\n        go to x: (0) y: (0)\n        switch costume to (costume1 v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite6 v)?> then\n        go to x: (-203) y: (-144)\n    end\nend\n\nwhen [left arrow v] key pressed\npoint in direction (-90)\nif <(TIME) = [0]> then\n    repeat until <not <key (left arrow v) pressed?>>\n        switch costume to (runn-0 v)\n        wait (0.1) seconds\n        switch costume to (runn-1 v)\n        wait (0.1) seconds\n        switch costume to (runn-2 v)\n        wait (0.1) seconds\n        switch costume to (runn-3 v)\n        wait (0.1) seconds\n        switch costume to (runn-4 v)\n        wait (0.1) seconds\n        switch costume to (runn-5 v)\n        wait (0.1) seconds\n    end\n    switch costume to (runn-6 v)\nend\nif <(TIME) = [XMAS]> then\n    repeat until <not <key (left arrow v) pressed?>>\n        switch costume to (runn-7 v)\n        wait (0.1) seconds\n        switch costume to (runn-8 v)\n        wait (0.1) seconds\n        switch costume to (runn-9 v)\n        wait (0.1) seconds\n        switch costume to (runn-10 v)\n        wait (0.1) seconds\n        switch costume to (runn-11 v)\n        wait (0.1) seconds\n        switch costume to (runn-12 v)\n        wait (0.1) seconds\n    end\n    switch costume to (runn-13 v)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff00bf)?> then\n        set [veloy v] to [15]\n        repeat (50)\n            change x by (5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ffff00)?> then\n        set [veloy v] to [8]\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(Keyhole) = [1]>\n        play sound [Underworld_Theme v] until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite8 v)?> then\n        hide\n        broadcast (ending v) and wait\n    end\nend\n\nwhen backdrop switches to [backdrop75 v]\ngo to x: (-14) y: (-66)\n\nset [time v] to [XMAS]\n\nwhen flag clicked\nswitch costume to (runn-13 v)\n\n@Ball2\n\nwhen flag clicked\nshow\nshow variable [life v]\nswitch backdrop to (backdrop1 v)\nswitch costume to (ball-b v)\nset [life v] to [100]\ngo to x: (-221) y: (159)\n\nwhen I receive [message1 v]\nswitch costume to (ball-b2 v)\nwait (0.1) seconds\nswitch costume to (ball-b v)\n\nwhen I receive [message2 v]\nswitch costume to (ball-b3 v)\nwait (0.1) seconds\nswitch costume to (ball-b v)\n\n@Sprite1\n\nwhen flag clicked\nset size to (100) %\nshow\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (50)\nforever\n    repeat (25)\n        turn right (15) degrees\n        change size by (10)\n    end\n    repeat (25)\n        turn right (-15) degrees\n        change size by (-10)\n    end\n    wait (2) seconds\nend\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (89) y: (134)\n\nwhen backdrop switches to [backdrop7 v]\nswitch costume to (costume2 v)\n\nwhen backdrop switches to [backdrop68 v]\nset size to (250) %\nswitch costume to (costume1 v)\ngo to x: (0) y: (200)\nforever\n    repeat (25)\n        turn right (15) degrees\n        change size by (10)\n    end\n    repeat (25)\n        turn right (-15) degrees\n        change size by (-10)\n    end\n    wait (2) seconds\nend\n\nwhen backdrop switches to [backdrop69 v]\nswitch costume to (costume2 v)\n\n@Sprite3\n\nwhen backdrop switches to [backdrop47 v]\ngo to x: (43) y: (-18)\nshow\n\nwhen backdrop switches to [backdrop48 v]\nhide\n\nwhen backdrop switches to [backdrop64 v]\nshow\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\nforever\n    wait (1) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop65 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop65 v]\nshow\ngo to x: (57) y: (-147)\n\nwhen I receive [end v]\nswitch costume to (costume2 v)\nwait (1) seconds\nswitch costume to (costume1 v)\nwait (1) seconds\nbroadcast (credits v)\n\nwhen backdrop switches to [backdrop66 v]\nhide\n\nwhen backdrop switches to [backdrop70 v]\nshow\ngo to x: (57) y: (-147)\n\nwhen backdrop switches to [backdrop71 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [credits v]\nshow\nrepeat (100)\n    wait (0.0.5) seconds\n    change size by (-1)\nend\nstop [all v]\n\nwhen flag clicked\nforever\n    wait (0.3) seconds\n    next costume\nend\n\n@Sprite5\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (100)\nend\n\n@Invisa-Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    turn right (1) degrees\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\nforever\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait (1) seconds\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen backdrop switches to [backdrop71 v]\nshow\n\nwhen backdrop switches to [backdrop72 v]\nhide\n\n@Sprite6\n\nwhen flag clicked\ngo [backward v] (1) layers\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\ngo to x: (-158) y: (-151)\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\nforever\n    if <touching (100 lives stickman v)?> then\n        hide\n        switch backdrop to (backdrop66 v)\n    end\nend\n\n@Sprite7\n\nwhen flag clicked\nhide\nif <(TIME) = [XMAS]> then\n    go to x: (0) y: (0)\n    show\nend\n\nwhen flag clicked\nwait (0.1) seconds\nset [time v] to [XMAS]\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sprite8\n\nwhen backdrop switches to [backdrop1 v]\nset size to (100) %\nset [keyhole v] to [0]\ngo to x: (-14) y: (-66)\nshow\nforever\n    if <touching (100 lives stickman v)?> then\n        broadcast (ending v) and wait\n    end\nend\n\nwhen I receive [ending v]\nswitch backdrop to (backdrop75 v)\nset [keyhole v] to [1]\nstop all sounds\nstart sound [smw_keyhole_exit v]\nrepeat (10)\n    wait (0.0.1) seconds\n    change size by (50)\nend\nwait (0.5) seconds\nrepeat (10)\n    wait (0.0.1) seconds\n    change size by (-50)\nend\nhide\nwait (1) seconds\nstop [all v]\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop66 v]\nhide\n\nset [keyhole v] to [1]\nplay sound [smw_keyhole_exit v] until done\nstop [all v]\n\nswitch backdrop to (backdrop74 v)\n\nwhen backdrop switches to [backdrop75 v]\nhide\n\n
Hey, some stuff first: This game was made two years ago, when I was still new to Scratch, so this game is glitchy and bad. I honestly have no idea why this is my second most popular project (behind another bad one: Sonic 3 Music Player). So, don't complain about glitches please. If you think the game is good, then great, but to me, I don't like it. Bye! OK onto the important stuff below.\n\nIgnore the christmas theme, I was too lazy to change it.\narrow keys. pretty simple game.\nget through all the levels.\nSorry if there are glitches. But, there are fun glitch levels.\nIt is possible to finish a level while touching lava, but it will decrease a life, but also take you to the next level.\nTHE PLATFORMS ARE NOT A GLITCH. THAT IS WHAT ALL PLATFORMS ARE SUPPOSED TO DO.\nMy First Platformer!!!!!!\n0 COUNTS AS A LIFE! so call it 101 lives!\nLeave a like and star! :)