Samurai ~ A Ninja Platformer

Instructions: ARROW KEYS TO MOVE\ntry to get to the portal to advance in level\nDONT TOUCH THE RED LAVA\n15 levels!\n\nLOVE AND FAVORITE IF YOU LIKED IT! (Dont report me. I said If you like it)\n\n\n\n

@Stage\n\nwhen I receive [next level v]\nnext backdrop\n\n@player\n\nwhen flag clicked\ngo to x: (-150) y: (0)\nset [yv v] to [0]\nset [yv v] to [0]\nswitch backdrop to (backdrop1 v)\nset [xv v] to [0]\nforever\n    switch costume to (costume2 v)\n    change [yv v] by (-0.5)\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.7)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching (platform v)?> then\n        change x by (Change)\n    end\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                                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 (platform v)?> then\n        change x by (Change)\n    end\n    if <touching color (#000008)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    switch costume to (costume1 v)\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n        go to x: (-150) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (Reset Level v)\n        go to x: (-150) y: (0)\n    end\nend\n\ncreate clone of (_myself_ v)\n\n@Portal\n\nwhen flag clicked\nshow\nset [level v] to [1]\nforever\n    if <(level) = [1]> then\n        go to x: (200) y: (-94)\n    end\n    if <(level) = [2]> then\n        go to x: (199) y: (110)\n    end\n    if <(level) = [3]> then\n        go to x: (214) y: (158)\n    end\n    if <(level) = [4]> then\n    end\nend\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [reset level v]\nforever\n    if <(level) = [1]> then\n        switch backdrop to (backdrop1 v)\n        go to x: (200) y: (-94)\n    end\n    if <(level) = [2]> then\n        switch backdrop to (backdrop2 v)\n        go to x: (199) y: (110)\n    end\n    if <(level) = [3]> then\n        switch backdrop to (backdrop3 v)\n        go to x: (214) y: (158)\n    end\n    if <(level) = [4]> then\n        switch backdrop to (backdrop4 v)\n        go to x: (204) y: (-98)\n    end\nend\n\n