A Space Ninja's Quest (Platformer) HACKED!
@Stage\n\nwhen flag clicked\nbroadcast (Intro v)\n\nwhen [m v] key pressed\nset [mouse v] to (join (mouse x) (join [,] (mouse y)))\n\n@Blank\n\n@Player\n\ndefine Game On\nset [sx v] to [0]\nset [x v] to [-222]\nset [y v] to [-124]\nset [sy v] to [0]\nset [in air v] to [0]\nset [finish v] to []\nset rotation style [don't rotate v]\npoint in direction (90)\nset [ghost v] effect to (0)\nset size to (100) %\nshow\n\ndefine Movement\nif <(Shop) = [No]> then\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        point in direction (-90)\n        change [sx v] by (-1)\n    end\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        change [sx v] by (1)\n    end\n    set [sx v] to ((sx) * (0.8))\n    if <([abs v] of (sx) ) > [0.9]> then\n        Change Player x by (round (sx))\n    end\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(in air) < [4]> then\n            set [sy v] to [11]\n        end\n    end\n    if <(sy) > [-20]> then\n        change [sy v] by (-1)\n    end\n    Change Player y by (sy)\n    Die\n    Position\n    if <<(x) > [240]> and <not <(Level) = [31]>>> then\n        set [finish v] to [Yes]\n    end\n    if <<(Tool) = [1]> and <[weapons v] contains [Sticky Hat]?>> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\n    if <<touching (text v)?> and <(Level) = [31]>> then\n        broadcast (Win v)\n    end\nend\n\nwhen I receive [start v]\ngo to [front v] layer\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(Finish) > []>\n        Movement\n    end\n    if <(Finish) = [Yes]> then\n        Game Con\n    else\n        Game End\n    end\nend\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        if <not <(costume [name v]) = [2]>> then\n            set [in air v] to [0]\n        end\n    end\n    Position\n    set [sy v] to [0]\n    if <(costume [name v]) = [2]> then\n        set [in air v] to [0]\n    end\nend\n\ndefine Position\ngo to x: (x) y: (y)\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platform v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-8]\n        else\n            set [sx v] to [8]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game End\nset [finish v] to []\nset [ghost v] effect to (0)\nset rotation style [all around v]\ngo to [front v] layer\nset [sx v] to [0]\nset [sy v] to [8]\nrepeat (12)\n    change [ghost v] effect by (7)\n    turn right (15) degrees\n    change y by (sy)\n    change [sy v] by (-1)\nend\nrepeat until <[-178] > (y position)>\n    change y by (sy)\n    change [sy v] by (-1)\nend\nchange [health v] by (-1)\nhide\n\nwhen flag clicked\nforever\n    if <(x) < [-240]> then\n        set [x v] to [-240]\n    end\n    if <(x) > [240]> then\n        set [x v] to [240]\n    end\nend\n\ndefine Game Con\nset [ghost v] effect to (100)\nif <not <(Level) = [30]>> then\n    broadcast (PlatformEffect v)\nend\nchange [level v] by (1)\nbroadcast (DeleteClones v)\nbroadcast (Create Clones v)\n\nwhen [3 v] key pressed\nset [tool v] to [1]\n\nwhen [4 v] key pressed\nset [tool v] to [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [start v]\nforever\n    if <touching (coins v)?> then\n        play sound [Collect v] until done\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <touching (collectables v)?> then\n        play sound [star v] until done\n    end\nend\n\ndefine Die\n\n@Platform\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Danger\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Weapon \n\nwhen I receive [start v]\nhide\ngo to [back v] layer\nforever\n    switch costume to (sword  v)\n    set size to (115) %\n    if <<<<key (space v) pressed?> and <(Finish) = []>> and <[weapons v] contains [Sword]?>> and <(Weapon) = [1]>> then\n        if <([direction v] of [player v]) = [90]> then\n            point in direction (90)\n            show\n            repeat (7)\n                turn right (15) degrees\n            end\n            hide\n        end\n        if <([direction v] of [player v]) = [-90]> then\n            point in direction (90)\n            show\n            repeat (7)\n                turn left (15) degrees\n            end\n            hide\n            wait until <not <key (space v) pressed?>>\n        end\n    end\nend\n\nwhen I receive [start v]\nhide\ngo to [back v] layer\nforever\n    if <<<<key (space v) pressed?> and <(Finish) = []>> and <(Weapon) = [2]>> and <<[weapons v] contains [Shurikens]?> and <(Throwable) > [0]>>> then\n        change [throwable v] by (-1)\n        create clone of (_myself_ v)\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I start as a clone\nset size to (45) %\nswitch costume to ( v)\nshow\ngo to (player v)\npoint in direction ([direction v] of [player v])\nrepeat until <<touching (_edge_ v)?> or <<<touching color (#3b3b3b)?> or <touching (enemy v)?>> or <touching (enemy weapons v)?>>>\n    move (10) steps\nend\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (1 v)\nforever\n    next costume\n    wait (0.05) seconds\n    if <(costume [number v]) > [2]> then\n        switch costume to (1 v)\n    end\nend\n\nwhen [1 v] key pressed\nset [weapon v] to [1]\n\nwhen [2 v] key pressed\nset [weapon v] to [2]\n\nwhen I receive [start v]\nforever\n    if <<<<key (space v) pressed?> and <(Finish) = []>> and <[weapons v] contains [Sword]?>> and <(Weapon) = [1]>> then\n        play sound [woosh1 v] until done\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [start v]\nforever\n    if <<<<key (space v) pressed?> and <(Finish) = []>> and <[weapons v] contains [Shurikens]?>> and <(Weapon) = [2]>> then\n        play sound [woosh1 v] until done\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [start v]\nforever\n    go to (player v)\nend\n\n@Collectables\n\nwhen I receive [start v]\ndelete all of [weapons v]\nset [throwable v] to [0]\nhide\n\nwhen I receive [create clones v]\nif <(Level) = [9]> then\n    switch costume to (sword v)\n    Create A Clone At x: [181] y: [48]\nend\nif <(Level) = [14]> then\n    switch costume to (shurikens v)\n    Create A Clone At x: [-150] y: [14]\nend\nif <(Level) = [21]> then\n    switch costume to (sticky hat v)\n    Create A Clone At x: [29] y: [94]\nend\n\nwhen I receive [deleteclones v]\ndelete this clone\n\ndefine Create A Clone At x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    if <touching (player v)?> then\n        add (costume [name v]) to [weapons v]\n        if <(costume [number v]) = [1]> then\n            set [weapon v] to [1]\n        end\n        if <(costume [number v]) = [2]> then\n            set [weapon v] to [2]\n            change [throwable v] by (10)\n        end\n        if <(costume [number v]) = [3]> then\n            set [tool v] to [1]\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Enemy\n\nwhen I start as a clone\nset size to (100) %\nswitch costume to (costume)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nset [x v] to [0]\nset [y v] to [0]\nset [die v] to [0]\ngo to [front v] layer\nforever\n    if <<<(die) = [0]> and <not <(costume) = [2]>>> and <(Shop) = [No]>> then\n        switch costume to (hitbox v)\n        point in direction (90)\n        change [y v] by (-1)\n        if <([x position v] of [player v]) < ((x position) - (10))> then\n            change [x v] by (-.3)\n        end\n        if <((x position) - (-10)) < ([x position v] of [player v])> then\n            change [x v] by (.3)\n        end\n        set [x v] to ((x) * (0.9))\n        change x by (x)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                    if <touching (platform v)?> then\n                        change y by (1)\n                        if <touching (platform v)?> then\n                            change y by (-3)\n                            change x by ((x) * (-1))\n                        end\n                    end\n                end\n            end\n        end\n        change y by (y)\n        if <touching (platform v)?> then\n            change y by ((y) - ((y) * (2)))\n            set [y v] to [0]\n        end\n        change y by (-1)\n        if <touching (player v)?> then\n            set [finish v] to [No]\n        end\n        switch costume to (costume)\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine Create A Clone at x: (x) y: (y) Type: (1-2)\ngo to x: (x) y: (y)\nset [costume v] to (1-2)\ncreate clone of (_myself_ v)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nif <(Level) = [10]> then\n    Create A Clone at x: [207] y: [-124] Type: [1]\n    Create A Clone at x: [135] y: [4] Type: [1]\n    Create A Clone at x: [-228] y: [103] Type: [1]\nend\nif <(Level) = [11]> then\n    Create A Clone at x: [210] y: [86] Type: [1]\n    Create A Clone at x: [39] y: [24] Type: [1]\n    Create A Clone at x: [-69] y: [-40] Type: [1]\nend\nif <(Level) = [13]> then\n    Create A Clone at x: [235] y: [-123] Type: [1]\n    Create A Clone at x: [230] y: [0] Type: [1]\n    Create A Clone at x: [200] y: [96] Type: [1]\nend\nif <(Level) = [14]> then\n    Create A Clone at x: [-226] y: [-10] Type: [1]\n    Create A Clone at x: [214] y: [-10] Type: [1]\n    Create A Clone at x: [220] y: [130] Type: [1]\n    Create A Clone at x: [-220] y: [85] Type: [1]\nend\nif <(Level) = [15]> then\n    Create A Clone at x: [226] y: [-13] Type: [2]\n    Create A Clone at x: [226] y: [-12] Type: [1]\n    Create A Clone at x: [200] y: [-123] Type: [1]\nend\nif <(Level) = [16]> then\n    Create A Clone at x: [-223] y: [77] Type: [1]\n    Create A Clone at x: [226] y: [78] Type: [1]\n    Create A Clone at x: [220] y: [-22] Type: [2]\n    Create A Clone at x: [-220] y: [-22] Type: [1]\nend\nif <(Level) = [17]> then\n    Create A Clone at x: [223] y: [-124] Type: [1]\n    Create A Clone at x: [29] y: [-124] Type: [1]\nend\nif <(Level) = [19]> then\n    Create A Clone at x: [219] y: [-124] Type: [1]\n    Create A Clone at x: [-229] y: [56] Type: [1]\n    Create A Clone at x: [228] y: [134] Type: [1]\n    Create A Clone at x: [216] y: [-41] Type: [2]\n    Create A Clone at x: [27] y: [56] Type: [1]\nend\nif <(Level) = [23]> then\n    Create A Clone at x: [-226] y: [2] Type: [1]\nend\nif <(Level) = [24]> then\n    Create A Clone at x: [226] y: [-74] Type: [2]\n    Create A Clone at x: [82] y: [4] Type: [1]\nend\nif <(Level) = [25]> then\n    Create A Clone at x: [22] y: [-125] Type: [2]\nend\nif <(Level) = [26]> then\n    Create A Clone at x: [228] y: [80] Type: [2]\n    Create A Clone at x: [55] y: [80] Type: [1]\n    Create A Clone at x: [228] y: [-122] Type: [1]\nend\nif <(Level) = [27]> then\n    Create A Clone at x: [228] y: [-124] Type: [2]\nend\nif <(Level) = [28]> then\n    Create A Clone at x: [200] y: [-122] Type: [1]\n    Create A Clone at x: [-228] y: [-15] Type: [1]\n    Create A Clone at x: [-228] y: [66] Type: [1]\n    Create A Clone at x: [229] y: [67] Type: [2]\nend\nif <(Level) = [30]> then\n    Create A Clone at x: [160] y: [-12] Type: [2]\n    Create A Clone at x: [-228] y: [85] Type: [1]\nend\n\nwhen I start as a clone\nwait (1) seconds\nforever\n    if <touching (danger v)?> then\n        wait (0.05) seconds\n        delete this clone\n    end\n    if <touching (weapon  v)?> then\n        set [die v] to [2]\n        if <<(costume) = [2]> and <not <[collected v] contains (Level)?>>> then\n            set size to (80) %\n            switch costume to (costume1 v)\n        else\n            if <<(costume) = [2]> and <[collected v] contains (Level)?>> then\n                set [ghost v] effect to (0)\n                set rotation style [all around v]\n                go to [front v] layer\n                repeat (12)\n                    change [ghost v] effect by (7)\n                    turn right (15) degrees\n                    change y by (y)\n                    change [y v] by (-1)\n                end\n                repeat until <[-178] > (y position)>\n                    change y by (y)\n                    change [y v] by (-1)\n                end\n                delete this clone\n            end\n        end\n        if <not <(costume) = [2]>> then\n            if <(pick random (1) to (2)) = [1]> then\n                set size to (45) %\n                switch costume to (+1 v)\n                set [ghost v] effect to (0)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                    change y by (3)\n                end\n                change [coins v] by (1)\n                delete this clone\n            else\n                set [ghost v] effect to (0)\n                set rotation style [all around v]\n                go to [front v] layer\n                repeat (12)\n                    change [ghost v] effect by (7)\n                    turn right (15) degrees\n                    change y by (y)\n                    change [y v] by (-1)\n                end\n                repeat until <[-178] > (y position)>\n                    change y by (y)\n                    change [y v] by (-1)\n                end\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (player v)?> and <(costume) = [2]>> then\n        if <(die) = [0]> then\n            set [finish v] to [No]\n        else\n            add (Level) to [collected v]\n            change [throwable v] by (10)\n            delete this clone\n        end\n    end\n    if <<<(die) = [0]> and <(costume) = [2]>> and <(Shop) = [No]>> then\n        change [counter v] by (1)\n        add (x position) to [xpositioned v]\n        add (y position) to [ypositioned v]\n        create clone of (enemy weapons v)\n        wait (1) seconds\n    end\nend\n\nwhen I receive [start v]\nset [counter v] to [0]\ndelete all of [direction v]\ndelete all of [xpositioned v]\ndelete all of [ypositioned v]\ndelete all of [collected v]\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Enemy Weapons\n\nwhen I start as a clone\nset size to (60) %\nshow\ngo to x: (item (Counter) of [xpositioned v]) y: (item (Counter) of [ypositioned v])\nrepeat until <<touching (_edge_ v)?> or <<touching (weapon  v)?> or <touching (platform v)?>>>\n    if <(Shop) = [No]> then\n        change x by (-10)\n    end\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.05) seconds\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Coins\n\nwhen I receive [start v]\nset [coins v] to [9999]\nhide\n\ndefine Create A Clone At x: (x) y: (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [create clones v]\nif <(Level) = [1]> then\n    Create A Clone At x: [-133] y: [-90]\n    Create A Clone At x: [-92] y: [-90]\n    Create A Clone At x: [-111] y: [-56]\n    Create A Clone At x: [121] y: [-90]\n    Create A Clone At x: [167] y: [-90]\n    Create A Clone At x: [145] y: [-56]\nelse\n    if <(Level) = [2]> then\n        Create A Clone At x: [-46] y: [-15]\n        Create A Clone At x: [-18] y: [-15]\n        Create A Clone At x: [8] y: [-15]\n        Create A Clone At x: [34] y: [-15]\n    else\n        if <(Level) = [3]> then\n            Create A Clone At x: [90] y: [-111]\n            Create A Clone At x: [160] y: [-111]\n            Create A Clone At x: [125] y: [-111]\n            Create A Clone At x: [90] y: [-75]\n            Create A Clone At x: [160] y: [-75]\n            Create A Clone At x: [125] y: [-75]\n        else\n            if <(Level) = [4]> then\n                Create A Clone At x: [-34] y: [128]\n                Create A Clone At x: [-34] y: [95]\n                Create A Clone At x: [160] y: [128]\n                Create A Clone At x: [160] y: [95]\n            else\n                if <(Level) = [5]> then\n                    Create A Clone At x: [-42] y: [68]\n                    Create A Clone At x: [-42] y: [35]\n                    Create A Clone At x: [-4] y: [-70]\n                    Create A Clone At x: [-4] y: [-106]\n                else\n                    if <(Level) = [6]> then\n                        Create A Clone At x: [-75] y: [-34]\n                        Create A Clone At x: [-75] y: [3]\n                        Create A Clone At x: [-41] y: [-34]\n                        Create A Clone At x: [-41] y: [3]\n                    else\n                        if <(Level) = [7]> then\n                            Create A Clone At x: [-65] y: [43]\n                            Create A Clone At x: [-65] y: [11]\n                            Create A Clone At x: [124] y: [43]\n                            Create A Clone At x: [124] y: [11]\n                        else\n                            if <(Level) = [8]> then\n                                Create A Clone At x: [-91] y: [-18]\n                                Create A Clone At x: [35] y: [22]\n                                Create A Clone At x: [170] y: [68]\n                            else\n                                if <(Level) = [9]> then\n                                    Create A Clone At x: [-49] y: [-70]\n                                    Create A Clone At x: [-49] y: [-104]\n                                    Create A Clone At x: [-12] y: [58]\n                                    Create A Clone At x: [-12] y: [87]\n                                    Create A Clone At x: [13] y: [-79]\n                                else\n                                    if <(Level) = [10]> then\n                                        Create A Clone At x: [-107] y: [-66]\n                                        Create A Clone At x: [-172] y: [-66]\n                                        Create A Clone At x: [-140] y: [-83]\n                                    else\n                                        if <(Level) = [11]> then\n                                            Create A Clone At x: [37] y: [66]\n                                            Create A Clone At x: [-90] y: [8]\n                                        else\n                                            if <(Level) = [12]> then\n                                                Create A Clone At x: [-90] y: [21]\n                                                Create A Clone At x: [36] y: [70]\n                                            else\n                                                if <(Level) = [13]> then\n                                                    Create A Clone At x: [-225] y: [64]\n                                                    Create A Clone At x: [-225] y: [34]\n                                                    Create A Clone At x: [-225] y: [4]\n                                                else\n                                                    if <(Level) = [14]> then\n                                                        Create A Clone At x: [-31] y: [-40]\n                                                        Create A Clone At x: [-31] y: [-70]\n                                                    else\n                                                        if <(Level) = [19]> then\n                                                            Create A Clone At x: [-128] y: [-83]\n                                                            Create A Clone At x: [-99] y: [-83]\n                                                            Create A Clone At x: [-71] y: [-83]\n                                                            Create A Clone At x: [-45] y: [-83]\n                                                        else\n                                                            if <(Level) = [20]> then\n                                                                Create A Clone At x: [-92] y: [-99]\n                                                                Create A Clone At x: [-60] y: [-99]\n                                                                Create A Clone At x: [-30] y: [-99]\n                                                                Create A Clone At x: [-92] y: [-61]\n                                                                Create A Clone At x: [-60] y: [-61]\n                                                                Create A Clone At x: [-30] y: [-61]\n                                                            else\n                                                                if <(Level) = [22]> then\n                                                                    Create A Clone At x: [-49] y: [-69]\n                                                                    Create A Clone At x: [-20] y: [-69]\n                                                                    Create A Clone At x: [7] y: [-69]\n                                                                    Create A Clone At x: [32] y: [-69]\n                                                                else\n                                                                    if <(Level) = [23]> then\n                                                                        Create A Clone At x: [-212] y: [40]\n                                                                        Create A Clone At x: [-175] y: [40]\n                                                                    else\n                                                                        if <(Level) = [24]> then\n                                                                            Create A Clone At x: [-30] y: [-65]\n                                                                            Create A Clone At x: [-6] y: [-65]\n                                                                            Create A Clone At x: [18] y: [-65]\n                                                                            Create A Clone At x: [120] y: [-96]\n                                                                            Create A Clone At x: [120] y: [-117]\n                                                                        else\n                                                                            if <(Level) = [26]> then\n                                                                                Create A Clone At x: [-69] y: [-111]\n                                                                                Create A Clone At x: [-69] y: [-54]\n                                                                                Create A Clone At x: [-69] y: [-82]\n                                                                            else\n                                                                                if <(Level) = [29]> then\n                                                                                    Create A Clone At x: [-62] y: [-96]\n                                                                                    Create A Clone At x: [3] y: [-96]\n                                                                                    Create A Clone At x: [-30] y: [-96]\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [deleteclones v]\ndelete this clone\n\nwhen I start as a clone\nset size to (45) %\nset [ghost v] effect to (100)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nforever\n    if <touching (player v)?> then\n        change [coins v] by (99)\n        delete this clone\n    end\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n    end\nend\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to ((Level) - (1))\nrepeat (10)\n    change x by (((-345) - (x position)) / (3))\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen I receive [platformeffect v]\ngo to x: (460) y: (0)\nswitch costume to (Level)\ncreate clone of (_myself_ v)\nrepeat (20)\n    change x by (((0) - (x position)) / (3))\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Health\n\nwhen I receive [start v]\nset [health v] to [1000]\nforever\n    if <(Health) = [0]> then\n        broadcast (Lose v)\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [digits v] to [0]\nrepeat (10)\n    change [digits v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nforever\n    set size to (45) %\n    go to x: (((digits) * (11)) - (235)) y: (160)\n    if <(length of (Show Health)) < (digits)> then\n        hide\n    else\n        show\n        switch costume to (letter (digits) of (Show Health))\n    end\nend\n\nwhen I receive [start v]\nforever\n    set [show health v] to (join [H:] (Health))\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Show Coins\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [digits v] to [0]\nrepeat (10)\n    change [digits v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nforever\n    set size to (45) %\n    go to x: (((digits) * (10)) - (235)) y: (135)\n    if <(length of (Show Coins)) < (digits)> then\n        hide\n    else\n        show\n        switch costume to (letter (digits) of (Show Coins))\n    end\nend\n\nwhen I receive [start v]\nforever\n    set [show coins v] to (join [C:] (Coins))\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Shurikens\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ndelete all of [weapons v]\nset [digits v] to [0]\nwait until <[weapons v] contains [Shurikens]?>\nrepeat (10)\n    change [digits v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nforever\n    set size to (45) %\n    go to x: (((digits) * (10)) - (160)) y: (160)\n    if <(length of (Shurikens)) < (digits)> then\n        hide\n    else\n        show\n        switch costume to (letter (digits) of (Shurikens))\n    end\nend\n\nwhen I receive [start v]\nforever\n    set [shurikens v] to (join [S:] (Throwable))\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Buttons\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nset [shop v] to [No]\nshow\nforever\n    switch costume to (shop v)\n    go to x: (-198) y: (-162)\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [95]>\n            change size by (2)\n        end\n        if <mouse down?> then\n            if <(Shop) = [No]> then\n                set [shop v] to [Yes]\n                broadcast (Shop v)\n                create clone of (_myself_ v)\n            end\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) < [92]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [start v]\ngo to [front v] layer\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nshow\nforever\n    switch costume to (close v)\n    go to [front v] layer\n    go to x: (111) y: (98)\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [95]>\n            change size by (2)\n        end\n        if <mouse down?> then\n            if <(Shop) = [Yes]> then\n                set [shop v] to [No]\n                broadcast (No Shop v)\n                delete this clone\n            end\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) < [92]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Shop\n\nwhen flag clicked\nhide\nforever\n    go to x: (0) y: (0)\n    switch costume to (1 v)\n    go to [front v] layer\nend\n\nwhen I receive [shop v]\nshow\nset [clone# v] to [1]\ncreate clone of (_myself_ v)\nset [clone# v] to [2]\ncreate clone of (_myself_ v)\nforever\n    switch costume to (1 v)\n    go [backward v] (1) layers\n    go to [front v] layer\nend\n\nwhen I receive [no shop v]\nhide\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    if <(clone#) = [1]> then\n        go to x: (90) y: (14)\n        switch costume to (buy v)\n    end\n    if <(clone#) = [2]> then\n        go to x: (90) y: (-62)\n        if <[weapons v] contains [Shurikens]?> then\n            switch costume to (buy v)\n        else\n            switch costume to (locked v)\n        end\n    end\nend\n\nwhen I start as a clone\nset size to (90) %\nshow\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) > [95]>\n            change size by (2)\n        end\n        if <mouse down?> then\n            if <(clone#) = [1]> then\n                if <<(Coins) = [10]> or <(Coins) > [10]>> then\n                    change [health v] by (1)\n                    change [coins v] by (-10)\n                end\n            end\n            if <<(clone#) = [2]> and <not <(costume [name v]) = [Locked]>>> then\n                if <<(Coins) = [10]> or <(Coins) > [10]>> then\n                    change [throwable v] by (10)\n                    change [coins v] by (-10)\n                end\n            end\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) < [92]>\n            change size by (-2)\n        end\n    end\nend\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [lose v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Intro\n\nwhen I receive [intro v]\nset [clone# v] to [8]\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\nswitch costume to (back v)\nset [who? v] to [0]\nshow\nset size to (0) %\nset [imp v] to [-179]\npoint in direction (imp)\nset [imp v] to [0]\nrepeat until <(Who?) = [1]>\n    go to [back v] layer\n    go [forward v] (1) layers\n    set [imp v] to (((imp) * (.8)) + (((100) - (size)) / (10)))\n    turn right (((90) - (direction)) / (5)) degrees\n    change size by (imp)\nend\nset [clone# v] to [1]\ncreate clone of (_myself_ v)\nset [clone# v] to [2]\ncreate clone of (_myself_ v)\nset [clone# v] to [3]\ncreate clone of (_myself_ v)\nset [clone# v] to [4]\ncreate clone of (_myself_ v)\nset [clone# v] to [5]\ncreate clone of (_myself_ v)\nset [clone# v] to [6]\ncreate clone of (_myself_ v)\nset [clone# v] to [7]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nif <(clone#) = [1]> then\n    switch costume to (1 v)\n    set [ghost v] effect to (100)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [2]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [2]> then\n    switch costume to (2 v)\n    set [ghost v] effect to (100)\n    show\n    wait until <(Who?) = [2]>\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [3]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [3]> then\n    switch costume to (3 v)\n    set [ghost v] effect to (100)\n    wait until <(Who?) = [3]>\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [4]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [4]> then\n    switch costume to (4 v)\n    set [ghost v] effect to (100)\n    wait until <(Who?) = [4]>\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [5]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [5]> then\n    switch costume to (5 v)\n    set [ghost v] effect to (100)\n    wait until <(Who?) = [5]>\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [6]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [6]> then\n    switch costume to (6 v)\n    set [ghost v] effect to (100)\n    wait until <(Who?) = [6]>\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [who? v] to [7]\n    start sound [Low Whoosh v]\nend\n\nwhen I start as a clone\nif <(clone#) = [7]> then\n    switch costume to (7 v)\n    set [ghost v] effect to (100)\n    wait until <(Who?) = [7]>\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (1.5) seconds\n    set [who? v] to [8]\nend\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nforever\n    if <(Who?) = [8]> then\n        if <not <(costume [name v]) = [Background]>> then\n            repeat (5)\n                change [ghost v] effect by (20)\n            end\n        end\n    end\nend\n\nwhen I receive [intro v]\nforever\n    if <(Who?) = [8]> then\n        switch costume to (logo v)\n        repeat until <(y position) < [-266]>\n            turn right (15) degrees\n            change y by (-10)\n        end\n        hide\n        broadcast (EndIntro v)\n    end\nend\n\nwhen I receive [intro v]\nwait (2) seconds\nset [who? v] to [1]\n\nwhen I receive [intro v]\nplay sound [Music v] until done\n\nwhen I start as a clone\npoint in direction (90)\nshow\nset [i v] to [0]\nset size to (i) %\ngo to [front v] layer\nrepeat until <(Who?) = [8]>\n    set [i v] to (((i) * (.8)) + (((100) - (size)) / (5)))\n    change size by (i)\nend\n\nwhen I start as a clone\nif <(clone#) = [8]> then\n    switch costume to (background v)\n    go to [back v] layer\nend\n\nwhen I receive [endintro v]\nstop all sounds\nhide\nstop [other scripts in sprite v]\nbroadcast (Start v)\nbroadcast (Create Clones v)\n\nwhen I receive [intro v]\nwait until <key (space v) pressed?>\nbroadcast (EndIntro v)\n\n@Thumbnail\n\nwhen flag clicked\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.05)\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\n\nwhen I receive [start v]\nforever\n    if <<(Coins) > [4]> and <key (n v) pressed?>> then\n        change [coins v] by (-5)\n        set [finish v] to [Yes]\n        wait until <not <<(Coins) > [4]> and <key (n v) pressed?>>>\n    end\nend\n\n@Sprite1\n\nwhen I receive [win v]\nshow\n\nwhen flag clicked\nhide\n\n
                               Instructions\n*Use the W,A,S,D or Arrow Keys To Move The Player.\n*Press Space To Use Weapons.\n*Press N to Skip If You Have 5 Coins To Spare.\nthis is my Hacked version, so, the things that changed are:\n-you can not die from shurikens or those green-pool-stuff.\n-your sword is bigger\n-you can jump a bit higher \n-your shurikens are bigger\n-you have a LOT of coins and a LOT of HP.\n-and I added text.\n-I accidentally deleted the "mission complete" and the "mission fail" sprites, so I made new ones.\n-the colors of the sword and the shurikens \n\n