Ninja Platformer #2

Instructions: Instructions in the game \nHaven't Played #1 -> https://scratch.mit.edu/projects/65217614/\nEnjoy the game! Feel Free to comment!\nCurated!! 9/1/15 Thanks @faryal228\nTop Loved 9/2/15 OMG!!\nThis is a basic Platformer that people can enjoy!\n______________________________________________________\n\n10/10/16 - 6000 views was reached

@Stage\n\n@Sprite8\n\nwhen I receive [start game v]\nhide\n\nwhen flag clicked\nshow\nset volume to (100) %\nforever\n    play sound [Vexento - Spread Your Wings v] until done\nend\n\nwhen I receive [instrucpg' v]\nhide\n\n@Ninja\n\nwhen backdrop switches to [backdrop30 v]\npen down\nwait (10) seconds\npen up\nerase all\nswitch backdrop to (backdrop31 v)\n\nwhen I receive [message1 v]\nset [clircles: v] to [1]\nswitch backdrop to (backdrop1 v)\nset [level v] to [1]\ngo to x: (-223) y: (-167)\nset [yv v] to [0]\n\nwhen backdrop switches to [backdrop49 v]\nrepeat until <not <(backdrop [name v]) = [backdrop49]>>\n    if <key (3 v) pressed?> then\n        switch backdrop to (backdrop50 v)\n        change [level v] by (1)\n        go to x: (-216) y: (74)\n        set [yv v] to [0]\n        wait until <not <key (3 v) pressed?>>\n    end\nend\n\nwhen backdrop switches to [backdrop46 v]\nrepeat until <not <(backdrop [name v]) = [backdrop46]>>\n    if <key (space v) pressed?> then\n        switch backdrop to (backdrop47 v)\n        change [level v] by (1)\n        go to x: (-223) y: (-167)\n        set [yv v] to [0]\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [pause v]\nset [game v] to [0]\n\nwhen I receive [unpause v]\nset [game v] to [1]\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        start sound [pop v]\n        set [yv v] to [0]\n        change [deaths v] by (1)\n        wait until <not <key (r v) pressed?>>\n        go to x: (-216) y: (74)\n    end\nend\n\ndefine Lag Reduce\nforever\n    set [lag v] to [10]\n    Lag Reduce\n    change [lag v] by (-1)\nend\n\nwhen backdrop switches to [backdrop25 v]\nset [clircles: v] to [0]\nwait (4) seconds\nif <(Clircles:) = [0]> then\n    switch backdrop to (backdrop26 v)\nend\n\nwhen I receive [reset v]\nset [sho v] to (join [Level ] (join (level) [/20]))\nset [level v] to [1]\n\nwhen I receive [next v]\nswitch backdrop to (next backdrop v)\n\nwhen I receive [start game v]\nset pen size to (5)\nerase all\npen up\nset pen color to (#666666)\nswitch backdrop to (stage 1 v)\nset [ghost v] effect to (0)\nset [level v] to [1]\nset [deaths v] to [0]\nset [clircles: v] to [0]\nset [volume: v] to [100]\nset [game v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [sho v]\ngo to x: (-216) y: (74)\npoint in direction (90)\nshow variable [sho v]\nshow\nforever\n    if <(game) = [1]> then\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.7)\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.7)\n            point in direction (90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change x by ((Xv) * (-1))\n                                change x by (-1)\n                                change y by (-5)\n                                change x by (1)\n                                if <key (up arrow v) pressed?> then\n                                    start sound [jump v]\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\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 (Yv)\n        if <touching color (#000008)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <touching color (#000008)?> then\n            if <key (up arrow v) pressed?> then\n                start sound [jump v]\n                set [yv v] to [10]\n            end\n        end\n        change y by (1)\n        if <touching color (#ffff00)?> then\n            start sound [next lvl v]\n            set [yv v] to [0]\n            go to x: (-216) y: (74)\n            switch backdrop to (next backdrop v)\n            change [level v] by (1)\n        end\n        if <touching color (#003fff)?> then\n            start sound [jump v]\n            set [yv v] to [15]\n        end\n        if <touching color (#00ffff)?> then\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [5]\n            else\n                set [yv v] to [-1]\n            end\n        end\n        if <touching color (#ff0000)?> then\n            start sound [bxsb v]\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: (-216) y: (74)\n            set [ghost v] effect to (0)\n            change [deaths v] by (1)\n        end\n        if <touching (en v)?> then\n            start sound [bxsb v]\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: (-216) y: (74)\n            set [ghost v] effect to (0)\n            change [deaths v] by (1)\n        end\n        if <(level) = [101]> then\n            set [sho v] to [The end!]\n        end\n        if <(level) < [101]> then\n            set [sho v] to (join [Level ] (join (level) [/20]))\n        end\n        if <(backdrop [name v]) = [backdrop101]> then\n            set [sho v] to [¯\_\(ツ\)_/¯]\n        end\n        if <(backdrop [name v]) = [backdrop103]> then\n            set [sho v] to [♪~ ᕕ\(ᐛ\)ᕗ]\n        end\n    end\nend\n\nwhen I receive [miss v]\nswitch backdrop to (next backdrop v)\nchange [level v] by (1)\n\nwhen flag clicked\nhide variable [sho v]\n\n@Sprite1\n\nwhen this sprite clicked\nswitch backdrop to (stage 1 v)\nbroadcast (Reset v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen backdrop switches to [stage 8 v]\nshow\nwait (5) seconds\nhide\nbroadcast (Miss v)\n\nwhen backdrop switches to [stage 1 v]\nhide\n\n@Sprite4\n\nwhen this sprite clicked\nbroadcast (START GAME v)\nhide\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-42) y: (-89)\nshow\n\nwhen I receive [instrucpg' v]\nhide\n\nwhen I receive [play gmae v]\ngo to x: (291) y: (-135)\nshow\n\n@Sprite5\n\nwhen this sprite clicked\nbroadcast (InstrucPG' v)\nhide\n\nwhen flag clicked\ngo to x: (70) y: (-49)\ngo to [front v] layer\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen this sprite clicked\nbroadcast (InstrucPG' v)\nhide\n\n@TEXT Pg\n\nwhen flag clicked\nswitch costume to (page1 v)\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [instrucpg' v]\nshow\n\nwhen I receive [go to next pg v]\nswitch costume to (page2 v)\nbroadcast (PLay Gmae v)\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo to x: (236) y: (-140)\n\nwhen this sprite clicked\nbroadcast (go to Next PG v)\n\nwhen flag clicked\ngo to [front v] layer\nadd (username) to [names v]\n\nwhen I receive [instrucpg' v]\nshow\n\nwhen I receive [play gmae v]\nhide\n\n