Minecraft Platformer (first platformer)
@Stage\n\nwhen flag clicked\nswitch backdrop to (regular v)\n\n@Player\n\nwhen flag clicked\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-163) y: (-122)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    change x by (X velocity)\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 x by ((X velocity) * (-1))\n                            if <key (up arrow v) pressed?> then\n                                if <(X velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [10]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (level v)?> then\n        change y by ((Y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\nend\n\nchange y by (-5)\n\nwhen flag clicked\npoint in direction (90)\nforever\n    if <<touching (_edge_ v)?> and <(level) = [1]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [2]\n        broadcast (2 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [2]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [3]\n        broadcast (3 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [3]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [4]\n        broadcast (4 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [4]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [5]\n        broadcast (5 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [5]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [6]\n        broadcast (6 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [6]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [7]\n        broadcast (7 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [7]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [8]\n        broadcast (8 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [8]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [9]\n        broadcast (9 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [9]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [10]\n        broadcast (10 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [10]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [11]\n        broadcast (11 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [11]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [12]\n        broadcast (12 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [12]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [13]\n        broadcast (13 v)\n    end\n    if <<touching (_edge_ v)?> and <(level) = [13]>> then\n        go to x: (-163) y: (-122)\n        set [level v] to [14]\n        broadcast (14 v)\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nset size to (60) %\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-2)\n    change [ghost v] effect by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <touching (danger! v)?> then\n        go to x: (-163) y: (-122)\n    end\nend\n\nwhen flag clicked\nswitch costume to (steve v)\nforever\n    if <key (r v) pressed?> then\n        change [color v] effect by (25)\n    end\nend\n\nforever\n    create clone of (_myself_ v)\nend\n\nwhen [b v] key pressed\nnext costume\n\n@Level\n\nwhen flag clicked\nswitch backdrop to (regular v)\nshow\ngo to x: (0) y: (0)\nset [level v] to [1]\nswitch costume to (1 v)\n\nwhen I receive [key! v]\nswitch costume to (yay v)\nswitch backdrop to (regular v)\n\nwhen I receive [2 v]\nswitch costume to (2 v)\n\nwhen I receive [3 v]\nswitch costume to (3 v)\nswitch backdrop to (regular2 v)\n\nwhen I receive [4 v]\nswitch backdrop to (regular2 v)\nswitch costume to (4 v)\n\nwhen I receive [5 v]\nswitch costume to (5 v)\nswitch backdrop to (regular v)\n\nwhen I receive [key2 v]\nswitch costume to (yeet v)\n\nwhen I receive [6 v]\nswitch costume to (6 v)\n\nwhen I receive [7 v]\nswitch costume to (7 v)\n\nwhen I receive [8 v]\nswitch costume to (8 v)\n\nwhen I receive [9 v]\nswitch costume to (9 v)\n\nwhen I receive [u got k-e v]\nswitch costume to (yeet! v)\n\nwhen I receive [10 v]\nswitch costume to (10 v)\n\nwhen I receive [11 v]\nswitch costume to (11 v)\n\nwhen flag clicked\npoint in direction (90)\n\nwhen I receive [12 v]\nswitch costume to (12 v)\n\nwhen I receive [13 v]\nswitch costume to (13 v)\n\nwhen I receive [14 v]\nswitch costume to (14 v)\n\n@Key\n\nwhen flag clicked\ngo to x: (-164) y: (96)\nshow\nforever\n    repeat (10)\n        change y by (1)\n    end\n    wait (0.02) seconds\n    repeat (10)\n        change y by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [1]> then\n        if <touching (player v)?> then\n            hide\n            broadcast (Key! v)\n        end\n    end\n    if <(level) = [5]> then\n        if <touching (player v)?> then\n            hide\n            broadcast (key2 v)\n        end\n    end\n    if <(level) = [9]> then\n        if <touching (player v)?> then\n            hide\n            broadcast (u got k-E v)\n        end\n    end\nend\n\nwhen I receive [5 v]\nshow\ngo to x: (168) y: (-117)\n\nwhen I receive [9 v]\nshow\ngo to x: (157) y: (18)\n\n@DaNgEr!\n\nwhen flag clicked\npoint in direction (90)\nhide\n\nwhen I receive [6 v]\nshow\ngo to x: (142) y: (-139)\n\nwhen I receive [7 v]\nshow\ngo to x: (-102) y: (28)\n\nwhen I receive [8 v]\nshow\npoint in direction (-90)\ngo to x: (178) y: (30)\n\nwhen I receive [9 v]\nshow\npoint in direction (90)\ngo to x: (153) y: (-138)\n\nwhen I receive [10 v]\nhide\n\nwhen I receive [12 v]\nshow\npoint in direction (90)\ngo to x: (-60) y: (-18)\n\nwhen I receive [11 v]\nshow\npoint in direction (0)\ngo to x: (173) y: (62)\n\nwhen I receive [13 v]\nhide\n\n@Speaker\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (on v)\ngo to x: (-195) y: (143)\nforever\n    if <key (space v) pressed?> then\n        switch costume to (on v)\n        repeat until <key (m v) pressed?>\n            play sound [Tobu & Itro - Sunburst v] until done\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (m v) pressed?> then\n        stop all sounds\n        switch costume to (off v)\n    end\nend\n\nwhen flag clicked\nrepeat until <key (m v) pressed?>\n    play sound [Tobu & Itro - Sunburst v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\n\n
This is my minecraft platformer and also my first real platformer so uhm yea enjoy yay hooray if u play then cool if u dont then still cool i guess 