Ninjaformer- A Mobile Friendly Platformer

Instructions: ꜰᴏʀ @corpcooga :ᴅ\nᴄᴏᴍᴍᴇɴᴛ ᴅᴏᴡɴ ʏᴏᴜʀ ᴛɪᴍᴇ!\nʀᴇᴀᴅ ᴀʟʟ ᴛʜᴇ ɪɴꜱᴛʀᴜᴄᴛɪᴏɴꜱ!\nᴘʟᴇᴀꜱᴇ ᴅᴏɴ'ᴛ ᴀᴅᴠᴇʀᴛɪꜱᴇ!\nWHAT?!\n@0014049 LOVED?!\n@dayfin LOVED and FAVED?!\nThank you guys so much!\n-------------------------ꜱᴛᴏʀʏʟɪɴᴇ-----------------------------\nʏᴏᴜ ᴀʀᴇ ᴊᴜꜱᴛ ᴀɴ ᴀᴠᴇʀᴀɢᴇ ɴɪɴᴊᴀ, ʙᴜᴛ ʏᴏᴜ ᴡᴀɴᴛ ᴛᴏ ʙᴇ ꜰᴀᴍᴏᴜꜱ! ᴛᴏ ᴅᴏ ᴛʜᴀᴛ, ʏᴏᴜ ᴡɪʟʟ ɴᴇᴇᴅ ᴛᴏ ꜱᴇᴇᴋ ᴛʜᴇ ɢᴏʟᴅᴇɴ ᴛᴏɪʟᴇᴛ. ᴛʜᴇ ɢᴏʟᴅᴇɴ ᴛᴏɪʟᴇᴛ ʜᴀꜱ ʙᴇᴇɴ ꜱᴀᴄʀᴇᴅ, ᴀɴᴅ ᴍᴀɴʏ ɪɴꜰʟᴜᴇɴᴛɪᴀʟ ᴊᴀᴘᴀɴᴇꜱᴇ ʟᴇᴀᴅᴇʀꜱ ʜᴀꜱ ᴏɴᴄᴇ ᴏᴡɴᴇᴅ ɪᴛ. ᴛʜᴇ ᴛᴏɪʟᴇᴛ ᴡᴀꜱ ꜰɪʀꜱᴛ ꜱᴀɪᴅ ᴛᴏ ʜᴀᴠᴇ ʙᴇᴇɴ ʙᴜɪʟᴛ ʙʏ ᴀɴ ᴇxᴘᴇʀᴛ ʙʟᴀᴄᴋꜱᴍɪᴛʜ ᴛᴏ ᴛʜᴇ ɢᴏᴅᴅᴇꜱꜱ ᴀᴍᴀᴛᴇʀᴀꜱᴜ. ʟᴀᴛᴇʀ, ɪᴛ ᴡᴀꜱ ꜰᴏᴜɴᴅ ʙʏ ᴛʜᴇ ʟᴇɢᴇɴᴅᴀʀʏ ᴅᴀɪᴍʏᴏ ᴜᴇꜱᴜɢɪ ᴋᴇɴꜱʜɪɴ ʙᴇꜰᴏʀᴇ ʙᴇɪɴɢ ᴛᴀᴋᴇɴ ʙʏ ᴛʜᴇ ᴛɪɢᴇʀ ᴏꜰ ᴋᴀɪ, ᴛᴀᴋᴇᴅᴀ ꜱʜɪɴɢᴇɴ ɪɴ ᴛʜᴇ ʙᴀᴛᴛʟᴇ ᴏꜰ ᴋᴀᴡᴀɴᴀᴋᴀᴊɪᴍᴀ. ɪᴛ ᴡᴀꜱ ʟᴀᴛᴇʀ ᴄᴀᴘᴛᴜʀᴇᴅ ʙʏ ᴛʜᴇ ɢʀᴇᴀᴛ ᴜɴɪꜰɪᴇʀ ᴏꜰ ᴊᴀᴘᴀɴ, ᴏᴅᴀ ɴᴏʙᴜɴᴀɢᴀ, ᴀɴᴅ ᴡᴀꜱ ꜱᴛᴏʀᴇᴅ ᴀᴡᴀʏ ɪɴ ᴛᴏɪʟᴇᴛ ᴄᴀꜱᴛʟᴇ, ᴏɴᴇ ᴏꜰ ᴛʜᴇ ᴍᴏꜱᴛ ꜱᴀᴄʀᴇᴅ ɪɴ ᴀʟʟ ᴏꜰ ᴊᴀᴘᴀɴ. ᴛʜᴇ ɢᴏʟᴅᴇɴ ᴛᴏɪʟᴇᴛ ᴘᴀᴘᴇʀ'ꜱ ᴡʜᴇʀᴇᴀʙᴏᴜᴛꜱ ᴀʀᴇ ꜱᴛɪʟʟ ᴜɴᴋɴᴏᴡɴ ᴛᴏᴅᴀʏ, ʙᴜᴛ ʏᴏᴜ ᴀʀᴇ ᴅᴇᴛᴇʀᴍɪɴᴇᴅ ᴛᴏ ꜰɪɴᴅ ɪᴛ...\n------------------------ɪɴꜱᴛʀᴜᴄᴛɪᴏɴꜱ---------------------------\nᴀʀʀᴏᴡ ᴋᴇʏꜱ ᴛᴏ ᴍᴏᴠᴇ\nᴍᴏʙɪʟᴇ ꜰʀɪᴇɴᴅʟʏ, ꜱᴏ ʏᴏᴜ ᴄᴀɴ ᴜꜱᴇ ᴍᴏʙɪʟᴇ ᴄᴏɴᴛʀᴏʟꜱ\nᴅᴇꜰᴇᴀᴛ ꜱᴀᴍᴜʀᴀɪ ᴇɴᴇᴍɪᴇꜱ!\nʏᴏᴜ ʜᴀᴠᴇ ᴛᴏ ʙᴜʏ ᴡᴇᴀᴘᴏɴꜱ ᴀᴛ ᴛʜᴇ ꜱʜᴏᴘ\nᴡᴇᴀᴘᴏɴꜱ:\nᴋᴀᴛᴀɴᴀ...\n...ꜱʜᴜʀɪᴋᴇɴ...\n...ᴍᴜꜱᴋᴇᴛ...\n...ᴀɴᴅ ᴏᴅᴀ ɴᴏʙᴜɴᴀɢᴀ'ꜱ ɢᴏʟᴅᴇɴ ᴛᴏɪʟᴇᴛ ᴘᴀᴘᴇʀ*?!\n*ᴀʟꜱᴏ, ɢᴏʟᴅᴇɴ ᴛᴏɪʟᴇᴛ ᴘᴀᴘᴇʀ ɪꜱ ɪɴꜱᴀɴᴇʟʏ ɢᴏᴏᴅ!

@Stage\n\nwhen flag clicked\nhide variable [money v]\nswitch backdrop to (start v)\nbroadcast (run code v)\n\nwhen I receive [setup v]\nswitch backdrop to (sky v)\nbroadcast (Setup Enemies v)\n\n@Player\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [move player v]\nif <not <touching (lava v)?>> then\n    change x by (Move::X)\n    change y by (Move::Y)\nelse\n    broadcast (Restart v)\nend\n\nwhen I receive [setup v]\nswitch costume to (costume number)\nset rotation style [left-right v]\ngo to x: (-210) y: (-59)\nset [ghost v] effect to (100)\npoint in direction (90)\nset size to (100) %\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nset [xv v] to [0]\nset [yv v] to [0]\nset [level v] to [1]\nforever\n    set [player direction v] to (direction)\n    create clone of (_myself_ v)\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < (y position)>>> then\n        switch costume to ((costume number) + (3))\n    else\n        switch costume to (costume number)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [xv v] by (0.75)\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [xv v] by (-0.75)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        change y by (1)\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n            if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                change y by (1)\n                if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                    change y by (1)\n                    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                        change y by (1)\n                        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                            change y by (1)\n                            if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-7]\n                                    else\n                                        set [xv v] to [7]\n                                    end\n                                    set [yv v] to [12]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <(x position) > [220]> then\n        Game win\n    end\n    if <<<<touching (spikes v)?> or <touching (saws v)?>> or <<touching (lava v)?> or <touching (enemies v)?>>> or <(y position) < [-160]>> then\n        broadcast (Restart v)\n    end\n    if <touching (trampoline v)?> then\n        set [yv v] to [22]\n    end\nend\n\nwhen I receive [run code v]\nset size to (100) %\ngo to [front v] layer\ngo [backward v] (1) layers\nhide\n\ndefine Game win\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (LEVEL UP! v)\nhide\nchange [level v] by (1)\ngo to x: (-210) y: (-59)\npoint in direction (90)\nbroadcast (Set Coin v)\nset size to (100) %\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen I receive [skip v]\nGame win\n\ndefine Game die\nset [ghost v] effect to (100)\ngo to x: (-210) y: (-59)\npoint in direction (90)\nbroadcast (Set Coin v)\nset size to (100) %\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [restart v]\nGame die\n\nwhen I receive [bounce! v]\nset [yv v] to [15]\n\nwhen I receive [setup v]\nbroadcast (Set Coin v)\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Ground\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (2) layers\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Transition\n\nwhen I receive [level up! v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nclear graphic effects\nshow\ngo to x: (0) y: (500)\nrepeat (30)\n    change y by (((-5) - (y position)) / (8))\nend\ngo to x: (0) y: (0)\nwait (0.05) seconds\nrepeat (30)\n    change y by (((-370) - (y position)) / (8))\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nclear graphic effects\ndelete this clone\n\nwhen I receive [run code v]\nhide\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Background\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Saws\n\nwhen I receive [setup v]\nforever\n    if <(LEVEL) = [1]> then\n        go to x: (75) y: (-95)\n        show\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        hide\n    end\n    if <(LEVEL) = [4]> then\n        hide\n    end\n    if <(LEVEL) = [5]> then\n        hide\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\n    if <(LEVEL) = [7]> then\n        go to x: (-50) y: (-95)\n        show\n    end\n    if <(LEVEL) = [8]> then\n        hide\n    end\n    if <(LEVEL) = [9]> then\n        hide\n    end\n    if <(LEVEL) = [10]> then\n        hide\n    end\n    if <(LEVEL) = [11]> then\n        hide\n    end\n    if <(LEVEL) = [12]> then\n        go to x: (-60) y: (-95)\n        show\n    end\n    if <(LEVEL) = [13]> then\n        hide\n    end\n    if <(LEVEL) = [14]> then\n        hide\n    end\nend\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (2) layers\nswitch costume to (costume1 v)\nset [direction v] to [10]\nforever\n    set size to (100) %\n    repeat until <(direction) = [-10]>\n        turn right (direction) degrees\n        change [direction v] by (-0.25)\n    end\n    repeat until <(direction) = [10]>\n        turn right (direction) degrees\n        change [direction v] by (0.25)\n    end\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Spikes\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (1) layers\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Clouds\n\ndefine pre-load clouds\nset x to (240)\nrepeat (5)\n    set y to (pick random (20) to (150))\n    set size to (pick random (75) to (150)) %\n    create clone of (_myself_ v)\n    change x by (-68)\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\nshow\nforever\n    go [backward v] (500) layers\n    repeat until <(x position) < [-239]>\n        set [ghost v] effect to (35)\n        go [backward v] (500) layers\n        change x by ((size) / (-100))\n        change x by ((0.3) * (x))\n    end\n    go to x: (240) y: (pick random (20) to (150))\n    set size to (pick random (75) to (150)) %\n    go [backward v] (500) layers\nend\n\nwhen I receive [setup v]\nhide\npre-load clouds\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Coins\n\nwhen I receive [set coin v]\nforever\n    switch costume to ((((timer) * (10)) mod (6)) + (1))\n    if <touching (player v)?> then\n        start sound [Coin v]\n        change [money v] by (1)\n        hide\n        delete this clone\n    end\nend\n\nwhen I receive [set coin v]\nif <(LEVEL) = [1]> then\n    show\n    go to x: (-25) y: (0)\nend\nif <(LEVEL) = [2]> then\n    show\n    go to x: (-30) y: (20)\nend\nif <(LEVEL) = [3]> then\n    show\n    go to x: (20) y: (100)\nend\nif <(LEVEL) = [4]> then\n    show\n    go to x: (20) y: (30)\nend\nif <(LEVEL) = [5]> then\n    show\n    go to x: (100) y: (-50)\nend\nif <(LEVEL) = [6]> then\n    show\n    go to x: (100) y: (125)\nend\nif <(LEVEL) = [7]> then\n    show\n    go to x: (90) y: (-25)\nend\nif <(LEVEL) = [8]> then\n    show\n    go to x: (75) y: (0)\nend\nif <(LEVEL) = [9]> then\n    show\n    go to x: (50) y: (-50)\nend\nif <(LEVEL) = [10]> then\n    show\n    go to x: (0) y: (-50)\nend\nif <(LEVEL) = [11]> then\n    show\n    go to x: (185) y: (75)\nend\nif <(LEVEL) = [12]> then\n    show\n    go to x: (50) y: (-50)\nend\nif <(LEVEL) = [13]> then\n    show\n    go to x: (180) y: (75)\nend\nif <(LEVEL) = [14]> then\n    hide\nend\n\nwhen flag clicked\nset [money v] to [0]\n\nwhen I receive [run code v]\ngo to [back v] layer\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Trampoline\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nforever\n    if <touching (player v)?> then\n        switch costume to (1 v)\n        repeat (3)\n            next costume\n            wait (0.001) seconds\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.001) seconds\n        end\n    end\nend\n\nwhen I receive [run code v]\ngo to [back v] layer\ngo [forward v] (1) layers\nhide\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (2) layers\nforever\n    if <(LEVEL) = [1]> then\n        hide\n    end\n    if <(LEVEL) = [2]> then\n        hide\n    end\n    if <(LEVEL) = [3]> then\n        go to x: (-100) y: (-80)\n        show\n    end\n    if <(LEVEL) = [4]> then\n        hide\n    end\n    if <(LEVEL) = [5]> then\n        hide\n    end\n    if <(LEVEL) = [6]> then\n        hide\n    end\n    if <(LEVEL) = [7]> then\n        hide\n    end\n    if <(LEVEL) = [8]> then\n        hide\n    end\n    if <(LEVEL) = [9]> then\n        hide\n    end\n    if <(LEVEL) = [10]> then\n        hide\n    end\n    if <(LEVEL) = [11]> then\n        go to x: (-175) y: (-80)\n        show\n    end\n    if <(LEVEL) = [12]> then\n        hide\n    end\n    if <(LEVEL) = [13]> then\n        hide\n    end\n    if <(LEVEL) = [14]> then\n        hide\n    end\nend\n\nwhen I receive [level up! v]\ndelete this clone\n\nwhen I receive [restart v]\ndelete this clone\n\nwhen I start as a clone\nswitch costume to (1 v)\nforever\n    if <touching (player v)?> then\n        switch costume to (1 v)\n        repeat (3)\n            next costume\n            wait (0.001) seconds\n        end\n        repeat (3)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.001) seconds\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@TB\n\nwhen flag clicked\nhide variable [money v]\nforever\n    go to x: (0) y: (0)\n    set [check timer v] to (timer)\n    hide\nend\n\nwhen [timer v] > (Check Timer)\nset [ghost v] effect to (100)\nrepeat (10)\n    show\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\n\n@Start\n\nwhen I start as a clone\nshow\nif <(costume [number v]) = [2]> then\n    show\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (-100)\n    forever\n        forever\n            repeat until <touching (mouse-pointer v)?>\n                point in direction ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n                change y by (((y position) + (100)) / (-15))\n                set size to (100) %\n            end\n            repeat until <not <touching (mouse-pointer v)?>>\n                point in direction ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n                change y by (((y position) + (110)) / (-15))\n                set size to (110) %\n                if <mouse down?> then\n                    broadcast (Setup v)\n                end\n            end\n        end\n    end\nend\nif <(costume [number v]) = [3]> then\n    show\n    go to [front v] layer\n    set size to (100) %\n    go to x: (0) y: (0)\n    repeat until <(PLAY) = [1]>\n        if <(costume number) = [1]> then\n            switch costume to (costume3 v)\n        end\n        if <(costume number) = [2]> then\n            switch costume to (costume6 v)\n        end\n        if <(costume number) = [3]> then\n            switch costume to (costume7 v)\n        end\n        set y to ((0) + ((10) * ([cos v] of (((timer) - (3)) * (100)) )))\n    end\n    if <(PLAY) = [1]> then\n        delete this clone\n    end\n    repeat (10)\n        if <(PLAY) = [1]> then\n            delete this clone\n        end\n        if <(costume number) = [1]> then\n            switch costume to (costume3 v)\n        end\n        if <(costume number) = [2]> then\n            switch costume to (costume6 v)\n        end\n        if <(costume number) = [3]> then\n            switch costume to (costume7 v)\n        end\n    end\nend\nif <(costume [number v]) = [4]> then\n    show\n    go to [front v] layer\n    set size to (125) %\n    go to x: (50) y: (0)\n    repeat until <(PLAY) = [1]>\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            start sound [High Whoosh v]\n            change [costume number v] by (1)\n            if <(costume number) = [5]> then\n                set [costume number v] to [1]\n            end\n            repeat (4)\n                set y to ((0) + ((10) * ([cos v] of (((timer) - (3)) * (50)) )))\n            end\n        end\n        set y to ((0) + ((10) * ([cos v] of (((timer) - (3)) * (50)) )))\n    end\nend\nif <(costume [number v]) = [5]> then\n    show\n    go to [front v] layer\n    set size to (125) %\n    go to x: (-50) y: (0)\n    repeat until <(PLAY) = [1]>\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            start sound [High Whoosh v]\n            change [costume number v] by (-1)\n            if <(costume number) = [0]> then\n                set [costume number v] to [3]\n            end\n            repeat (4)\n                set y to ((0) + ((10) * ([cos v] of (((timer) - (3)) * (50)) )))\n            end\n        end\n        set y to ((0) + ((10) * ([cos v] of (((timer) - (3)) * (50)) )))\n    end\nend\nbroadcast (play v)\ndelete this clone\n\nwhen I receive [setup v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [run code v]\nset [costume number v] to [1]\nset [play v] to [0]\nswitch costume to (costume1 v)\nshow\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (100)\nrepeat (4)\n    next costume\n    create clone of (_myself_ v)\nend\nswitch costume to (costume1 v)\nset [title size change vel v] to [90]\nforever\n    set y to ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\n    set [title size change vel v] to ((((title size change vel) * (1.6)) + (((350) - (206)) + ([cos v] of ((timer) * (100)) ))) / (2))\n    point in direction ((90) - (([cos v] of ((timer) * (100)) ) * (4)))\n    set [size v] to ((((size) * (1.6)) + (((40) + (([sin v] of ((timer) * (100)) ) * (4))) + (-2))) / (2))\n    set size to (size) %\nend\n\nwhen I receive [setup v]\nset [play v] to [1]\n\n@Leaves\n\nwhen I start as a clone\nforever\n    turn right (1.5) degrees\nend\n\nwhen I start as a clone\ngo to x: (193) y: (pick random (180) to (-180))\nswitch costume to (pick random (1) to (2))\nshow\nset size to (pick random (10) to (30)) %\nglide (pick random (5) to (10)) secs to x: (-240) y: (y position)\ndelete this clone\n\nwhen I receive [run code v]\nhide\nrepeat until <(backdrop [number v]) = [2]>\n    wait (pick random (0.1) to (0.5)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [setup v]\nhide\ndelete this clone\n\n@Shop\n\nwhen I receive [setup v]\nhide variable [money v]\nshow\ngo to [front v] layer\ngo [forward v] (7) layers\nforever\n    if <(costume [number v]) = [1]> then\n        repeat until <touching (mouse-pointer v)?>\n            change size by (((size) + (-100)) / (-5))\n        end\n        repeat until <not <touching (mouse-pointer v)?>>\n            change size by (((size) + (-115)) / (-5))\n        end\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (Open Store v)\n    show variable [money v]\nend\nif <(costume [number v]) = [2]> then\n    if <(bought katana?) = [no]> then\n        if <(Money) > [2]> then\n            set [1 v] to [1]\n            change [money v] by (-3)\n            set [weapon number v] to [1]\n            set [bought katana? v] to [yes]\n            change [weapon max v] by (1)\n            switch costume to (costume9 v)\n            broadcast (1 v)\n        else\n            show\n        end\n    end\nend\nif <(costume [number v]) = [3]> then\n    if <(bought shuriken?) = [no]> then\n        if <(Money) > [4]> then\n            set [2 v] to [1]\n            change [money v] by (-5)\n            set [weapon number v] to [2]\n            set [bought shuriken? v] to [yes]\n            change [weapon max v] by (1)\n            switch costume to (costume10 v)\n            broadcast (2 v)\n        else\n            show\n        end\n    end\nend\nif <(costume [number v]) = [4]> then\n    if <(bought musket?) = [no]> then\n        if <(Money) > [9]> then\n            set [3 v] to [1]\n            change [money v] by (-10)\n            set [weapon number v] to [3]\n            set [bought musket? v] to [yes]\n            change [weapon max v] by (1)\n            switch costume to (costume11 v)\n            broadcast (3 v)\n        else\n            show\n        end\n    end\nend\nif <(costume [number v]) = [5]> then\n    if <(bought toilet paper?) = [no]> then\n        if <(Money) > [24]> then\n            set [4 v] to [1]\n            change [money v] by (-25)\n            set [weapon number v] to [4]\n            set [bought toilet paper? v] to [yes]\n            change [weapon max v] by (1)\n            switch costume to (costume7 v)\n            broadcast (4 v)\n        else\n            show\n        end\n    end\nend\nif <(costume [number v]) = [6]> then\n    broadcast (Close Store v)\nend\n\nwhen I receive [open store v]\ngo to x: (-50) y: (-90)\nif <(bought katana?) = [yes]> then\n    switch costume to (costume9 v)\nelse\n    switch costume to (costume2 v)\nend\nif <(bought shuriken?) = [yes]> then\n    create clone of (_myself_ v)\n    switch costume to (costume10 v)\nelse\n    create clone of (_myself_ v)\n    switch costume to (costume3 v)\nend\nif <(bought musket?) = [yes]> then\n    create clone of (_myself_ v)\n    switch costume to (costume11 v)\nelse\n    create clone of (_myself_ v)\n    switch costume to (costume4 v)\nend\nif <(bought toilet paper?) = [yes]> then\n    create clone of (_myself_ v)\n    switch costume to (costume7 v)\nelse\n    create clone of (_myself_ v)\n    switch costume to (costume5 v)\nend\ncreate clone of (_myself_ v)\nswitch costume to (costume8 v)\n\nwhen I start as a clone\ngo to [front v] layer\n\nwhen I receive [close store v]\ngo to x: (-10) y: (-140)\nswitch costume to (costume1 v)\nhide variable [money v]\ndelete this clone\n\nwhen I receive [reset v]\nswitch costume to (costume1 v)\n\nwhen I receive [run code v]\ngo to x: (-10) y: (-140)\nswitch costume to (costume1 v)\nhide variable [money v]\nset [weapon number v] to [0]\nset [bought katana? v] to [no]\nset [bought shuriken? v] to [no]\nset [bought musket? v] to [no]\nset [bought toilet paper? v] to [no]\nset [money v] to [0]\nhide\n\nwhen I receive [level up! v]\nbroadcast (Close Store v)\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Enemies\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [blue guy switch v]\nif <(costume [number v]) = [1]> then\n    switch costume to (costume3 v)\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [1]> then\n        if <(distance to [player v]) < [115]> then\n            if <(dead) = [0]> then\n                switch costume to (weapon1 v)\n                set [katana rotation v] to ((direction) / (90))\n                create clone of (_myself_ v)\n                switch costume to (costume1 v)\n            end\n        end\n        wait until <[115] < (distance to [player v])>\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nshow\nset [enemyx v] to [0]\nset [enemyy v] to [0]\nset [dead v] to [0]\nif <(costume [number v]) < [7]> then\n    forever\n        switch costume to ((Clone#) + (1))\n        if <<touching (sword v)?> or <[-170] > (y position)>> then\n            point in direction (90)\n            clear graphic effects\n            set rotation style [all around v]\n            set [dead v] to [1]\n            repeat (20)\n                turn right (15) degrees\n                change y by (10)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        change [enemyy v] by (-1)\n        if <touching (lava v)?> then\n            change [enemyy v] by (2)\n        end\n        set rotation style [left-right v]\n        if <([x position v] of [player v]) < ((x position) - (50))> then\n            change [enemyx v] by (-0.2)\n            point in direction (-90)\n        end\n        if <((x position) - (-20)) < ([x position v] of [player v])> then\n            change [enemyx v] by (0.2)\n            point in direction (90)\n        end\n        set [enemyx v] to ((Enemyx) * (0.9))\n        change x by (Enemyx)\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n        end\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n        end\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n        end\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (1)\n        end\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by (-4)\n            change x by ((Enemyx) * (-1))\n            if <((y position) - (-40)) < ([y position v] of [player v])> then\n                set [enemyy v] to [15]\n                if <([abs v] of (Enemyx) ) = (Enemyx)> then\n                    set [enemyx v] to [-3]\n                else\n                    set [enemyx v] to [3]\n                end\n            else\n                set [enemyx v] to [0]\n            end\n        end\n        change y by (Enemyy)\n        if <<touching (ground v)?> or <touching (moving platforms v)?>> then\n            change y by ((Enemyy) - ((Enemyy) * (2)))\n            set [enemyy v] to [0]\n        end\n        change y by (-1)\n        if <<((y position) - (-50)) < ([y position v] of [player v])> and <touching (moving platforms v)?>> then\n            set [enemyy v] to [14]\n        end\n        change y by (1)\n        switch costume to (Clone#)\n        if <<<touching (shuriken v)?> or <touching (musket v)?>> or <touching (golden toilet paper v)?>> then\n            point in direction (90)\n            clear graphic effects\n            set rotation style [all around v]\n            set [dead v] to [1]\n            repeat (20)\n                turn right (15) degrees\n                change y by (10)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        if <touching (trampoline v)?> then\n            set [enemyy v] to [20]\n        end\n    end\nelse\n    if <(costume [number v]) = [7]> then\n        set rotation style [all around v]\n        if <(Katana rotation) = [1]> then\n            set size to (150) %\n            point in direction (30)\n            repeat (5)\n                turn right (30) degrees\n                switch costume to (weapon1 v)\n                broadcast (Blue guy switch v)\n                if <touching (player v)?> then\n                    broadcast (Restart v)\n                end\n            end\n        else\n            set size to (150) %\n            point in direction (150)\n            repeat (5)\n                turn right (-30) degrees\n                switch costume to (weapon2 v)\n                broadcast (Blue guy switch v)\n                if <touching (player v)?> then\n                    broadcast (Restart v)\n                end\n            end\n        end\n        delete this clone\n    else\n        if <(costume [number v]) = [9]> then\n            clear graphic effects\n            set rotation style [all around v]\n            point towards (player v)\n            repeat until <<touching (_edge_ v)?> or <<touching (ground v)?> or <touching (moving platforms v)?>>>\n                move (10) steps\n                if <touching (player v)?> then\n                    broadcast (Restart v)\n                end\n            end\n            repeat (10)\n                change [ghost v] effect by (10)\n                if <touching (player v)?> then\n                    broadcast (Restart v)\n                end\n            end\n            delete this clone\n        else\n            if <(costume [number v]) = [10]> then\n                clear graphic effects\n                set rotation style [all around v]\n                point towards (player v)\n                repeat until <<touching (_edge_ v)?> or <<touching (ground v)?> or <touching (moving platforms v)?>>>\n                    move (15) steps\n                    if <touching (player v)?> then\n                        broadcast (Restart v)\n                    end\n                end\n                repeat (10)\n                    change [ghost v] effect by (10)\n                    if <touching (player v)?> then\n                        broadcast (Restart v)\n                    end\n                end\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [3]> then\n        if <(dead) = [0]> then\n            switch costume to (weapon3 v)\n            set [katana rotation v] to ((direction) / (90))\n            create clone of (_myself_ v)\n            switch costume to (costume2 v)\n        end\n        wait (1.5) seconds\n    end\nend\n\nwhen I receive [restart v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [5]> then\n        if <(dead) = [0]> then\n            switch costume to (costume7 v)\n            set [katana rotation v] to ((direction) / (90))\n            create clone of (_myself_ v)\n            switch costume to (yelo neja v)\n        end\n        wait (1) seconds\n    end\nend\n\nwhen I receive [setup enemies v]\ngo to [back v] layer\ngo [forward v] (10) layers\nif <(LEVEL) = [1]> then\n    hide\nend\nif <(LEVEL) = [2]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [1]\n    switch costume to (costume1 v)\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [3]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [1]\n    switch costume to (costume1 v)\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [4]> then\n    hide\nend\nif <(LEVEL) = [5]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [3]\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [6]> then\n    hide\nend\nif <(LEVEL) = [7]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [1]\n    create clone of (_myself_ v)\n    go to x: (140) y: (-65)\n    set [clone# v] to [3]\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [8]> then\n    go to x: (140) y: (50)\n    set [clone# v] to [1]\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [9]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [1]\n    create clone of (_myself_ v)\n    go to x: (140) y: (-65)\n    set [clone# v] to [3]\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [10]> then\n    hide\nend\nif <(LEVEL) = [11]> then\n    hide\nend\nif <(LEVEL) = [12]> then\n    go to x: (140) y: (-65)\n    set [clone# v] to [1]\n    create clone of (_myself_ v)\n    go to x: (140) y: (-65)\n    set [clone# v] to [3]\n    create clone of (_myself_ v)\nend\nif <(LEVEL) = [13]> then\n    hide\nend\nif <(LEVEL) = [14]> then\n    hide\nend\n\nwhen I receive [level up! v]\nbroadcast (Setup Enemies v)\n\nwhen I receive [restart v]\nbroadcast (Setup Enemies v)\n\nwhen I receive [setup enemies v]\ndelete this clone\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Lava\n\nwhen I receive [run code v]\nforever\n    set [tide v] to [0]\n    repeat (10)\n        change [tide v] by (0.1)\n    end\n    repeat (20)\n        change [tide v] by (-0.1)\n    end\n    repeat (10)\n        change [tide v] by (0.1)\n    end\nend\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (1) layers\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\nforever\n    switch costume to (LEVEL)\n    change y by (tide)\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sword\n\ndefine Swing\nshow\nif <([direction v] of [player v]) = [90]> then\n    set size to (150) %\n    point in direction (30)\n    repeat (7)\n        turn right (20) degrees\n        switch costume to (swing v)\n        go to (player v)\n        broadcast (switch costume v)\n    end\nelse\n    set size to (150) %\n    point in direction (150)\n    repeat (7)\n        turn right (-20) degrees\n        switch costume to (swing2 v)\n        go to (player v)\n        broadcast (switch costume v)\n    end\nend\nhide\n\nwhen I start as a clone\nforever\n    show\n    point in direction (90)\n    switch costume to (swing3 v)\n    set size to (200) %\n    repeat (10)\n        change y by (1)\n    end\n    repeat (20)\n        change y by (-1)\n    end\n    repeat (10)\n        change y by (1)\n    end\n    go to x: (-45) y: (19)\nend\n\nwhen I receive [setup v]\nforever\n    if <<(Weapon Number) = [1]> and <key (space v) pressed?>> then\n        Swing\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [flash v]\nif <(Weapon Number) = [1]> then\n    Swing\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Shuriken\n\nwhen I receive [setup v]\nforever\n    if <<(Weapon Number) = [2]> and <key (space v) pressed?>> then\n        create clone of (_myself_ v)\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I start as a clone\ngo to (player v)\nshow\nset size to (150) %\nclear graphic effects\nif <([direction v] of [player v]) = [90]> then\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <touching (moving platforms v)?>>\n        change x by (10)\n    end\nelse\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <touching (moving platforms v)?>>\n        change x by (-10)\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [run code v]\nhide\ndelete this clone\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Musket\n\nwhen I receive [setup v]\ngo to [front v] layer\ngo [backward v] (1) layers\nset rotation style [left-right v]\nswitch costume to (costume1 v)\nforever\n    if <(Weapon Number) = [3]> then\n        show\n        go to (player v)\n        point in direction (player direction)\n        if <key (space v) pressed?> then\n            go to (player v)\n            create clone of (_myself_ v)\n            wait (0.2) seconds\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\ngo to (player v)\nshow\nset size to (150) %\nclear graphic effects\nswitch costume to (costume2 v)\nif <([direction v] of [player v]) = [90]> then\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <<touching (enemies v)?> or <touching (moving platforms v)?>>>\n        change x by (10)\n    end\nelse\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <<touching (enemies v)?> or <touching (moving platforms v)?>>>\n        change x by (-10)\n    end\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [run code v]\nhide\ndelete this clone\n\nwhen I receive [setup v]\nhide\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Golden Toilet Paper\n\nwhen I receive [setup v]\nforever\n    if <<(Weapon Number) = [4]> and <key (space v) pressed?>> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume1 v)\ngo to (player v)\nshow\nset size to (150) %\nclear graphic effects\nif <([direction v] of [player v]) = [90]> then\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <touching (moving platforms v)?>>\n        change x by (10)\n    end\nelse\n    repeat until <<<touching (_edge_ v)?> or <touching (ground v)?>> or <touching (moving platforms v)?>>\n        change x by (-10)\n    end\nend\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [run code v]\nhide\ndelete this clone\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Words\n\nwhen I receive [setup v]\ngo to [front v] layer\ngo [forward v] (7) layers\ngo to x: (0) y: (0)\nset [level v] to [1]\nshow\nforever\n    switch costume to (LEVEL)\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Skip\n\nwhen this sprite clicked\nbroadcast (skip v)\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [setup v]\nset size to (90) %\npoint in direction (90)\ngo to x: (95) y: (-140)\ngo to [front v] layer\ngo [forward v] (5) layers\nset [ghost v] effect to (0)\nswitch costume to (1 v)\nshow\nforever\n    forever\n        repeat until <touching (mouse-pointer v)?>\n            change size by (((size) + (-100)) / (-5))\n        end\n        repeat until <not <touching (mouse-pointer v)?>>\n            change size by (((size) + (-115)) / (-5))\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Retry\n\nwhen I receive [run code v]\nhide\n\nwhen this sprite clicked\nbroadcast (restart v)\n\nwhen I receive [setup v]\nset size to (90) %\npoint in direction (90)\ngo to x: (190) y: (-140)\ngo to [front v] layer\ngo [forward v] (6) layers\nset [ghost v] effect to (0)\nswitch costume to (1 v)\nshow\nforever\n    forever\n        repeat until <touching (mouse-pointer v)?>\n            change size by (((size) + (-100)) / (-5))\n        end\n        repeat until <not <touching (mouse-pointer v)?>>\n            change size by (((size) + (-115)) / (-5))\n        end\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Sound\n\nwhen this sprite clicked\nbroadcast (volume toggle v)\nnext costume\n\nwhen I receive [volume toggle v]\nif <(costume [number v]) = [2]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\nwhen I receive [setup v]\nset size to (90) %\npoint in direction (90)\ngo to x: (-180) y: (140)\ngo to [front v] layer\ngo [backward v] (3) layers\nset [ghost v] effect to (0)\nswitch costume to (1 v)\nshow\nforever\n    forever\n        repeat until <touching (mouse-pointer v)?>\n            change size by (((size) + (-100)) / (-5))\n        end\n        repeat until <not <touching (mouse-pointer v)?>>\n            change size by (((size) + (-115)) / (-5))\n        end\n    end\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [run code v]\nstop all sounds\nplay sound [Beautiful Japanese Music - Glow of the Moon v] until done\nplay sound [Beautiful Japanese Music - Japanese Festival v] until done\n\nwhen I receive [setup v]\nstop all sounds\nplay sound [Epic Japanese Music - Samurai Warrior v] until done\nplay sound [For the Daimyo - Shogun II Total War OST v] until done\nplay sound [Epic Japanese Music - Shadow Ninja v] until done\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Moving Platforms\n\ndefine Glide (x) (y)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    set [move::x v] to (((x) - (x position)) / (12))\n    set [move::y v] to (((y) - (y position)) / (12))\n    change x by (Move::X)\n    change y by (Move::Y)\n    change y by (3)\n    if <touching (player v)?> then\n        broadcast (Move player v)\n    end\n    change y by (-3)\nend\n\nwhen I receive [restart v]\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [level up! v]\ngo to [front v] layer\ngo [backward v] (8) layers\nif <(LEVEL) = [1]> then\n    hide\nend\nif <(LEVEL) = [2]> then\n    hide\nend\nif <(LEVEL) = [3]> then\n    hide\nend\nif <(LEVEL) = [4]> then\n    switch costume to (costume1 v)\n    go to x: (-25) y: (-139)\n    repeat until <not <(LEVEL) = [4]>>\n        Glide [-25] [-139]\n        Glide [120] [-22]\n        show\n    end\nend\nif <(LEVEL) = [5]> then\n    switch costume to (costume2 v)\n    go to x: (-60) y: (53)\n    repeat until <not <(LEVEL) = [5]>>\n        Glide [-60] [53]\n        Glide [-60] [-138]\n        show\n    end\nend\nif <(LEVEL) = [6]> then\n    hide\nend\nif <(LEVEL) = [7]> then\n    hide\nend\nif <(LEVEL) = [8]> then\n    hide\nend\nif <(LEVEL) = [9]> then\n    hide\nend\nif <(LEVEL) = [10]> then\n    hide\nend\nif <(LEVEL) = [11]> then\n    hide\nend\nif <(LEVEL) = [12]> then\n    hide\nend\nif <(LEVEL) = [13]> then\n    switch costume to (costume3 v)\n    go to x: (-70) y: (53)\n    repeat until <not <(LEVEL) = [13]>>\n        Glide [-70] [55]\n        Glide [-70] [-138]\n        show\n    end\nend\nif <(LEVEL) = [14]> then\n    hide\nend\n\nwhen I receive [run code v]\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\n@Golden Toilet\n\nwhen I start as a clone\nswitch costume to (glow v)\nshow\nrepeat until <(LEVEL) > [14]>\n    set [ghost v] effect to (20)\n    go to x: (125) y: (0)\n    turn right (3) degrees\nend\ndelete this clone\n\nwhen I receive [run code v]\nhide\ndelete this clone\n\nwhen I receive [setup v]\nhide\nwait until <(LEVEL) = [14]>\nswitch costume to (toilet v)\ncreate clone of (_myself_ v)\ngo to x: (125) y: (0)\npoint in direction (90)\nset [ghost v] effect to (0)\nshow\nrepeat until <not <(LEVEL) = [14]>>\n    if <touching (player v)?> then\n        broadcast (end v)\n        hide\n        stop [other scripts in sprite v]\n    end\nend\nhide\n\nwhen I receive [setup v]\ndelete this clone\n\nwhen I receive [end v]\ndelete this clone\n\n@Outro\n\nwhen I receive [main outro v]\ngo to x: (0) y: (0)\nswitch costume to (heart v)\ncreate clone of (_myself_ v)\nswitch costume to (star v)\ncreate clone of (_myself_ v)\nswitch costume to (follow v)\ncreate clone of (_myself_ v)\nswitch costume to (remix v)\ncreate clone of (_myself_ v)\nswitch costume to (thanks v)\ncreate clone of (_myself_ v)\nswitch costume to (0 v)\ncreate clone of (_myself_ v)\nswitch costume to (arrows v)\ncreate clone of (_myself_ v)\nswitch costume to (background v)\nif <(costume [number v]) = [6]> then\n    \n        glide (2) secs to x: (-300) y: (-150)\n        go to x: (0) y: (0)\n    end\nend\n\ndefine Smoth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    wait (3.6) seconds\n    go to [front v] layer\n    repeat (4)\n        change [ghost v] effect by (-25)\n    end\n    broadcast (Main Outro v)\n    repeat (4)\n        change [ghost v] effect by (25)\n    end\n    hide\nend\nif <(costume [number v]) = [3]> then\n    go to x: (-125) y: (-15)\n    show\n    go to [front v] layer\n    clear graphic effects\n    set [ghost v] effect to (0)\n    go [backward v] (1) layers\n    forever\n        change y by ([cos v] of ((p) / (4)) )\n        change [p v] by (5)\n        set size to ((([cos v] of ((timer) * (100)) ) * (5)) + (50)) %\n    end\nend\nif <(costume [number v]) = [4]> then\n    go to x: (0) y: (0)\n    show\n    clear graphic effects\n    set [ghost v] effect to (0)\n    forever\n        change y by ([cos v] of ((p) / (2)) )\n        change [p v] by (5)\n    end\nend\nif <(costume [number v]) = [5]> then\n    go to x: (0) y: (100)\n    show\n    set size to (100) %\n    set [ghost v] effect to (0)\n    point in direction (90)\n    set [title size change velocity v] to [90]\n    forever\n        set y to ((([cos v] of ((timer) * (100)) ) * (5)) + (100))\n        set [title size change velocity v] to ((((title size change velocity) * (1.6)) + (((350) - (206)) + ([cos v] of ((timer) * (100)) ))) / (2))\n        point in direction ((90) - (([cos v] of ((timer) * (100)) ) * (4)))\n        set [size v] to ((((Size) * (1.6)) + (((40) + (([cos v] of ((timer) * (100)) ) * (4))) + (-2))) / (2))\n        set size to (Size) %\n    end\nend\nif <(costume [name v]) = [Heart]> then\n    hide\n    show\n    set [ghost v] effect to (0)\n    point in direction (90)\n    forever\n        go to x: (20) y: (0)\n        point in direction ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n        set size to (((size) + (-500)) / (-5)) %\n    end\nend\nif <(costume [name v]) = [Star]> then\n    hide\n    show\n    set [ghost v] effect to (0)\n    point in direction (90)\n    forever\n        go to x: (140) y: (0)\n        point in direction ((([cos v] of ((timer) * (100)) ) * (-5)) + (90))\n        set size to (((size) + (-500)) / (-5)) %\n    end\nend\nif <(costume [name v]) = [Follow]> then\n    hide\n    show\n    set [ghost v] effect to (0)\n    forever\n        go to x: (20) y: (-95)\n        point in direction ((([cos v] of ((timer) * (100)) ) * (-5)) + (90))\n        set size to (((size) + (-500)) / (-5)) %\n    end\nend\nif <(costume [name v]) = [Remix]> then\n    hide\n    show\n    set [ghost v] effect to (0)\n    forever\n        go to x: (140) y: (-95)\n        point in direction ((([cos v] of ((timer) * (100)) ) * (5)) + (90))\n        set size to (((size) + (-500)) / (-5)) %\n    end\nend\n\nwhen I receive [end v]\nshow\nstart sound [Wake Up - MBB \[Vlog No Copyright Music\] v]\nset [p v] to [5]\nswitch costume to (fade v)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\nswitch costume to (outro v)\nset size to (100) %\ngo to x: (0) y: (-345)\nhide\nwait (0.3) seconds\nshow\nSmoth Glide x: [0] y: [0] speed: [9]\n\nwhen I receive [run code v]\nhide\n\n