Ninja 2 (Platformer)
@Stage\n\nwhen flag clicked\nforever\n    play sound [Clean_Bandit_-_Rather_Be_feat v] until done\nend\n\n@Ninja\n\nwhen I receive [level change v]\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-218) y: (-129)\n\nwhen flag clicked\ngo to x: (-218) y: (-129)\nset rotation style [left-right v]\npoint in direction (90)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<(x position) > [238]> and <touching (_edge_ v)?>> then\n        change [level v] by (1)\n        broadcast (level change v) and wait\n    end\n    if <<(y position) < [-173]> and <touching (_edge_ v)?>> then\n        broadcast (level change v) and wait\n    end\n    if <not <touching color (#00cccc)?>> then\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [xv v] by (0.8)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [xv v] by (-0.8)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            if <not <touching color (#00cccc)?>> then\n                set [yv v] to [10]\n            end\n        end\n    end\n    change y by (1)\n    if <(Level) = [14]> then\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(Level) = [1]> then\n        switch backdrop to (decor1 v)\n    end\n    if <(Level) = [2]> then\n        switch backdrop to (decor2 v)\n    end\n    if <(Level) = [3]> then\n        switch backdrop to (decor3 v)\n    end\n    if <(Level) = [4]> then\n        switch backdrop to (decor4 v)\n    end\n    if <(Level) = [5]> then\n        switch backdrop to (decor5 v)\n    end\n    if <(Level) = [6]> then\n        switch backdrop to (decor6 v)\n    end\n    if <(Level) = [7]> then\n        switch backdrop to (decor7 v)\n    end\n    if <(Level) = [8]> then\n        switch backdrop to (decor8 v)\n    end\n    if <(Level) = [9]> then\n        switch backdrop to (decor9 v)\n    end\n    if <(Level) = [10]> then\n        switch backdrop to (decor10 v)\n    end\n    if <(Level) = [11]> then\n        switch backdrop to (decor11 v)\n    end\n    if <(Level) = [12]> then\n        switch backdrop to (decor12 v)\n    end\n    if <(Level) = [13]> then\n        switch backdrop to (decor13 v)\n    end\n    if <(Level) = [14]> then\n        switch backdrop to (decor14 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (obstacles v)?> or <touching (obstacles2 v)?>> then\n        broadcast (level change v) and wait\n    end\nend\n\n@Level\n\nwhen flag clicked\nswitch costume to (costum1 v)\nforever\n    if <(Level) = [1]> then\n        switch costume to (costum1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costum2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costum3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costum4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (costum5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costum6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costum7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (costum8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (costum9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (costum10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (costum11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (costum12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (costum13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (costum14 v)\n    end\nend\n\n@Obstacles\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        set size to (30) %\n        go to x: (-34) y: (-124)\n        show\n    end\n    if <(Level) = [2]> then\n        go to x: (-122) y: (-133)\n    end\n    if <(Level) = [3]> then\n        go to x: (176) y: (-67)\n    end\n    if <(Level) = [4]> then\n        go to x: (-130) y: (-125)\n    end\n    if <(Level) = [5]> then\n        go to x: (201) y: (29)\n    end\n    if <(Level) = [6]> then\n        go to x: (-102) y: (-123)\n    end\n    if <(Level) = [7]> then\n        go to x: (49) y: (-134)\n    end\n    if <(Level) = [8]> then\n        go to x: (-136) y: (-143)\n    end\n    if <(Level) = [9]> then\n        go to x: (132) y: (106)\n    end\n    if <(Level) = [10]> then\n        go to x: (-108) y: (-136)\n    end\n    if <(Level) = [11]> then\n        go to x: (-101) y: (123)\n    end\n    if <(Level) = [12]> then\n        go to x: (70) y: (142)\n    end\n    if <(Level) = [13]> then\n        go to x: (-46) y: (-130)\n    end\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\n@Obstacles2\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        set size to (30) %\n        go to x: (-34) y: (-124)\n        show\n    end\n    if <(Level) = [2]> then\n        go to x: (130) y: (-133)\n    end\n    if <(Level) = [3]> then\n        go to x: (176) y: (-67)\n    end\n    if <(Level) = [4]> then\n        go to x: (100) y: (0)\n    end\n    if <(Level) = [5]> then\n        go to x: (201) y: (29)\n    end\n    if <(Level) = [6]> then\n        go to x: (-70) y: (-123)\n    end\n    if <(Level) = [7]> then\n        go to x: (-140) y: (-134)\n    end\n    if <(Level) = [8]> then\n        go to x: (140) y: (-132)\n    end\n    if <(Level) = [9]> then\n        go to x: (160) y: (106)\n    end\n    if <(Level) = [10]> then\n        go to x: (-80) y: (-136)\n    end\n    if <(Level) = [11]> then\n        go to x: (-70) y: (123)\n    end\n    if <(Level) = [12]> then\n        go to x: (-120) y: (-134)\n    end\n    if <(Level) = [13]> then\n        go to x: (-10) y: (-130)\n    end\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\n@Obstacles3\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        set size to (30) %\n        go to x: (-34) y: (-124)\n        show\n    end\n    if <(Level) = [2]> then\n        go to x: (130) y: (-133)\n    end\n    if <(Level) = [3]> then\n        go to x: (176) y: (-67)\n    end\n    if <(Level) = [4]> then\n        go to x: (100) y: (0)\n    end\n    if <(Level) = [5]> then\n        go to x: (201) y: (29)\n    end\n    if <(Level) = [6]> then\n        go to x: (120) y: (-123)\n    end\n    if <(Level) = [7]> then\n        go to x: (-140) y: (-134)\n    end\n    if <(Level) = [8]> then\n        go to x: (140) y: (-132)\n    end\n    if <(Level) = [9]> then\n        go to x: (160) y: (106)\n    end\n    if <(Level) = [10]> then\n        go to x: (-80) y: (-136)\n    end\n    if <(Level) = [11]> then\n        go to x: (-70) y: (123)\n    end\n    if <(Level) = [12]> then\n        go to x: (-120) y: (-134)\n    end\n    if <(Level) = [13]> then\n        go to x: (-10) y: (-130)\n    end\n    if <(Level) = [14]> then\n        hide\n    end\nend\n\n
         NINJA 2 (PLATFORMER) is now out ! \n---------------------------------------------------------------------\n Use right/left and up arrow to move.\n Try to not fall into the void.\n Beware of the spikes !\n Try to beat it !