Cooperation v1.2 (A Platformer) #Games
@Stage\n\nwhen [r v] key pressed\nbroadcast (Refresh Level v) and wait\nwait until <not <key (r v) pressed?>>\n\nwhen [a v] key pressed\nchange [level v] by (1)\nbroadcast (Refresh Level v) and wait\nwait until <not <key (a v) pressed?>>\n\nwhen [s v] key pressed\nchange [level v] by (-1)\nbroadcast (Refresh Level v) and wait\nwait until <not <key (a v) pressed?>>\n\nwhen flag clicked\nset volume to (100) %\nset [level v] to [1]\nhide variable [boss hp v]\nhide variable [hp v]\nbroadcast (Refresh Level v)\nforever\n    play sound [the ninja reg v] until done\nend\n\nset [mini spears v] to [10]\n\nset [ninja stars v] to [10]\n\nwhen [o v] key pressed\nset [level v] to [4]\nbroadcast (Refresh Level v) and wait\nset [level v] to [6]\nbroadcast (Refresh Level v) and wait\nset [level v] to [14]\nbroadcast (Refresh Level v) and wait\nset [level v] to [25]\nbroadcast (Refresh Level v) and wait\nset [level v] to [29]\nbroadcast (Refresh Level v) and wait\nset [weapon amount v] to [5]\nwait until <not <key (o v) pressed?>>\n\nwhen [p v] key pressed\nstop [other scripts in stage v]\nforever\n    play sound [dub doctah EPICEPICEPICEPIC v] until done\nend\n\nwhen backdrop switches to [backdrop30 v]\nset volume to (100) %\nstop [other scripts in stage v]\nstop all sounds\nforever\n    play sound [120638 - 8 bit battle v] until done\nend\n\nset volume to (0) %\n\nwhen I receive [refresh level v]\nset [number en ninj setter v] to [0]\nset [target amount v] to [0]\nset [ninja stars v] to [0]\nset [mini spears v] to [0]\nset [spears v] to [5]\ndelete (all) of [y enemy ninjas v]\ndelete (all) of [x enemy ninjas v]\nset [delete clones v] to [1]\nwait (0.005) seconds\nset [delete clones v] to [0]\nswitch backdrop to ((Level) + (1))\n\nwhen I receive [wow.. uh.. u won v]\nrepeat (100)\n    change volume by (-1)\nend\nstop [other scripts in stage v]\n\nwhen backdrop switches to [backdrop31 v]\nset volume to (100) %\nstop [other scripts in stage v]\nstop all sounds\nforever\n    play sound [aup thing v] until done\nend\n\nwhen [u v] key pressed\nset [lev before v] to (Level)\nset [level v] to [4]\nbroadcast (Refresh Level v) and wait\nset [level v] to [6]\nbroadcast (Refresh Level v) and wait\nset [level v] to [14]\nbroadcast (Refresh Level v) and wait\nset [level v] to [25]\nbroadcast (Refresh Level v) and wait\nset [weapon amount v] to [5]\nset [level v] to (lev before)\nbroadcast (Refresh Level v) and wait\nbroadcast (Hide sword v) and wait\nwait until <not <key (u v) pressed?>>\n\nwhen [i v] key pressed\nset [level v] to [30]\nbroadcast (Refresh Level v)\n\n@The ninja\n\nwhen flag clicked\nforever\n    if <color (#ffe9cc) is touching (#82c8ff)?> then\n        change [yv v] by (0.4)\n        change y by (-1)\n        if <touching color (#000000)?> then\n            set [yv v] to [0]\n        end\n        if <key (up arrow v) pressed?> then\n            if <touching color (#000000)?> then\n                set [yv v] to [7]\n            else\n                change [yv v] by (0.6)\n            end\n        end\n        change y by (1)\n        set [yv v] to ((Yv) * (0.9))\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (-0.1)\n        end\n        if <key (left arrow v) pressed?> then\n            change [yv v] by (0.1)\n        end\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.4)\n        end\n    end\nend\n\nwhen flag clicked\npoint in direction (90)\nset [weapon amount v] to [0]\nshow\nforever\n    set [nusdna nblkc dfv lkjasdvb lkajdsfvlkjb v] to (direction)\n    switch costume to (the ninja2 v)\n    point in direction (90)\n    if <(y position) < [-180]> then\n        broadcast (refresh level v) and wait\n    end\n    if <(x position) > [235]> then\n        change [level v] by (1)\n        broadcast (refresh level v) and wait\n    end\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 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            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    point in direction (nusdna nblkc dfv lkjasdvb lkajdsfvLKJB)\n    switch costume to (the ninja v)\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\nwhen I receive [refresh level v]\nhide\nwait (0.05) seconds\ngo to x: (item (Level) of [start x v]) y: (item (Level) of [start y v])\nset [yv v] to [0]\nset [xv v] to [0]\nshow\n\nwhen flag clicked\nforever\n    wait until <color (#ffe9cc) is touching (#82c8ff)?>\n    wait until <<not <color (#ffe9cc) is touching (#82c8ff)?>> and <not <touching (katana v)?>>>\n    if <key (up arrow v) pressed?> then\n        start sound [recording1 v]\n        set [yv v] to [7]\n    end\nend\n\nwhen [y v] key pressed\nif <key (t v) pressed?> then\n    if <(length of [start y v]) > ((Level) - (1))> then\n        replace item (Level) of [start x v] with (mouse x)\n        replace item (Level) of [start y v] with (mouse y)\n    else\n        add (mouse x) to [start x v]\n        add (mouse y) to [start y v]\n    end\n    broadcast (refresh level v)\nend\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Moving platform\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (17) y: (-58)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (7) y: (-59)\ncreate clone of (_myself_ v)\ngo to x: (74) y: (-173)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-172) y: (-22)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop13 v]\ngo to x: (186) y: (-169)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop14 v]\ngo to x: (-167) y: (-12)\ncreate clone of (_myself_ v)\ngo to x: (-119) y: (-69)\ncreate clone of (_myself_ v)\ngo to x: (-167) y: (49)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop17 v]\ngo to x: (172) y: (-160)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop18 v]\ngo to x: (145) y: (145)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop19 v]\ngo to x: (0) y: (108)\ncreate clone of (_myself_ v)\ngo to x: (-168) y: (-6)\ncreate clone of (_myself_ v)\ngo to x: (145) y: (18)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (76) y: (73)\ncreate clone of (_myself_ v)\ngo to x: (-109) y: (-1)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (-196) y: (159)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop30 v]\ngo to x: (80) y: (-165)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen I start as a clone\nshow\nforever\n    change x by (4)\n    repeat until <touching color (#000000)?>\n        change y by (-3)\n        if <touching (grappling hook v)?> then\n            broadcast (grapple move right v)\n        end\n        change y by (3)\n        change x by (4)\n        change y by (3)\n        if <touching (the ninja v)?> then\n            set [xv v] to [4.5]\n        end\n        change y by (-3)\n        if <touching (the ninja v)?> then\n    end\n    wait (0.5) seconds\n    change x by (-4)\n    repeat until <touching color (#000000)?>\n        change y by (-3)\n        if <touching (grappling hook v)?> then\n            broadcast (grapple move left v)\n        end\n        change y by (3)\n        change x by (-4)\n        change y by (3)\n        if <touching (the ninja v)?> then\n            set [xv v] to [-4.5]\n        end\n        change y by (-3)\n        if <touching (the ninja v)?> then\n    end\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-66) y: (-79)\ncreate clone of (_myself_ v)\ngo to x: (96) y: (0)\ncreate clone of (_myself_ v)\ngo to x: (-185) y: (79)\ncreate clone of (_myself_ v)\n\nset [xv v] to [7]\n\nset [xv v] to [-7]\n\n@Shurikens/knives\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (-86) y: (-45)\nswitch costume to (hover v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-108) y: (-109)\nswitch costume to (hover v)\ncreate clone of (_myself_ v)\ngo to x: (-28) y: (-85)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-23) y: (-59)\nswitch costume to (hover v)\ncreate clone of (_myself_ v)\ngo to x: (-23) y: (20)\ncreate clone of (_myself_ v)\ngo to x: (-23) y: (98)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop12 v]\nswitch costume to (hover v)\ngo to x: (-172) y: (91)\nchange x by (30)\nrepeat (5)\n    create clone of (_myself_ v)\n    change x by (35)\nend\n\nwhen backdrop switches to [backdrop20 v]\ngo to x: (-62) y: (-6)\nswitch costume to (hover v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop21 v]\ngo to x: (-50) y: (-118)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-75) y: (-130)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-25) y: (-130)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop22 v]\ngo to x: (-214) y: (67)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-214) y: (17)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop23 v]\ngo to x: (-197) y: (-126)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (195) y: (-126)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (54) y: (136)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-26) y: (136)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\ngo to x: (-37) y: (121)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-7) y: (121)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (23) y: (121)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (53) y: (121)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\ngo to x: (-67) y: (121)\nswitch costume to (hover 2 v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    set [@gotten v] to [1]\n    wait until <not <touching (the ninja v)?>>\n    set rotation style [all around v]\n    point in direction (90)\n    clear graphic effects\n    show\n    forever\n        repeat (20)\n            turn right (0) degrees\n            change y by (0.2)\n            if <touching (the ninja v)?> then\n                change [mini spears v] by (1)\n                set rotation style [all around v]\n                start sound [recording1 v]\n                repeat (10)\n                    change y by (3)\n                    change [ghost v] effect by (10)\n                end\n                set [@gotten v] to [0]\n                delete this clone\n            end\n        end\n        repeat (20)\n            turn right (0) degrees\n            change y by (-0.2)\n            if <touching (the ninja v)?> then\n                change [mini spears v] by (1)\n                set rotation style [all around v]\n                start sound [recording1 v]\n                repeat (10)\n                    change y by (3)\n                    change [ghost v] effect by (10)\n                end\n                set [@gotten v] to [0]\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop30 v]\nset [gotten v] to [0]\nset [@gotten v] to [0]\nforever\n    if <(Mini Spears) < [3]> then\n        if <(@GOTTEN) = [0]> then\n            go to x: (187) y: (-91)\n            switch costume to (hover 2 v)\n            create clone of (_myself_ v)\n        end\n    end\n    if <(Ninja stars) < [6]> then\n        if <(Gotten) = [0]> then\n            go to x: (-195) y: (-147)\n            switch costume to (hover v)\n            create clone of (_myself_ v)\n        end\n    end\n    wait (5) seconds\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    set [gotten v] to [1]\n    wait until <not <touching (the ninja v)?>>\n    set rotation style [all around v]\n    point in direction (90)\n    clear graphic effects\n    show\n    forever\n        repeat (20)\n            turn right (5) degrees\n            change y by (0.2)\n            if <touching (the ninja v)?> then\n                change [ninja stars v] by (1)\n                set rotation style [all around v]\n                start sound [recording1 v]\n                repeat (10)\n                    change y by (3)\n                    change [ghost v] effect by (10)\n                    turn right (20) degrees\n                end\n                set [gotten v] to [0]\n                delete this clone\n            end\n        end\n        repeat (20)\n            turn right (5) degrees\n            change y by (-0.2)\n            if <touching (the ninja v)?> then\n                change [ninja stars v] by (1)\n                set rotation style [all around v]\n                start sound [recording1 v]\n                repeat (10)\n                    change y by (3)\n                    change [ghost v] effect by (10)\n                    turn right (20) degrees\n                end\n                set [gotten v] to [0]\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop21 v]\nset [weapon amount v] to [4]\nset [weapon selected v] to [4]\n\nwhen backdrop switches to [backdrop20 v]\nset [weapon amount v] to [3]\nset [weapon selected v] to [1]\n\nwhen I start as a clone\nif <(costume [number v]) = [4]> then\n    start sound [ninja katana2 v]\n    clear graphic effects\n    show\n    set rotation style [all around v]\n    turn left (0) degrees\n    repeat until <<<touching color (#7f7f7f)?> or <touching (_edge_ v)?>> or <touching (boss fight v)?>>\n        move (10) steps\n    end\n    if <touching (boss fight v)?> then\n        broadcast (Bossie Got hit v)\n        change [boss hp v] by (-0.5)\n        delete this clone\n    else\n        if <touching (_edge_ v)?> then\n            delete this clone\n        else\n            wait (0.05) seconds\n            if <touching color (#7f7f7f)?> then\n                move (-5) steps\n                if <touching color (#7f7f7f)?> then\n                    move (-5) steps\n                    if <touching color (#7f7f7f)?> then\n                        move (-5) steps\n                    end\n                end\n            end\n            move (5) steps\n            set [spear yv v] to [0]\n            repeat (50)\n                if <not <touching color (#7f7f7f)?>> then\n                    change [spear yv v] by (-0.5)\n                    change y by (Spear Yv)\n                end\n                change [ghost v] effect by (2)\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop5 v]\nforever\n    if <key (space v) pressed?> then\n        if <(Weapon selected) = [1]> then\n            if <(Ninja stars) > [0]> then\n                switch costume to (shoot v)\n                create clone of (_myself_ v)\n                change [ninja stars v] by (-1)\n                wait until <not <key (space v) pressed?>>\n            end\n        end\n    end\n    if <key (space v) pressed?> then\n        if <(Weapon selected) = [4]> then\n            if <(Mini Spears) > [0]> then\n                switch costume to (hover 3 v)\n                set rotation style [left-right v]\n                go to (the ninja v)\n                point in direction ([direction v] of [the ninja v])\n                turn right (10) degrees\n                create clone of (_myself_ v)\n                turn left (5) degrees\n                create clone of (_myself_ v)\n                turn left (5) degrees\n                create clone of (_myself_ v)\n                turn left (5) degrees\n                create clone of (_myself_ v)\n                change [mini spears v] by (-1)\n                wait until <not <key (space v) pressed?>>\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    set rotation style [left-right v]\n    go to (the ninja v)\n    point in direction ([direction v] of [the ninja v])\n    clear graphic effects\n    show\n    set rotation style [all around v]\n    start sound [ninja katana v]\n    if <(direction) = [90]> then\n        repeat until <<<touching color (#7f7f7f)?> or <touching (_edge_ v)?>> or <touching (boss fight v)?>>\n            change x by (10)\n            turn right (25) degrees\n        end\n        if <touching (boss fight v)?> then\n            broadcast (Bossie Got hit v)\n            change [boss hp v] by (-1)\n            delete this clone\n        else\n            if <touching (_edge_ v)?> then\n                delete this clone\n            else\n                wait (0.05) seconds\n                if <touching color (#7f7f7f)?> then\n                    change x by (-5)\n                    if <touching color (#7f7f7f)?> then\n                        change x by (-5)\n                        if <touching color (#7f7f7f)?> then\n                            change x by (-5)\n                        end\n                    end\n                    change x by (5)\n                    wait (0.1) seconds\n                    set [ninja star yv v] to [0]\n                    repeat (50)\n                        if <not <touching color (#7f7f7f)?>> then\n                            change [ninja star yv v] by (-0.5)\n                            change y by (ninja star Yv)\n                        end\n                        change [ghost v] effect by (2)\n                    end\n                end\n            end\n        end\n    else\n        repeat until <<<touching color (#7f7f7f)?> or <touching (_edge_ v)?>> or <touching (boss fight v)?>>\n            change x by (-10)\n            turn right (25) degrees\n        end\n        if <touching (boss fight v)?> then\n            broadcast (Bossie Got hit v)\n            change [boss hp v] by (-1)\n            delete this clone\n        else\n            if <touching (_edge_ v)?> then\n                delete this clone\n            else\n                wait (0.05) seconds\n                if <touching color (#7f7f7f)?> then\n                    change x by (5)\n                    if <touching color (#7f7f7f)?> then\n                        change x by (5)\n                        if <touching color (#7f7f7f)?> then\n                            change x by (5)\n                        end\n                    end\n                    change x by (-5)\n                    wait (0.1) seconds\n                    set [ninja star yv v] to [0]\n                    repeat (50)\n                        if <not <touching color (#7f7f7f)?>> then\n                            change [ninja star yv v] by (-0.5)\n                            change y by (ninja star Yv)\n                        end\n                        change [ghost v] effect by (2)\n                    end\n                end\n            end\n        end\n    end\n    delete this clone\nend\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Walls\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [refresh level v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop5 v]\nswitch costume to (costume1 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (backdrop6 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop9 v]\nswitch costume to (backdrop2 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop20 v]\nswitch costume to (backdrop3 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop22 v]\nswitch costume to (costume2 v)\nclear graphic effects\nset [ghost v] effect to (100)\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait until <(delete clones) = [1]>\n\nwhen backdrop switches to [backdrop23 v]\nswitch costume to (costume3 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop25 v]\nswitch costume to (costume4 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop28 v]\nswitch costume to (costume5 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop29 v]\nswitch costume to (costume6 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop30 v]\nswitch costume to (costume7 v)\nclear graphic effects\nshow\nwait until <(Target amount) > [0]>\nwait until <(Target amount) < [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Targets\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen backdrop switches to [backdrop5 v]\ngo to x: (74) y: (-2)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop6 v]\ngo to x: (-201) y: (90)\ncreate clone of (_myself_ v)\ngo to x: (-201) y: (49)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-226) y: (-53)\ncreate clone of (_myself_ v)\ngo to x: (-226) y: (29)\ncreate clone of (_myself_ v)\ngo to x: (-226) y: (107)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop20 v]\ngo to x: (21) y: (50)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop21 v]\ngo to x: (-229) y: (137)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop22 v]\ngo to x: (221) y: (106)\ncreate clone of (_myself_ v)\ngo to x: (221) y: (56)\ncreate clone of (_myself_ v)\ngo to x: (221) y: (6)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop23 v]\nswitch costume to (costume1 v)\ngo to x: (-219) y: (8)\ncreate clone of (_myself_ v)\ngo to x: (218) y: (8)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop25 v]\nswitch costume to (costume1 v)\ngo to x: (64) y: (81)\ncreate clone of (_myself_ v)\ngo to x: (64) y: (41)\ncreate clone of (_myself_ v)\ngo to x: (64) y: (1)\ncreate clone of (_myself_ v)\ngo to x: (64) y: (-39)\ncreate clone of (_myself_ v)\ngo to x: (64) y: (-79)\ncreate clone of (_myself_ v)\ngo to x: (64) y: (-119)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop28 v]\nswitch costume to (costume5 v)\ngo to x: (-57) y: (143)\ncreate clone of (_myself_ v)\ngo to x: (70) y: (143)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\ngo to x: (-178) y: (25)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop29 v]\nswitch costume to (costume1 v)\ngo to x: (210) y: (-14)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nchange [target amount v] by (1)\nshow\nwait until <<<touching color (#333633)?> or <touching color (#373937)?>> or <touching color (#2b2d2b)?>>\nstart sound [recording3 v]\nrepeat (3)\n    next costume\n    wait (0.05) seconds\nend\nhide\nchange [target amount v] by (-1)\ndelete this clone\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Weapon\n\nwhen flag clicked\nset [weapon selected v] to [1]\nhide\n\nwhen backdrop switches to [backdrop5 v]\nset [ninja stars v] to [0]\nswitch costume to ((Ninja stars) + (1))\nshow\nforever\n    if <(Weapon selected) = [2]> then\n        switch costume to (costume10 v)\n    end\n    if <(Weapon selected) = [1]> then\n        switch costume to ((Ninja stars) + (1))\n    end\n    if <(Weapon selected) = [3]> then\n        switch costume to (costume12 v)\n    end\n    if <(Weapon selected) = [4]> then\n        switch costume to ((Mini Spears) + (13))\n    end\n    if <(Weapon selected) = [5]> then\n        switch costume to ((Spears) + (23))\n    end\nend\n\nwhen backdrop switches to [backdrop7 v]\nforever\n    if <key (z v) pressed?> then\n        change [weapon selected v] by (1)\n        if <(Weapon selected) > (Weapon amount)> then\n            set [weapon selected v] to [1]\n        end\n        if <(Weapon selected) = [2]> then\n            broadcast (GRGRGRGRGRGLAKSDMNF:LKNSD:LVCN v)\n        end\n        wait until <not <key (z v) pressed?>>\n    end\n    if <key (1 v) pressed?> then\n        if <(Weapon amount) > [0]> then\n            set [weapon selected v] to [1]\n        end\n        wait until <not <key (1 v) pressed?>>\n    end\n    if <key (2 v) pressed?> then\n        if <(Weapon amount) > [1]> then\n            set [weapon selected v] to [2]\n            broadcast (GRGRGRGRGRGLAKSDMNF:LKNSD:LVCN v)\n        end\n        wait until <not <key (2 v) pressed?>>\n    end\n    if <key (3 v) pressed?> then\n        if <(Weapon amount) > [2]> then\n            set [weapon selected v] to [3]\n        end\n        wait until <not <key (3 v) pressed?>>\n    end\n    if <key (4 v) pressed?> then\n        if <(Weapon amount) > [3]> then\n            set [weapon selected v] to [4]\n        end\n        wait until <not <key (4 v) pressed?>>\n    end\n    if <key (5 v) pressed?> then\n        if <(Weapon amount) > [4]> then\n            set [weapon selected v] to [5]\n        end\n        wait until <not <key (5 v) pressed?>>\n    end\nend\n\nwhen I receive [grgrgrgrgrglaksdmnf:lknsd:lvcn v]\nswitch costume to (costume10 v)\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@thumbnail\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume3 v)\nclear graphic effects\ngo to [front v] layer\nswitch backdrop to (backdrop1 v)\n\nwhen backdrop switches to [backdrop31 v]\nhide variable [boss hp v]\nhide variable [hp v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (costume4 v)\nclear graphic effects\ngo to [front v] layer\n\n@katana\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop7 v]\nbroadcast (able to use sword v)\nset [weapon selected v] to [1]\nset [weapon amount v] to [1]\nwait until <not <touching (the ninja v)?>>\nclear graphic effects\nset rotation style [all around v]\nswitch costume to (hover v)\nset size to (50) %\ngo to x: (-47) y: (-44)\npoint in direction (10)\nshow\nforever\n    repeat (20)\n        change y by (0.2)\n        if <touching (the ninja v)?> then\n            set rotation style [all around v]\n            repeat (10)\n                change y by (3)\n                change [ghost v] effect by (10)\n            end\n            hide\n            set [weapon amount v] to [2]\n            broadcast (grgrgrgrgrglaksdmnf:lknsd:lvcn v)\n            switch costume to (swing v)\n            stop [this script v]\n        end\n    end\n    repeat (20)\n        change y by (-0.2)\n        if <touching (the ninja v)?> then\n            set rotation style [all around v]\n            repeat (10)\n                change y by (3)\n                change [ghost v] effect by (10)\n            end\n            hide\n            set [weapon amount v] to [2]\n            broadcast (grgrgrgrgrglaksdmnf:lknsd:lvcn v)\n            switch costume to (swing v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\nswitch costume to (swing v)\nset [weapon amount v] to [2]\nstop [other scripts in sprite v]\nbroadcast (able to use sword v)\nhide\n\nwhen I receive [able to use sword v]\nforever\n    if <(Weapon selected) = [2]> then\n        if <key (space v) pressed?> then\n            go to (the ninja v)\n            point in direction ([direction v] of [the ninja v])\n            clear graphic effects\n            set size to (100) %\n            change y by (20)\n            show\n            start sound [ninja katana v]\n            repeat (8)\n                turn right (40) degrees\n                go to (the ninja v)\n                if <touching (boss fight v)?> then\n                    change [boss hp v] by (-0.2)\n                end\n            end\n            hide\n            wait until <not <key (space v) pressed?>>\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop6 v]\nswitch costume to (hover v)\nset [weapon amount v] to [1]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop30 v]\nswitch costume to (swing v)\nset [weapon amount v] to [5]\nstop [other scripts in sprite v]\nbroadcast (able to use sword v)\nhide\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [hide sword v]\nswitch costume to (swing v)\nset [weapon amount v] to [5]\nstop [other scripts in sprite v]\nbroadcast (able to use sword v)\nhide\n\n@Piranhas\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <(delete clones) = [1]> then\n        delete this clone\n    end\n    if <<touching color (#333533)?> or <touching (katana v)?>> then\n        start sound [recording2 v]\n        stop [other scripts in sprite v]\n        repeat (20)\n            set rotation style [all around v]\n            change size by (-5)\n            turn right (15) degrees\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    end\nend\n\nwhen backdrop switches to [backdrop8 v]\ngo to x: (118) y: (-83)\ncreate clone of (_myself_ v)\ngo to x: (-24) y: (-120)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nshow\npoint in direction (90)\npoint in direction (pick random (-180) to (180))\nforever\n    change x by (fishie X)\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 ((fishie X) * (-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 (fishie Y)\n    if <touching color (#000000)?> then\n        change y by ((fishie Y) * (-1))\n        set [fishie y v] to [0]\n    end\n    set rotation style [left-right v]\n    if <(distance to [the ninja v]) < [100]> then\n        point towards (the ninja v)\n        switch costume to (costume3 v)\n        set [fishie y v] to (([cos v] of (direction) ) * (3))\n        set [fishie x v] to (([sin v] of (direction) ) * (3))\n    else\n        turn right (pick random (1) to (-2)) degrees\n        switch costume to (costume2 v)\n        set [fishie y v] to (([cos v] of (direction) ) * (0.5))\n        set [fishie x v] to (([sin v] of (direction) ) * (0.5))\n    end\n    if <touching (the ninja v)?> then\n        broadcast (refresh level v)\n    end\n    if <not <touching color (#82c8ff)?>> then\n        set [fishie y v] to [-2]\n    end\nend\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (87) y: (-107)\ncreate clone of (_myself_ v)\ngo to x: (16) y: (-99)\ncreate clone of (_myself_ v)\ngo to x: (-28) y: (-88)\ncreate clone of (_myself_ v)\ngo to x: (-27) y: (15)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop20 v]\ngo to x: (-59) y: (-33)\ncreate clone of (_myself_ v)\ngo to x: (-80) y: (-50)\ncreate clone of (_myself_ v)\ngo to x: (-38) y: (-50)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop24 v]\ngo to x: (12) y: (-12)\ncreate clone of (_myself_ v)\ngo to x: (50) y: (-71)\ncreate clone of (_myself_ v)\ngo to x: (158) y: (-62)\ncreate clone of (_myself_ v)\ngo to x: (197) y: (-20)\ncreate clone of (_myself_ v)\ngo to x: (117) y: (-18)\ncreate clone of (_myself_ v)\ngo to x: (-80) y: (-96)\ncreate clone of (_myself_ v)\ngo to x: (219) y: (-114)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Enemy ninjas\n\nwhen flag clicked\nhide\n\nwait (0.05) seconds\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    change [number en ninj setter v] by (1)\n    set [en ninj numb v] to (Number En Ninj setter)\n    set rotation style [left-right v]\n    add (x position) to [x enemy ninjas v]\n    add (y position) to [y enemy ninjas v]\n    show\n    repeat until <(delete clones) = [1]>\n        point towards (the ninja v)\n        if <touching color (#2a2e2a)?> then\n            delete (1) of [y enemy ninjas v]\n            delete (1) of [x enemy ninjas v]\n            set rotation style [all around v]\n            if <(direction) > [0]> then\n                point in direction (90)\n                repeat (9)\n                    turn right (-10) degrees\n                end\n            else\n                point in direction (90)\n                repeat (9)\n                    turn right (10) degrees\n                end\n            end\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n    end\n    delete this clone\nend\n\nwhen I receive [there are ninjas, make them shoot. v]\ndelete (all) of [y enemy ninjas v]\ndelete (all) of [x enemy ninjas v]\nwait (1) seconds\nset [ninja's number for shot v] to [0]\nrepeat until <(delete clones) = [1]>\n    set [ninja's number for shot v] to [1]\n    repeat (length of [x enemy ninjas v])\n        go to x: (item (ninja's number for shot) of [x enemy ninjas v]) y: (item (ninja's number for shot) of [y enemy ninjas v])\n        change y by (20)\n        switch costume to (costume1 v)\n        create clone of (_myself_ v)\n        change [ninja's number for shot v] by (1)\n    end\n    wait (1) seconds\nend\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen backdrop switches to [backdrop10 v]\nbroadcast (There are ninjas, make them shoot. v)\nwait (0) seconds\ngo to x: (117) y: (-103)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop11 v]\nbroadcast (There are ninjas, make them shoot. v)\nwait (0) seconds\ngo to x: (88) y: (97)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\ngo to x: (-102) y: (-63)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop22 v]\nbroadcast (There are ninjas, make them shoot. v)\nwait (0) seconds\ngo to x: (208) y: (-86)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop13 v]\nbroadcast (There are ninjas, make them shoot. v)\nwait (0) seconds\ngo to x: (221) y: (-143)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\ngo to x: (-229) y: (-7)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\ngo to x: (196) y: (56)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\nwhen backdrop switches to [backdrop17 v]\nbroadcast (There are ninjas, make them shoot. v)\nwait (0) seconds\ngo to x: (-198) y: (34)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    show\n    point towards (the ninja v)\n    set rotation style [all around v]\n    repeat until <<<<<touching (_edge_ v)?> or <touching color (#020202)?>> or <touching (katana v)?>> or <touching color (#333633)?>> or <touching color (#2a2e2a)?>>\n        move (7) steps\n        if <touching (the ninja v)?> then\n            broadcast (Refresh Level v)\n        end\n    end\n    if <touching (katana v)?> then\n        switch costume to (costume2 v)\n        turn right (180) degrees\n        repeat until <<<touching color (#7a7a73)?> or <touching (_edge_ v)?>> or <touching color (#020202)?>>\n            move (7) steps\n        end\n        move (7) steps\n        wait (0.05) seconds\n        delete this clone\n    else\n        if <<touching color (#333633)?> or <touching color (#2a2e2a)?>> then\n            switch costume to (costume2 v)\n            turn right (pick random (170) to (190)) degrees\n            repeat until <<<touching color (#7a7a73)?> or <touching (_edge_ v)?>> or <touching color (#020202)?>>\n                move (7) steps\n            end\n            wait (0.05) seconds\n            delete this clone\n        else\n            set [mini knife yv v] to [0]\n            repeat (20)\n                if <not <touching color (#020202)?>> then\n                    point in direction (180)\n                    change [mini knife yv v] by (-0.5)\n                end\n                change y by (mini knife Yv)\n                change [ghost v] effect by (5)\n            end\n        end\n    end\n    delete this clone\nend\n\n@Grappling Hook\n\ngo to x: (That grapple X) y: (That Grapple Y)\n\nwhen flag clicked\nhide\nerase all\n\nwhen I receive [allow grapple v]\nhide\nerase all\nforever\n    if <key (space v) pressed?> then\n        if <(Weapon selected) = [3]> then\n            set [grapple got moved v] to [0]\n            set pen size to (2)\n            set pen color to (#e1a91a)\n            set pen shade to (25)\n            pen up\n            erase all\n            set size to (60) %\n            set [grappled v] to [0]\n            show\n            go to (the ninja v)\n            detect ground\n            if <<touching (_edge_ v)?> or <not <touching color (#000000)?>>> then\n            else\n                set [that grapple y v] to (y position)\n                set [that grapple x v] to (x position)\n                pen up\n                erase all\n                go to (the ninja v)\n                pen down\n                set [grapple amount got there v] to [0]\n                go to (the ninja v)\n                repeat until <(y position) > (That Grapple Y)>\n                    pen up\n                    erase all\n                    go to x: (That grapple X) y: (That Grapple Y)\n                    point towards (the ninja v)\n                    turn right (180) degrees\n                    go to (the ninja v)\n                    pen down\n                    move (Grapple amount got there) steps\n                    change [grapple amount got there v] by (30)\n                    point in direction (90)\n                end\n                if <not <touching color (#000000)?>> then\n                    change y by (-10)\n                    if <not <touching color (#000000)?>> then\n                        change y by (-10)\n                    end\n                end\n                if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n                    set [grappled v] to [1]\n                    wait until <<not <key (space v) pressed?>> or <not <<touching color (#000000)?> or <touching color (#7f7f7f)?>>>>\n                    wait until <<<key (space v) pressed?> and <(Weapon selected) = [3]>> or <not <<touching color (#000000)?> or <touching color (#7f7f7f)?>>>>\n                    set [yv v] to [3]\n                else\n                end\n            end\n            set [grappled v] to [0]\n            hide\n            erase all\n            wait until <not <key (space v) pressed?>>\n        end\n    end\nend\n\ndefine detect ground\nset [grapple distance/tiem v] to [0]\nrepeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n    change y by (3)\n    change [grapple distance/tiem v] by (1)\nend\n\nwhen backdrop switches to [backdrop15 v]\nset [weapon amount v] to [3]\nset [weapon selected v] to [3]\nforever\n    stop [other scripts in sprite v]\n    set [grappled v] to [0]\n    hide\n    erase all\n    broadcast (Allow grapple v)\n    wait until <(delete clones) = [1]>\n    wait until <(delete clones) = [0]>\nend\n\nwhen backdrop switches to [backdrop14 v]\nstop [other scripts in sprite v]\nset [weapon amount v] to [2]\nif <(Weapon selected) = [3]> then\n    set [weapon selected v] to [1]\nend\n\nwhen I receive [grapple move left v]\nchange [grapple got moved v] by (-4)\n\nwhen I receive [grapple move right v]\nchange [grapple got moved v] by (4)\n\ndefine bruh just grapple\npen up\ngo to (the ninja v)\npen down\ngo to x: ((That grapple X) + (Grapple got moved)) y: (That Grapple Y)\n\nwhen I receive [allow grapple v]\nforever\n    if <(Grappled) = [1]> then\n        switch costume to (costume2 v)\n        erase all\n        set [xv v] to ((Xv) + (((x position) - ([x position v] of [the ninja v])) / (50)))\n        if <(Xv) > [15]> then\n            set [xv v] to [15]\n        end\n        if <(Xv) < [-15]> then\n            set [xv v] to [-15]\n        end\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [4]\n        else\n            if <key (down arrow v) pressed?> then\n                set [yv v] to [-4]\n            else\n                set [yv v] to [0.5]\n            end\n        end\n        pen up\n        go to (the ninja v)\n        pen down\n        go to x: ((That grapple X) + (Grapple got moved)) y: (That Grapple Y)\n        change y by (5)\n        if <([y position v] of [the ninja v]) > (y position)> then\n            set [yv v] to [0]\n        end\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [grpal arldy v]\nrepeat until <<not <(Grappled) = [1]>> or <(BOSSISGRPLIN'BRUH) = [0]>>\n    bruh just grapple\nend\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\nwait (1) seconds\n\n@Spear\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop26 v]\nset [weapon amount v] to [5]\nset [weapon selected v] to [5]\nforever\n    if <key (space v) pressed?> then\n        if <(Weapon selected) = [5]> then\n            if <(Spears) > [0]> then\n                switch costume to (spin v)\n                show\n                repeat until <not <key (space v) pressed?>>\n                    turn right (2.5) degrees\n                    go to (the ninja v)\n                    if <key (space v) pressed?> then\n                        turn right (2.5) degrees\n                        go to (the ninja v)\n                    end\n                end\n                start sound [recording2 v]\n                change [spears v] by (-1)\n                hide\n                create clone of (_myself_ v)\n            else\n            end\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop25 v]\nset [weapon amount v] to [4]\nset [weapon selected v] to [4]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (fly v)\nshow\nrepeat until <<<touching color (#000000)?> or <touching color (#7f7f7f)?>> or <touching (_edge_ v)?>>\n    move (10) steps\nend\nmove (3) steps\nwait (0.1) seconds\nmove (-3) steps\nif <touching (_edge_ v)?> then\n    repeat (2)\n        move (10) steps\n    end\n    delete this clone\nend\nmove (-3) steps\nif <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n    move (-3) steps\n    if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n        move (-3) steps\n        if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n            move (-3) steps\n        end\n    end\nend\nmove (3) steps\nswitch costume to (platform v)\nforever\n    if <not <touching color (#000000)?>> then\n        set [long spear yv v] to [0]\n        repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n            change [long spear yv v] by (-0.5)\n            change y by (Long spear Yv)\n            if <(direction) > [0]> then\n                turn right (((180) - (direction)) / (30)) degrees\n            else\n                turn right (((direction) - (180)) / (30)) degrees\n            end\n            change y by (3)\n            if <touching color (#000000)?> then\n                change y by (3)\n                if <touching color (#000000)?> then\n                    change y by (3)\n                    if <touching color (#000000)?> then\n                        change y by (3)\n                        if <touching color (#000000)?> then\n                            change y by (3)\n                            if <touching color (#000000)?> then\n                                change y by (3)\n                            end\n                        end\n                    end\n                end\n            end\n            change y by (-3)\n        end\n    end\nend\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n@Boss fight\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop30 v]\nchange [target amount v] by (1)\nset [boss hp v] to [10]\nset [hp v] to [10]\ngo to x: (7) y: (95)\npoint in direction (90)\nshow\nclear graphic effects\nset size to (100) %\nswitch costume to (boss2 v)\nwait (2) seconds\nsay [Powering on...] for (3) seconds\nswitch costume to (boss v)\nwait (1) seconds\npoint in direction (-90)\nwait (1) seconds\nsay [..You are not my master..   YOU WILL BE DESTROYED!] for (4) seconds\nforever\n    repeat (pick random (50) to (100))\n        point towards (the ninja v)\n        if <(distance to [the ninja v]) < [40]> then\n            set [clonetype for boss mves v] to [1]\n            create clone of (boss movedsd becsuasd idt idsflna odsin en wulekr v)\n            wait (0.5) seconds\n        end\n        if <<([y position v] of [the ninja v]) < ((y position) + (20))> and <([y position v] of [the ninja v]) > ((y position) - (20))>> then\n            set [clonetype for boss mves v] to [4]\n            create clone of (boss movedsd becsuasd idt idsflna odsin en wulekr v)\n            wait (0.5) seconds\n        end\n    end\n    set [boss move bruh v] to (pick random (1) to (3))\n    broadcast (BOSS MOVE BRUH v) and wait\nend\n\nwhen I receive [boss move bruh v]\nif <(BOSS MOVE BRUH) = [1]> then\n    point in direction (90)\n    set rotation style [all around v]\n    repeat (10)\n        change [ghost v] effect by (10)\n        turn right (30) degrees\n        change y by (4)\n    end\n    set rotation style [left-right v]\n    wait (1) seconds\n    if <(x position) = [-183]> then\n        if <(pick random (1) to (2)) = [1]> then\n            go to x: (7) y: (135)\n        else\n            go to x: (194) y: (30)\n        end\n    else\n        if <(x position) = [7]> then\n            if <(pick random (1) to (2)) = [1]> then\n                go to x: (-183) y: (77)\n            else\n                go to x: (194) y: (30)\n            end\n        else\n            if <(pick random (1) to (2)) = [1]> then\n                go to x: (7) y: (135)\n            else\n                go to x: (-183) y: (77)\n            end\n        end\n    end\n    set rotation style [all around v]\n    repeat (10)\n        change [ghost v] effect by (-10)\n        turn right (-30) degrees\n        change y by (-4)\n    end\n    set rotation style [left-right v]\n    clear graphic effects\n    point towards (the ninja v)\nend\n\nwhen I receive [bossie got hit v]\nchange [ghost v] effect by (50)\nrepeat (2)\n    change size by (-10)\nend\nrepeat (2)\n    change size by (10)\nend\nclear graphic effects\nset size to (100) %\n\nwhen backdrop switches to [backdrop30 v]\nwait (2) seconds\nset rotation style [all around v]\nrepeat (20)\n    turn right (pick random (-2) to (2)) degrees\n    set size to (pick random (103) to (100)) %\n    wait (0.025) seconds\n    turn right (pick random (-2) to (2)) degrees\n    set size to (pick random (97) to (100)) %\n    wait (0.025) seconds\nend\nset size to (100) %\nset rotation style [left-right v]\npoint in direction (90)\n\nwhen I receive [boss move bruh v]\nshow\nif <(BOSS MOVE BRUH) = [3]> then\n    point towards (the ninja v)\n    set [clonetype for boss mves v] to [3]\n    repeat (pick random (3) to (6))\n        create clone of (boss movedsd becsuasd idt idsflna odsin en wulekr v)\n        wait (0.3) seconds\n        turn right (pick random (-10) to (10)) degrees\n    end\nend\n\nset [boss hp v] to [0]\n\nwhen I receive [wow.. uh.. u won v]\nstop [other scripts in sprite v]\nclear graphic effects\nset size to (100) %\nset [boss yv v] to [8]\nset rotation style [all around v]\nrepeat until <touching (_edge_ v)?>\n    change [boss yv v] by (-0.5)\n    change y by (Boss Yv)\n    turn right (20) degrees\nend\nrepeat (3)\n    change [boss yv v] by (-0.5)\n    change y by (Boss Yv)\n    turn right (20) degrees\nend\nhide\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [boss move bruh v]\nif <(BOSS MOVE BRUH) = [3]> then\n    set [clonetype for boss mves v] to [3]\n    create clone of (boss movedsd becsuasd idt idsflna odsin en wulekr v)\n    wait (0.3) seconds\nend\n\nwhen I receive [boss move bruh v]\nif <(BOSS MOVE BRUH) = [2]> then\n    set [clonetype for boss mves v] to [2]\n    create clone of (boss movedsd becsuasd idt idsflna odsin en wulekr v)\n    wait (0.3) seconds\nend\n\n@BOSS MOVEDSD BECSUASD IDT IDSFLNA ODSIN EN WULEKR\n\nwhen I start as a clone\nif <(Clonetype for boss mves) = [3]> then\n    switch costume to (knife v)\n    go to (boss fight v)\n    point in direction ([direction v] of [boss fight v])\n    start sound [knife v]\n    clear graphic effects\n    show\n    set rotation style [all around v]\n    turn left (0) degrees\n    repeat until <<<<touching color (#7f7f7f)?> or <touching (_edge_ v)?>> or <touching (the ninja v)?>> or <touching (katana v)?>>\n        move (10) steps\n    end\n    if <touching (the ninja v)?> then\n        change [hp v] by (-1)\n        set [yv v] to [6]\n        if <(x position) > ([x position v] of [the ninja v])> then\n            set [xv v] to [-3]\n        else\n            set [xv v] to [3]\n        end\n        delete this clone\n    else\n        if <touching (_edge_ v)?> then\n            delete this clone\n        else\n            wait (0.05) seconds\n            if <touching color (#7f7f7f)?> then\n                move (-5) steps\n                if <touching color (#7f7f7f)?> then\n                    move (-5) steps\n                    if <touching color (#7f7f7f)?> then\n                        move (-5) steps\n                    end\n                end\n            end\n            move (5) steps\n            set [spear yv v] to [0]\n            repeat (50)\n                if <not <touching color (#7f7f7f)?>> then\n                    change [spear yv v] by (-0.5)\n                    change y by (Spear Yv)\n                end\n                change [ghost v] effect by (2)\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clonetype for boss mves) = [4]> then\n    set rotation style [left-right v]\n    go to (boss fight v)\n    switch costume to (surkin v)\n    point in direction ([direction v] of [boss fight v])\n    clear graphic effects\n    show\n    set rotation style [all around v]\n    start sound [ninja star v]\n    if <<(direction) < [180]> and <(direction) > [0]>> then\n        repeat until <<<<touching color (#000000)?> or <touching (_edge_ v)?>> or <touching (the ninja v)?>> or <touching (katana v)?>>\n            change x by (10)\n            turn right (25) degrees\n        end\n        if <touching (the ninja v)?> then\n            change [hp v] by (-1)\n            set [yv v] to [6]\n            if <(x position) > ([x position v] of [the ninja v])> then\n                set [xv v] to [-3]\n            else\n                set [xv v] to [3]\n            end\n            delete this clone\n        else\n            if <touching (_edge_ v)?> then\n                delete this clone\n            else\n                wait (0.05) seconds\n                if <touching color (#000000)?> then\n                    change x by (-5)\n                    if <touching color (#000000)?> then\n                        change x by (-5)\n                        if <touching color (#000000)?> then\n                            change x by (-5)\n                        end\n                    end\n                    change x by (5)\n                    wait (0.1) seconds\n                    set [ninja star yv v] to [0]\n                    repeat (50)\n                        if <not <touching color (#000000)?>> then\n                            change [ninja star yv v] by (-0.5)\n                            change y by (ninja star Yv)\n                        end\n                        change [ghost v] effect by (2)\n                    end\n                end\n            end\n        end\n    else\n        repeat until <<<touching color (#000000)?> or <touching (_edge_ v)?>> or <touching (the ninja v)?>>\n            change x by (-10)\n            turn right (25) degrees\n        end\n        if <touching (the ninja v)?> then\n            change [hp v] by (-1)\n            set [yv v] to [6]\n            if <(x position) > ([x position v] of [the ninja v])> then\n                set [xv v] to [-3]\n            else\n                set [xv v] to [3]\n            end\n            delete this clone\n        else\n            if <touching (_edge_ v)?> then\n                delete this clone\n            else\n                wait (0.05) seconds\n                if <touching color (#000000)?> then\n                    change x by (5)\n                    if <touching color (#000000)?> then\n                        change x by (5)\n                        if <touching color (#000000)?> then\n                            change x by (5)\n                        end\n                    end\n                    change x by (-5)\n                    wait (0.1) seconds\n                    set [ninja star yv v] to [0]\n                    repeat (50)\n                        if <not <touching color (#000000)?>> then\n                            change [ninja star yv v] by (-0.5)\n                            change y by (ninja star Yv)\n                        end\n                        change [ghost v] effect by (2)\n                    end\n                end\n            end\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clonetype for boss mves) = [1]> then\n    switch costume to (katana v)\n    go to (boss fight v)\n    set rotation style [all around v]\n    clear graphic effects\n    set size to (100) %\n    change y by (0)\n    show\n    start sound [ninja katana v]\n    repeat (8)\n        turn right (40) degrees\n        if <touching (the ninja v)?> then\n            change [hp v] by (-0.2)\n            set [yv v] to [6]\n            if <(x position) > ([x position v] of [the ninja v])> then\n                change [xv v] by (-3)\n            else\n                change [xv v] by (3)\n            end\n        end\n    end\n    hide\n    wait until <not <key (space v) pressed?>>\nend\n\nwhen I start as a clone\nif <(Clonetype for boss mves) = [2]> then\n    go to (boss fight v)\n    set rotation style [all around v]\n    point towards (the ninja v)\n    switch costume to (fly v)\n    clear graphic effects\n    show\n    start sound [Spear v]\n    repeat until <<<<touching color (#7f7f7f)?> or <touching (_edge_ v)?>> or <touching (the ninja v)?>> or <touching (katana v)?>>\n        move (10) steps\n    end\n    if <touching (the ninja v)?> then\n        move (-3) steps\n        if <touching (the ninja v)?> then\n            move (-3) steps\n            if <touching (the ninja v)?> then\n                move (-3) steps\n                if <touching (the ninja v)?> then\n                    move (-3) steps\n                end\n            end\n        end\n        move (3) steps\n        change [hp v] by (-2)\n        set [yv v] to [6]\n        if <([x position v] of [the ninja v]) > (x position)> then\n            set [xv v] to [6]\n        else\n            set [xv v] to [-6]\n        end\n        delete this clone\n    else\n        move (3) steps\n        wait (0.1) seconds\n        move (-3) steps\n        if <touching (_edge_ v)?> then\n            repeat (2)\n                move (10) steps\n            end\n            delete this clone\n        end\n        move (-3) steps\n        if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n            move (-3) steps\n            if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n                move (-3) steps\n                if <<touching color (#000000)?> or <touching color (#7f7f7f)?>> then\n                    move (-3) steps\n                end\n            end\n        end\n        move (3) steps\n        switch costume to (platform v)\n        repeat (30)\n            if <not <touching color (#000000)?>> then\n                set [long spear yv v] to [0]\n                repeat until <<touching color (#000000)?> or <touching (_edge_ v)?>>\n                    change [long spear yv v] by (-0.5)\n                    change y by (Long spear Yv)\n                    if <(direction) > [0]> then\n                        turn right (((180) - (direction)) / (30)) degrees\n                    else\n                        turn right (((direction) - (180)) / (30)) degrees\n                    end\n                    change y by (3)\n                    if <touching color (#000000)?> then\n                        change y by (3)\n                        if <touching color (#000000)?> then\n                            change y by (3)\n                            if <touching color (#000000)?> then\n                                change y by (3)\n                                if <touching color (#000000)?> then\n                                    change y by (3)\n                                    if <touching color (#000000)?> then\n                                        change y by (3)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                    change y by (-3)\n                end\n                if <touching (_edge_ v)?> then\n                    repeat (2)\n                        change [long spear yv v] by (-0.5)\n                        change y by (Long spear Yv)\n                    end\n                    delete this clone\n                end\n            end\n        end\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait until <(delete clones) = [1]>\ndelete this clone\n\nwhen backdrop switches to [backdrop30 v]\nshow variable [hp v]\nshow variable [boss hp v]\nrepeat until <(delete clones) = [1]>\n    if <(HP) < [0.01]> then\n        broadcast (Refresh Level v)\n    end\n    if <(Boss HP) < [0.01]> then\n        broadcast (Wow.. uh.. u won v) and wait\n        change [target amount v] by (-1)\n        stop [this script v]\n    end\nend\n\nbroadcast (Wow.. uh.. u won v)\n\nwhen backdrop switches to [backdrop31 v]\nstop [other scripts in sprite v]\nhide\n\n
Welcome to a little project I worked on called "Journal". You play as a kids drawing as you explore his notebook. He communicates to you by writing in his journal, however he has a secret. Play this easy lighthearted platformer with simple WASD or Arrow keys to move.