The Puzzle~~~ A Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Prisoner\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (ninja v)\n        change [xv v] by (0.95)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-0.95)\n        switch costume to (ninja2 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#666666)?> then\n        change y by (1)\n        if <touching color (#666666)?> then\n            change y by (1)\n            if <touching color (#666666)?> then\n                change y by (1)\n                if <touching color (#666666)?> then\n                    change y by (1)\n                    if <touching color (#666666)?> then\n                        change y by (1)\n                        if <touching color (#666666)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#666666)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#666666)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [start game v]\n\nwhen flag clicked\nhide variable [deaths v]\nhide\nset [deaths v] to [0]\n\nwhen I receive [start game v]\nset [deaths v] to [0]\n\nwhen flag clicked\nstop all sounds\n\nwhen I receive [start the actuall game v]\n\nwhen I receive [2unlock v]\n\nwhen I receive [outro v]\nstop all sounds\n\nwhen [r v] key pressed\ngo to x: (-227) y: (-117)\n\nwhen I receive [outro v]\n\nhide\n\nwhen I receive [outro v]\nadd (Deaths) to [death count list v]\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Spectre \[NCS Release\].mp3 v] until done\nend\n\nwhen flag clicked\nshow\nswitch backdrop to (backdrop21 v)\nswitch costume to (ninja v)\ngo to x: (-227) y: (-117)\nset [deaths v] to [0]\nforever\n    if <<(x position) = [220]> or <(x position) > [220]>> then\n        go to x: (-227) y: (-117)\n        switch backdrop to (next backdrop v)\n    end\n    if <touching color (#ff0000)?> then\n        change [deaths v] by (1)\n        go to x: (-227) y: (-117)\n    end\n    if <key (r v) pressed?> then\n        change [deaths v] by (1)\n        go to x: (-227) y: (-117)\n        wait until <not <key (r v) pressed?>>\n    end\n    if <touching color (#ff00bf)?> then\n        set [yv v] to [23]\n    end\nend\n\nshow variable [deaths v]\n\nwait (1) seconds\nswitch costume to (costume1 v)\n\n
Arrow Keys \nDodge Red...\nAND HAVE FUN!!!\n(Can We Get This Top-Loved?)