Minecraft Platformer ver.1.17

Instructions: arrows or wasd + space to move\nrestart: r\nNIE REKLAMOWAĆ SIĘ BO USUNĘ LUB ZGŁOSZĘ\nDO NOT ADVERTISE AS I WILL DELETE OR REPORT

@Stage\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\nwhen I receive [play v]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nstart sound [Alan Walker - Faded \(Instrumental Version\) v]\nforever\n    if <key (m v) pressed?> then\n        stop all sounds\n    end\n    if <key (p v) pressed?> then\n        start sound [Alan Walker - Faded \(Instrumental Version\) v]\n    end\nend\n\n@Sprite\n\nwhen flag clicked\nhide\n\nbroadcast (play v)\n\nwhen I receive [play v]\ngo to x: (-199) y: (-128)\n\nwhen I receive [play v]\nshow\npoint in direction (90)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    set rotation style [left-right v]\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <touching color (#43b111)?> then\n        change y by (1)\n        if <touching color (#43b111)?> then\n            change y by (1)\n            if <touching color (#43b111)?> then\n                change y by (1)\n                if <touching color (#43b111)?> then\n                    change y by (1)\n                    if <touching color (#43b111)?> then\n                        change y by (1)\n                        if <touching color (#43b111)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#43b111)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#43b111)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <touching color (#b8ffc9)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (0)\n        set [ghost v] effect to (0)\n    end\n    if <touching color (#3cad58)?> then\n        set [yv v] to [20]\n    end\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-198) y: (91)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (101)\n    end\n    if <touching color (#00910d)?> then\n        set [xv v] to [20]\n    end\nend\n\nwhen I receive [end v]\nhide\n\nwhen I receive [game over v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\n\nwhen I receive [play phone  v]\nshow\ngo to [front v] layer\npoint in direction (90)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    set rotation style [left-right v]\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<mouse down?> and <(x position) > (mouse x)>> then\n        change [xv v] by (-1)\n    end\n    if <<mouse down?> and <(x position) < (mouse x)>> then\n        change [xv v] by (1)\n    end\n    if <touching color (#43b111)?> then\n        change y by (1)\n        if <touching color (#43b111)?> then\n            change y by (1)\n            if <touching color (#43b111)?> then\n                change y by (1)\n                if <touching color (#43b111)?> then\n                    change y by (1)\n                    if <touching color (#43b111)?> then\n                        change y by (1)\n                        if <touching color (#43b111)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<mouse down?> and <(y position) < (mouse y)>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-7]\n                                else\n                                    set [xv v] to [7]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#43b111)?> then\n        if <<mouse down?> and <(y position) < (mouse y)>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#43b111)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <touching color (#b8ffc9)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-200) y: (0)\n        set [ghost v] effect to (0)\n    end\n    if <touching color (#3cad58)?> then\n        set [yv v] to [20]\n    end\n    if <(x position) > [230]> then\n        broadcast (next level v)\n        repeat (4)\n            change [ghost v] effect by (25)\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-198) y: (91)\n        set [ghost v] effect to (0)\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (101)\n    end\n    if <touching color (#00910d)?> then\n        set [xv v] to [20]\n    end\nend\n\nwhen I receive [play phone  v]\nshow\ngo to x: (-199) y: (-128)\n\n@levels\n\nwhen I receive [play v]\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nswitch costume to (levels v)\ngo to x: (-8) y: (-13)\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [play v]\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (end v)\n    end\nend\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [choice v]\nhide\n\nwhen flag clicked\nswitch costume to (thumbnail v)\nshow\ngo to [front v] layer\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (intro v)\n\nwhen I receive [play phone  v]\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nswitch costume to (levels v)\ngo to x: (-8) y: (-13)\n\nwhen I receive [play phone  v]\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (end v)\n    end\nend\n\n@Sprite1\n\nwhen I receive [end v]\ngo to [front v] layer\nshow\ngo to x: (103) y: (-63)\npoint in direction (90)\n\nwhen flag clicked\nhide\npoint in direction (90)\n\nwhen I receive [game over v]\nhide\n\n@Sprite2\n\nwhen I receive [end v]\nshow\ngo to [front v] layer\ngo to x: (-109) y: (-58)\npoint in direction (87)\n\nwhen flag clicked\nhide\n\nwhen I receive [game over v]\nhide\n\n@Sprite3\n\nwhen I receive [play v]\nhide\n\nwhen I receive [game over v]\nhide\n\nwhen I receive [intro v]\ngo to x: (-240) y: (0)\ngo to [front v] layer\nset size to (70) %\npoint in direction (90)\nshow\nglide (0.7) secs to x: (0) y: (0)\nwait (1) seconds\nrepeat (14)\n    turn right (15) degrees\n    change size by (-5)\nend\nhide\nbroadcast (choice v)\n\nwhen flag clicked\nhide\n\n@Sprite6\n\nwhen I receive [end v]\nshow\ngo to x: (-3) y: (-62)\npoint in direction (90)\n\nwhen flag clicked\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [choice v]\nshow\ngo to x: (-8) y: (-24)\n\nwhen I receive [play v]\nhide\n\nwhen I receive [play phone  v]\nhide\n\n@Sprite7\n\nwhen I receive [choice v]\nshow\nrepeat until <mouse down?>\n    wait until <touching (mouse-pointer v)?>\n    change size by (10)\n    wait until <not <touching (mouse-pointer v)?>>\n    change size by (-10)\nend\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (play phone  v)\n\nwhen I receive [play phone  v]\nhide\n\n@Sprite8\n\nwhen I receive [choice v]\nshow\ngo to x: (163) y: (-74)\nrepeat until <mouse down?>\n    wait until <touching (mouse-pointer v)?>\n    change size by (10)\n    wait until <not <touching (mouse-pointer v)?>>\n    change size by (-10)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\n\nwhen this sprite clicked\nbroadcast (play v)\n\nwhen I receive [play phone  v]\nhide\n\n