Midnight - A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (100)\nrepeat (33)\n    change [ghost v] effect by (-3)\nend\nwait (1) seconds\nswitch backdrop to (backdrop3 v)\n\nwhen flag clicked\nforever\n    play sound [Epic Adventure Music - Shadow Ninja.mp3 v] until done\nend\n\n@Ninja\n\nwhen flag clicked\ngo to x: (-200) y: (-100)\npoint in direction (90)\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen flag clicked\nforever\n    if <(y position) < [-179]> then\n        go to x: (-200) y: (-100)\n        set [speed y v] to [0]\n    end\n    if <touching color (#680303)?> then\n        go to x: (-200) y: (-100)\n        set [speed y v] to [0]\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-200) y: (-100)\nset [speed y v] to [0]\nforever\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Ground <(speed y) > [0]>\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <key (left arrow v) pressed?> then\n        Walk (-90) (-8)\n    end\n    if <key (right arrow v) pressed?> then\n        Walk (90) (8)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <(falling?) < [3]>> then\n        set [speed y v] to [12]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(backdrop [name v]) = [backdrop18]>> then\n        if <(x position) = [248]> then\n            go to x: (-200) y: (-100)\n            switch backdrop to (next backdrop v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#686803)?> then\n        set [speed y v] to [25]\n    end\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching color (#b2b2b2)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\ndefine Touch Ground <>\nchange [falling? v] by (1)\nrepeat until <not <touching color (#b2b2b2)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <(backdrop [name v]) = [backdrop17]> then\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\n
Help Ninja find his way back to Tokyo!\n\n-Use the arrow keys to move the ninja.\n-Avoid falling into the darkness.\n-Don't touch the red!\n\nPlease love, favourite and even remix if you want to.\n