minecraft platformer 4

Instructions: This is Night Light part 1\n\nDesktop Controls\nWASD or arrow keys\n\n\nMobile tap the direction you wanna go.....\nkinda hard though for mobile\n\nComment: GLOW!

@Stage\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nstop all sounds\n\nwhen flag clicked\nwait (3.6) seconds\nforever\n    play sound [Music v] until done\nend\n\n@Ninja\n\nwhen I receive [next v]\nset x to (-200)\nset y to (-20)\n\nwhen I receive [begin v]\nset [level v] to [1]\nforever\n    change [y v] by (-1)\n    if <touching (trampoline v)?> then\n        change [y v] by (20)\n    end\n    if <touching (water v)?> then\n        change [y v] by (2)\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            change [y v] by (-2.5)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change [x v] by (-1)\n        set [direction-player v] to [-90]\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1)\n        set [direction-player v] to [90]\n    end\n    set [x v] to ((x) * (slip))\n    change x by (x)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (-4)\n                        change x by ((x) * (-1))\n                        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                            set [y v] to [12]\n                            if <(x) > [0]> then\n                                set [x v] to [-10]\n                            else\n                                set [x v] to [10]\n                            end\n                        else\n                            set [x v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (ground v)?>> then\n        set [y v] to (jump height)\n    end\n    if <(y) < [-1]> then\n        set [force v] to [T]\n    else\n        set [force v] to [F]\n    end\n    change y by (1)\nend\n\nwhen I receive [begin v]\nforever\n    if <touching (dinosaur2 v)?> then\n        set [y v] to [9]\n        set [x v] to [-18]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (traps v)?> then\n        set x to (-200)\n        set y to (-20)\n    end\nend\n\nwhen flag clicked\nset x to (-200)\nset y to (-20)\nwait (3.6) seconds\nset x to (-200)\nset y to (-20)\n\nwhen flag clicked\nforever\n    if <(x position) > [215]> then\n        broadcast (Next v)\n        set x to (-200)\n        set y to (-20)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Win v)\n    end\nend\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nswitch costume to (costume3 v)\n\nwhen flag clicked\nbroadcast (begin v)\n\nwhen flag clicked\nforever\n    if <(timer) > [3]> then\n        reset timer\n    end\n    if <<(timer) < [1]> and <key (x v) pressed?>> then\n        set [y v] to ((y) * (1.2))\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nswitch costume to (costume2 v)\nwait (3.6) seconds\nswitch costume to (costume1 v)\nshow\ngo to [front v] layer\n\n@Ground\n\nwhen flag clicked\nshow\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nwait (3.6) seconds\nforever\n    play sound [Music v] until done\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        wait (2) seconds\n        switch costume to (costume12 v)\n        broadcast (Win v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [5]> then\n        broadcast (1 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (costume1 v)\n\n@Traps\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\nwhen flag clicked\nforever\n    if <(End?) = [yes]> then\n        hide\n    end\nend\n\n@CustomEnding\n\nwhen I receive [win v]\nwait (2) seconds\nswitch costume to (costume12 v)\nwait (2) seconds\nswitch costume to (costume13 v)\nstart sound [End v]\nwait (4) seconds\nswitch costume to (costume14 v)\nwait (4) seconds\nswitch costume to (costume15 v)\nwait (4) seconds\nswitch costume to (costume16 v)\nwait (4) seconds\nswitch costume to (costume17 v)\nwait (4) seconds\nswitch costume to (costume18 v)\nwait (4) seconds\nswitch costume to (costume19 v)\nwait (4) seconds\nbroadcast (Ending v)\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\nshow\n\n@Clouds\n\nwhen I receive [1 v]\nhide\n\nwhen I receive [2 v]\nshow\n\nwhen flag clicked\nshow\nforever\n    go to x: (-387) y: (0)\n    glide (40) secs to x: (432) y: (0)\nend\n\n@Logo\n\nwhen flag clicked\nset [ghost v] effect to (0)\nwait (0.1) seconds\nshow\ngo to [front v] layer\nset [ghost v] effect to (15)\nwait (0.3) seconds\nset [ghost v] effect to (35)\nwait (0.3) seconds\nset [ghost v] effect to (55)\nwait (0.3) seconds\nset [ghost v] effect to (75)\nwait (0.3) seconds\nhide\n\n@LogoScreen\n\nwhen flag clicked\nstop all sounds\nplay sound [LogoScreen v] until done\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (costume1 v)\nset size to (100) %\nwait (0.2) seconds\nchange size by (10)\nwait (0.2) seconds\nchange size by (10)\nwait (0.2) seconds\nchange size by (10)\nwait (0.2) seconds\nchange size by (-30)\nswitch costume to (costume2 v)\nwait (1) seconds\nchange size by (10)\nwait (0.2) seconds\nchange size by (-10)\nwait (0.2) seconds\nswitch costume to (costume3 v)\nwait (1) seconds\nchange size by (10)\nwait (0.2) seconds\nchange size by (-10)\nwait (0.2) seconds\nhide\n\n@AThumbnail\n\nwhen flag clicked\nhide\n\n@Ending\n\nwhen I receive [ending v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\n