ᴡᴏʀʟᴅ ᴋɴɪɢʜᴛ: ᴅᴀʀᴋɴᴇss - Scrolling Platformer/Platformer (#All  #Games)

Instructions: || ᴡᴇʟᴄᴏᴍᴇ ᴛᴏ ᴡᴏʀʟᴅ ᴋɴɪɢʜᴛ : ᴅᴀʀᴋɴᴇss ᴇᴅɪᴛɪᴏɴ || \nᴘʟᴇᴀsᴇ ᴅᴏᴜʙʟᴇ ᴄʟɪᴄᴋ ᴛʜᴇ ғʟᴀɢ ᴛʜᴇʀᴇ ᴀʀᴇ sᴏᴍᴇ ɢʟɪᴛᴄʜᴇs ᴛʜᴀᴛ ᴡɪʟʟ ᴏᴄᴄᴜʀ ɪғ ʏᴏᴜ ᴅᴏɴ'ᴛ... ɴᴏᴡ, ᴡɪᴛʜ ᴛʜᴀᴛ ᴏᴜᴛ ᴏғ ᴛʜᴇ ᴡᴀʏ, ᴇɴᴊᴏʏ! :) \n>ɪɴsᴛʀᴜᴄᴛɪᴏɴs< \nᴡ,ᴀ,ᴅ ᴋᴇʏs ᴏʀ ᴀʀʀᴏᴡ ᴋᴇʏs ᴛᴏ ᴍᴏᴠᴇ. ᴀᴠᴏɪᴅ ᴀɴʏᴛʜɪɴɢ ᴛʜᴀᴛ ʟᴏᴏᴋs ᴅᴀɴɢᴇʀᴏᴜs. ʏᴏᴜ ᴄᴀɴ ᴡᴀʟᴋ ᴛʜʀᴏᴜɢʜ ᴀɴʏᴛʜɪɴɢ ɪғ ɪɴᴠɪɴᴄɪʙɪʟɪᴛʏ ɪs ᴏɴ (sᴡᴏʀᴅ ʙᴜᴛᴛᴏɴ) ʙᴜᴛ ɪᴛ ʟᴀsᴛs ғᴏʀ ᴛᴇɴ sᴇᴄᴏɴᴅs ᴀɴᴅ ɪᴛ ᴅᴏᴇsɴ'ᴛ ᴡᴏʀᴋ ғᴏʀ ᴘɪᴛs. ᴘᴏɪsᴏɴ ᴅᴏᴇs ɴᴏᴛ ᴋɪʟʟ ʏᴏᴜ ʙᴜᴛ ɪᴛ sʟᴏᴡs ʏᴏᴜ ᴅᴏᴡɴ. ᴛʜᴇʀᴇ ᴀʀᴇ ᴛᴡᴏ ʟᴇᴠᴇʟs, ᴀ sᴄʀᴏʟʟɪɴɢ ᴏɴᴇ ᴀɴᴅ ᴀ ɴᴏʀᴍᴀʟ ᴘʟᴀᴛғᴏʀᴍᴇʀ ɪɴ ᴛʜᴇ ɴᴏʀᴍᴀʟ ᴘʟᴀᴛғᴏʀᴍᴇʀ, ᴘʀᴇss ᴛʜᴇ ᴅᴏᴡɴ ᴀʀʀᴏᴡ, s, ᴄʟɪᴄᴋ ᴏʀ sᴘᴀᴄᴇ ᴛᴏ sʟᴀsʜ ᴇɴᴇᴍɪᴇs.\n >ɢʟɪᴛᴄʜᴇs< \nᴡʜᴇɴ ʏᴏᴜ ᴄʟᴏsᴇ ᴛʜᴇ sᴇᴛᴛɪɴɢs ᴍᴇɴᴜ ᴀɴᴅ ᴏᴘᴇɴ ɪᴛ ᴀɢᴀɪɴ, ᴛʜᴇ ᴄʟᴏɴᴇ ɪᴅ ᴍᴇssᴇs ᴜᴘ. ɪғ ʏᴏᴜ ᴋɴᴏᴡ ʜᴏᴡ ᴛᴏ ғɪx ᴛʜɪs ᴛʜᴇɴ ᴘʟᴇᴀsᴇ ᴄᴏᴍᴍᴇɴᴛ. ɪғ ʏᴏᴜ ғɪɴᴅ ᴀɴʏ ᴍᴏʀᴇ, ᴄᴏᴍᴍᴇɴᴛ ᴀɴᴅ ɪ ᴡɪʟʟ ғɪx ɪᴛ. 

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (Level)\nend\n\nwhen I receive [second platform v]\nforever\n    switch backdrop to (Level)\nend\n\n@Blank\n\n@player\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\ngo to [front v] layer\nset [scroll x checkpoint2 v] to [0]\nset [scroll y checkpoint2 v] to [0]\nset [progress v] to [1]\nbroadcast (reset v) and wait\nbroadcast (setup v) and wait\nstart\nforever\n    tick\n    broadcast (tick v)\n    go to [front v] layer\n    set [p x v] to (x position)\n    set [p y v] to (y position)\n    set [p d v] to (direction)\n    if <(EXIT) = [DIE]> then\n        game over\n    end\n    if <<(Coins) = [15]> or <(Coins) > [15]>> then\n        set [invincibility? v] to [yes]\n    end\n    if <touching (end v)?> then\n        broadcast (END v)\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\ndefine game on\nbroadcast (reset v)\nbroadcast (setup v)\nset [x v] to (scroll x checkpoint2)\nset [y v] to (scroll y checkpoint2)\nset [scroll x v] to (scroll x checkpoint2)\nset [scroll y v] to (scroll y checkpoint2)\nset [sx v] to [0]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nshow\n\ndefine tick\nswitch costume to (default v)\nTest - die\nif <touching (poison v)?> then\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(mouse x) < [0]> and <(mouse y) < [170]>>>> then\n        change [sx v] by (-0.5)\n        switch costume to (left v)\n    end\nelse\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(mouse x) < [0]> and <(mouse y) < [170]>>>> then\n        change [sx v] by (-2)\n        switch costume to (left v)\n    end\nend\nif <touching (poison v)?> then\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <<(mouse x) > [0]> and <(mouse y) < [170]>>>> then\n        change [sx v] by (0.5)\n        switch costume to (right v)\n    end\nelse\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <<(mouse x) > [0]> and <(mouse y) < [170]>>>> then\n        change [sx v] by (2)\n        switch costume to (right v)\n    end\nend\nif <touching (poison v)?> then\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    change player x by (round (sx))\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nchange player y by (sy)\nTest - die\nchange [scroll x v] by (round (((x) - (scroll x)) / (8)))\nif <(scroll x) < [0]> then\n    set [scroll x v] to [0]\nend\nif <(scroll x) > [8926]> then\n    set [scroll x v] to [8926]\nend\nif <(scroll y) < [0]> then\n    set [scroll y v] to [0]\nend\nchange [scroll y v] by (round ((((y) - (scroll y)) + (50)) / (14)))\nposition\nTest - die\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n    switch costume to (up v)\nend\nif <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(mouse x) < [0]> and <(mouse y) < [170]>>>>> then\n    switch costume to (upper left v)\nend\nif <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <<(mouse x) > [0]> and <(mouse y) < [170]>>>>> then\n    switch costume to (upper right v)\nend\n\ndefine change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nposition\nrepeat until <not <touching (platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    position\n    set [sy v] to [0]\nend\n\ndefine position\ngo to x: ((x) - (scroll x)) y: ((y) - (scroll y))\n\ndefine change player x by (sx)\nchange [x v] by (sx)\nposition\nif <touching (platform v)?> then\n    repeat (12)\n        change [y v] by (1)\n        position\n        if <not <touching (platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <touching (platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        position\n    end\nend\n\ndefine game over\nset [exit v] to []\nbroadcast (machete hide v)\nstart sound [Oops v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nset [snake death v] to [0]\ngame on\n\ndefine Test - die\nif <<(Invincibility?) = [yes]> and <(Clicked?) = [yes]>> then\n    stop [this script v]\nelse\n    if <<<(y position) < [-179]> or <touching (danger v)?>> or <(snake death) = [1]>> then\n        set [exit v] to [DIE]\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [setup v]\nset size to (100) %\n\nwhen I receive [hide v]\nhide\n\nwhen flag clicked\nhide\nset [level v] to [1]\n\ndefine start\nset [invincibility? v] to [no]\nset [y v] to [0]\nset [x v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sy v] to [0]\nset [sx v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [progress v] to [0]\nswitch costume to (costume1 v)\nset size to (100) %\npoint in direction (90)\nshow\n\nwhen I receive [game on v]\ngame on\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [green flag v]\nforever\n    if <not <<(EXIT) = [win]> or <(EXIT) = [die]>>> then\n        if <key (r v) pressed?> then\n            wait until <not <key (r v) pressed?>>\n            game on\n            broadcast (reset v)\n            broadcast (setup v)\n        end\n    end\nend\n\nwhen I receive [volume on v]\nset volume to (100) %\n\nwhen I receive [volume off v]\nset volume to (0) %\n\nwhen I receive [play game v]\nforever\n    set [color v] effect to (Color)\nend\n\nforever\n    stop [this script v]\nend\n\n@platform\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\n\nwhen I receive [setup v]\ngo to [back v] layer\nset size to (100) %\nhide\nset [x v] to [0]\nset [y v] to [0]\ngo to [front v] layer\nif <(Level) = [2]> then\n    switch costume to (level 1 1 v)\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [120]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [120]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [174]\n    clone at x: [470] y: [0]\n    clone at x: [470] y: [0]\nelse\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [front v] layer\n\ndefine clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Background duplication\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\n\nwhen I receive [setup v]\ngo to [back v] layer\nset size to (100) %\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\ngo to [back v] layer\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [174]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [back v] layer\n\ndefine clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Music\n\nwhen this sprite clicked\nif <(Mute) = [1]> then\n    set [mute v] to [0]\n    switch costume to (music off v)\nelse\n    set [mute v] to [1]\n    switch costume to (music on v)\n    set volume to (100) %\nend\n\nwhen I receive [play game v]\nforever\n    if <(Mute) = [0]> then\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\ngo to x: (209) y: (143)\nhide\nswitch costume to (music on v)\ngo to [front v] layer\n\nwhen I receive [play game v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nrepeat until <(size) = [100]>\n    change size by (-10)\nend\n\nwhen I receive [play game v]\nshow\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\nend\n\nwhen flag clicked\nset [mute v] to [1]\nset volume to (100) %\nforever\n    if <(Mute) = [1]> then\n        play sound (pick random (1) to (4)) until done\n    end\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Start Screen\n\nwhen flag clicked\nshow\ngo to x: (0) y: (103)\ncreate clone of (_myself_ v)\nset [clone id v] to [start]\ncreate clone of (_myself_ v)\nset [clone id v] to [settings]\ncreate clone of (_myself_ v)\nset [clone id v] to [credits]\nswitch costume to (title v)\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\nend\n\nwhen I start as a clone\nif <(Clone ID) = [start]> then\n    show\n    switch costume to (start button v)\n    go to x: (0) y: (-10)\n    point in direction (90)\n    forever\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [120]>\n                change size by (5)\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n            end\n        end\n    end\nend\n\nwhen I receive [play game v]\nforever\n    hide\nend\n\nwhen I start as a clone\nif <(Clone ID) = [start]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            start sound [Wood Tap v]\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            change [level v] by (1)\n            broadcast (Play game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [settings]> then\n    go to x: (-150) y: (-10)\n    switch costume to (settings button v)\n    point in direction (90)\n    forever\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [120]>\n                change size by (5)\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [settings]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            start sound [Wood Tap v]\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            broadcast (Show Menu v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [settings]> then\n    switch costume to (settings button v)\n    forever\n        if <touching (mouse-pointer v)?> then\n            repeat until <(costume [number v]) = [10]>\n                next costume\n            end\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        if <(costume [number v]) = [10]> then\n            switch costume to (settings button v)\n        end\n    end\nend\n\nwhen I receive [volume on v]\nset volume to (100) %\n\nwhen I receive [volume off v]\nset volume to (0) %\n\nwhen I start as a clone\nif <(Clone ID) = [credits]> then\n    go to x: (150) y: (-10)\n    point in direction (90)\n    switch costume to (credits v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [credits]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            start sound [Wood Tap v]\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            broadcast (Credits v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [credits]> then\n    forever\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [120]>\n                change size by (5)\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n            end\n        end\n    end\nend\n\nwhen I receive [play game v]\nstop [other scripts in sprite v]\n\nwhen flag clicked\nbroadcast (Volume ON v)\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (1) layers\nset size to (100) %\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [174]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [back v] layer\ngo [forward v] (1) layers\n\ndefine clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Settings\n\nwhen I receive [show menu v]\nset [ghost v] effect to (0)\nswitch costume to (settings screen v)\nshow\nglide (0.5) secs to x: (0) y: (28)\ncreate clone of (_myself_ v)\nset [clone_control_2 v] to [click]\n\nwhen flag clicked\nset volume to (100) %\nhide\ngo to x: (0) y: (-300)\nswitch costume to (settings screen v)\n\nwhen I start as a clone\nif <(Clone_Control_2) = [click]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            start sound [Wood Tap v]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone_Control_2) = [click]> then\n    switch costume to (on v)\n    go to x: (50) y: (-85)\n    go to [front v] layer\n    forever\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [120]>\n                change size by (5)\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone_Control_2) = [click]> then\n    forever\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(costume [name v]) = [On]>> then\n            switch costume to (off v)\n            wait (0.5) seconds\n            broadcast (Volume OFF v)\n            wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(costume [name v]) = [Off]>> then\n            switch costume to (on v)\n            wait (0.5) seconds\n            broadcast (Volume ON v)\n            wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n        end\n    end\nend\n\nwhen I receive [volume on v]\nset volume to (100) %\n\nwhen I receive [volume off v]\nset volume to (0) %\n\nwhen I receive [play game v]\nhide\n\nwhen I start as a clone\nif <(Clone_Control_2) = [x_x]> then\n    show\n    switch costume to (xx_xxx_xx v)\n    go to [front v] layer\n    go to x: (-100) y: (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone_Control_2) = [x_x]> then\n    forever\n        switch costume to (xx_xxx_xx v)\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            start sound [Wood Tap v]\n            broadcast (Hide Menu v)\n        end\n    end\nend\n\nwhen I receive [hide menu v]\nhide\nset [clone_control_2 v] to [0]\ngo to x: (0) y: (-300)\ndelete this clone\n\nwhen I start as a clone\nif <(Clone_Control_2) = [_code9_]> then\n    show\n    point in direction (90)\n    go to x: (78) y: (-141)\n    go to [front v] layer\n    switch costume to (costume1 v)\nend\n\nwhen I start as a clone\nif <(Clone_Control_2) = [_code9_]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            repeat until <(size) = [100]>\n                change size by (-10)\n            end\n            start sound [Wood Tap v]\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone_Control_2) = [_code9_]> then\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            change [color v] effect by (10)\n            change [color v] by (10)\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nwhen flag clicked\nset [color v] to [0]\n\nwhen I receive [show menu v]\nset [ghost v] effect to (0)\nshow\nwait (0.5) seconds\ncreate clone of (_myself_ v)\nset [clone_control_2 v] to [_code9_]\n\nwhen I receive [show menu v]\nforever\n    if <<mouse down?> and <not <touching (mouse-pointer v)?>>> then\n        broadcast (Hide Menu v)\n    end\nend\n\n@Credits\n\nwhen I receive [credits v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\nrepeat (11)\n    change size by (9)\nend\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\nset size to (0) %\ngo to x: (0) y: (0)\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nswitch costume to (costume2 v)\ngo to [front v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (Credits Hide v)\n    end\nend\n\nwhen I receive [credits hide v]\nrepeat (10)\n    change size by (-10)\nend\nhide\n\n@  By @-Zid-\n\nwhen I start as a clone\nshow\nrepeat (100)\n    change [ghost v] effect by (-0.25)\nend\nwait (pick random (0) to (2)) seconds\nforever\n    change [ghost v] effect by (2)\nend\n\nwhen I start as a clone\nforever\n    repeat (20)\n        move (1) steps\n    end\n    turn right (pick random (-10) to (10)) degrees\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [play game v]\ngo to x: (0) y: (0)\nhide\nforever\n    go to [back v] layer\n    point in direction (pick random (-180) to (180))\n    set [ghost v] effect to (150)\n    set size to (pick random (75) to (200)) %\n    go to x: (pick random (-240) to (240)) y: (pick random (-180) to (180))\n    create clone of (_myself_ v)\n    wait (.35) seconds\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Coin$\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\nif <touching (player v)?> then\n    start sound [Collect v]\n    change [coins v] by (1)\n    delete this clone\nend\n\nwhen I receive [setup v]\ngo to [front v] layer\nset size to (100) %\nhide\nshow variable [coins v]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [coins v] to [0]\nswitch costume to (level 1 1 v)\ngo to [front v] layer\nclone at x: [-100] y: [20]\nclone at x: [-150] y: [20]\nclone at x: [121] y: [20]\nclone at x: [380] y: [20]\nclone at x: [430] y: [20]\nclone at x: [500] y: [50]\nclone at x: [600] y: [50]\nclone at x: [550] y: [50]\nclone at x: [700] y: [0]\nclone at x: [900] y: [70]\nclone at x: [950] y: [70]\nclone at x: [1100] y: [-30]\nclone at x: [1300] y: [-30]\nclone at x: [1350] y: [-30]\nclone at x: [1400] y: [-30]\nclone at x: [1500] y: [-30]\nclone at x: [1550] y: [-30]\nclone at x: [1700] y: [-30]\nclone at x: [1750] y: [-30]\nclone at x: [1800] y: [-30]\nclone at x: [1900] y: [-30]\nclone at x: [2000] y: [-30]\nclone at x: [2080] y: [-30]\nclone at x: [2150] y: [-30]\nclone at x: [2400] y: [-30]\nclone at x: [2450] y: [-30]\nclone at x: [2500] y: [-30]\nclone at x: [2700] y: [-30]\nset [x v] to [-99999]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [front v] layer\n\ndefine clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen [v v] key pressed\nset [mouse v] to (join ((mouse x) + (Scroll y)) (join [, ] ((mouse y) + (scroll y))))\n\nwhen I receive [volume off v]\nforever\n    set volume to (0) %\nend\n\nwhen I receive [volume on v]\nforever\n    set volume to (100) %\nend\n\nwhen flag clicked\nhide variable [coins v]\n\nset [coins v] to [9901934209140]\n\nwhen I receive [end v]\nhide\nhide variable [coins v]\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Ripple Click\n\nwhen flag clicked\nswitch costume to (costume9 v)\nhide\nforever\n    go to (mouse-pointer v)\nend\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        show\n        repeat until <(costume [number v]) = [9]>\n            next costume\n        end\n        switch costume to (costume9 v)\n        hide\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\nforever\n    set [color v] effect to (Color)\nend\n\n@Invincibility?\n\nwhen flag clicked\ngo to x: (155) y: (143)\nhide\nswitch costume to (not invincible v)\ngo to [front v] layer\nset [clicked? v] to [no]\n\nwhen I receive [play game v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nrepeat until <(size) = [100]>\n    change size by (-10)\nend\n\nwhen I receive [play game v]\nshow\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\nend\n\nwhen this sprite clicked\nif <<(costume [number v]) = [1]> and <(Invincibility?) = [yes]>> then\n    set [clicked? v] to [yes]\n    switch costume to (invincible v)\n    change [coins v] by (-15)\n    think [Be quick! This only lasts for 10 seconds] for (2) seconds\n    wait (8) seconds\n    switch costume to (not invincible v)\n    set [invincibility? v] to [no]\n    set [clicked? v] to [no]\nelse\n    switch costume to (not invincible v)\n    think [You need 15 coins for Invincibility] for (2) seconds\n    set [clicked? v] to [no]\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Thumbnail\n\ndefine Smooth Size: (size) speed: (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((size) - (size)) / (speed))\nend\nset size to (size) %\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\nwhen I receive [end v]\nswitch costume to (tn1 v)\nset size to [100] %\nbroadcast (Second Platform v)\n\nwhen I receive [second platform v]\nhide\nset [level v] to [2]\nchange [level v] by (1)\n\ndefine set size to (size) %\nif <(size) > [100]> then\n    switch costume to (sizehack v)\n    set size to (size) %\n    switch costume to (tn1 v)\nelse\n    switch costume to (sizehack v)\n    set size to (size) %\n    switch costume to (tn1 v)\nend\n\n@Poison\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (1) layers\nset size to (100) %\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [174]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [back v] layer\ngo [forward v] (1) layers\n\ndefine clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@END\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (scroll x)) ((y) - (scroll y))\n\nwhen I receive [setup v]\ngo to [back v] layer\ngo [forward v] (1) layers\nset size to (100) %\nhide\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (level 1 1 v)\ngo to [back v] layer\ngo [forward v] (1) layers\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [120]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\nclone at x: [470] y: [174]\nclone at x: [470] y: [0]\nclone at x: [470] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ngo to [back v] layer\ngo [forward v] (1) layers\n\ndefine clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [hide v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [the eend v]\nstop [other scripts in sprite v]\nswitch costume to (level 1 1 v)\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\nstop [this script v]\n\n@Player_Two\n\ndefine platformer physics (speed) (friction) (jump height)\nswitch costume to (passive v)\nchange [y vel. v] by (-1)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <<(mouse x) > [0]> and <(mouse y) < [170]>>>> then\n    switch costume to (right v)\n    change [x vel. v] by (speed)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <<(mouse x) < [0]> and <(mouse y) < [170]>>>> then\n    switch costume to (left v)\n    change [x vel. v] by ((speed) * (-1))\nend\nset [x vel. v] to ((x vel.) * (friction))\nchange x by (x vel.)\nset [slope v] to [0]\nif <touching (platform_two v)?> then\n    repeat until <<not <touching (platform_two v)?>> or <(slope) = [-8]>>\n        change [slope v] by (-1)\n        change y by (1)\n    end\nend\nif <touching (platform_two v)?> then\n    change y by (slope)\n    repeat until <not <touching (platform_two v)?>>\n        change x by ((([abs v] of (x vel.) ) / (x vel.)) * (-1))\n    end\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        set [y vel. v] to [13]\n        if <(x vel.) > [0]> then\n            set [x vel. v] to [-15]\n        else\n            set [x vel. v] to [15]\n        end\n    else\n        set [x vel. v] to [0]\n    end\nend\nchange y by (y vel.)\nif <touching (platform_two v)?> then\n    repeat until <not <touching (platform_two v)?>>\n        change y by ((([abs v] of (y vel.) ) / (y vel.)) * (-1))\n    end\n    set [y vel. v] to [0]\nend\nchange y by (-1)\nif <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <touching (platform_two v)?>> then\n    set [y vel. v] to [12]\nend\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    switch costume to (up v)\nend\nchange y by (1)\nif <(x position) > [215]> then\n    change [level v] by (1)\n    go to x: (X Spawn) y: (Y Spawn)\n    broadcast (Next Level v)\nend\nif <<<<touching (danger_two v)?> or <touching (saws v)?>> or <touching (enemy v)?>> or <touching (enemy2 v)?>> then\n    go to x: (X Spawn) y: (Y Spawn)\n    broadcast (You Died v)\nend\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    switch costume to (upper left v)\nend\nif <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> and <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <<(mouse x) > [0]> and <(mouse y) < [170]>>>>> then\n    switch costume to (upper right v)\nend\nif <touching (hat v)?> then\n    broadcast (Go to player v)\nend\nif <touching (portal v)?> then\n    broadcast (Absolute End v)\nend\n\nwhen I start as a clone\nswitch costume to (trail v)\nset [color v] effect to (Color)\nrepeat (4)\n    change size by (-15)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [second platform v]\nshow\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [second platform v]\npoint in direction (90)\nset size to (100) %\nshow\nset [delete clones? v] to [False]\nset [x spawn v] to [-221]\nset [y spawn v] to [-36]\nset [x vel. v] to [0]\nset [y vel. v] to [0]\ngo to x: (X Spawn) y: (Y Spawn)\nset [color v] effect to (Color)\nforever\n    platformer physics [1.2] [0.9] [12]\nend\n\nwhen flag clicked\nhide\n\nwhen [9 v] key pressed\nbroadcast (Second Platform v)\n\nwhen I receive [absolute end v]\nset [delete clones? v] to [True]\nstop [all v]\n\n@Platform_Two\n\nwhen flag clicked\nhide\n\nwhen I receive [second platform v]\nshow\ngo to x: (6) y: (-20)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Music2\n\nwhen this sprite clicked\nif <(Mute) = [1]> then\n    set [mute v] to [0]\n    switch costume to (music off v)\nelse\n    set [mute v] to [1]\n    switch costume to (music on v)\n    set volume to (100) %\nend\n\nwhen I receive [second platform v]\nforever\n    if <(Mute) = [0]> then\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\ngo to x: (209) y: (143)\nhide\nswitch costume to (music on v)\ngo to [front v] layer\n\nwhen I receive [second platform v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nrepeat until <(size) = [100]>\n    change size by (-10)\nend\n\nwhen I receive [second platform v]\nswitch costume to (music on v)\nshow\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\nend\n\nwhen I receive [second platform v]\nset [mute v] to [1]\nset volume to (100) %\nforever\n    if <(Mute) = [1]> then\n        play sound (pick random (1) to (4)) until done\n    end\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Skip\n\nwhen this sprite clicked\nchange [level v] by (1)\nbroadcast (Next Level v)\n\nwhen flag clicked\nset [level v] to [1]\ngo to x: (148) y: (144)\nhide\nswitch costume to (skip v)\ngo to [front v] layer\n\nwhen I receive [second platform v]\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (5)\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (-5)\n        end\n    end\nend\n\nwhen this sprite clicked\nrepeat until <(size) = [100]>\n    change size by (-10)\nend\n\nwhen I receive [second platform v]\nshow\nforever\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Saws\n\nwhen flag clicked\nhide\n\nwhen I receive [second platform v]\ngo to [back v] layer\nshow\nset [d v] to [0]\npoint in direction (d)\nforever\n    change [d v] by (10)\n    point in direction (d)\nend\n\nwhen I receive [second platform v]\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [second platform v]\nforever\n    go to [back v] layer\n    if <(Level) = [2]> then\n        go to x: (-57) y: (-96)\n    else\n        if <(Level) = [3]> then\n            go to x: (0) y: (-96)\n        else\n            if <(Level) = [8]> then\n                go to x: (-120) y: (-96)\n            else\n                if <(Level) = [12]> then\n                    go to x: (86) y: (-96)\n                else\n                    if <(Level) = [13]> then\n                        go to x: (-35) y: (-96)\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Danger_Two\n\nwhen flag clicked\nhide\n\nwhen I receive [second platform v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Slash\n\nwhen I receive [second platform v]\nforever\n    point towards (mouse-pointer v)\n    go to (player_two v)\nend\n\nwhen I receive [second platform v]\nforever\n    if <<mouse down?> or <<key (space v) pressed?> or <<key (s v) pressed?> or <key (down arrow v) pressed?>>>> then\n        show\n        start sound [High Whoosh v]\n        repeat (12)\n            next costume\n        end\n        wait until <not <<mouse down?> or <<key (space v) pressed?> or <<key (s v) pressed?> or <key (down arrow v) pressed?>>>>>\n    end\nend\n\nwhen I receive [volume off v]\nset volume to (0) %\n\nwhen I receive [volume on v]\nset volume to (100) %\n\nwhen I receive [second platform v]\nswitch costume to (blank v)\n\nwhen flag clicked\nhide\n\n@Enemy\n\nwhen I receive [second platform v]\ngo to [back v] layer\nshow\nset [ghost v] effect to (100)\ngo to x: (789) y: (23424234)\nforever\n    if <(Level) = [5]> then\n        set [ghost v] effect to (0)\n        switch costume to (enemy 1 v)\n        go to x: (47) y: (-75)\n        repeat (20)\n            change x by (2)\n            switch costume to (right v)\n        end\n        repeat (20)\n            change x by (-2)\n            switch costume to (left v)\n        end\n    else\n        set [ghost v] effect to (100)\n        go to x: (789) y: (23424234)\n    end\nend\n\ngo to x: (47) y: (-75)\n\nwhen I receive [second platform v]\ngo to [back v] layer\nset [ghost v] effect to (100)\nforever\n    if <touching (slash v)?> then\n        hide\n        play sound [Crunch v] until done\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nset [ghost v] effect to (0)\n\n@Enemy2\n\nwhen I receive [second platform v]\ngo to [back v] layer\nshow\nset [ghost v] effect to (100)\ngo to x: (789) y: (23424234)\nforever\n    if <(Level) = [6]> then\n        set [ghost v] effect to (0)\n        switch costume to (enemy 1 v)\n        go to x: (47) y: (-75)\n        repeat (20)\n            change x by (2)\n            switch costume to (right v)\n        end\n        repeat (20)\n            change x by (-2)\n            switch costume to (left v)\n        end\n    else\n        set [ghost v] effect to (100)\n        go to x: (789) y: (23424234)\n    end\nend\n\ngo to x: (47) y: (-75)\n\nwhen I receive [second platform v]\ngo to [back v] layer\nset [ghost v] effect to (100)\nforever\n    if <touching (slash v)?> then\n        hide\n        play sound [Crunch v] until done\n    end\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@Hat\n\ndefine Float\nchange y by (((([sin v] of ((timer) * (120)) ) * (15)) - (y position)) * (0.3))\nturn right ((((90) + (([sin v] of ((timer) * (110)) ) * (7.5))) - (direction)) * (0.3)) degrees\n\nwhen I receive [second platform v]\ngo to x: (-16) y: (-12)\nhide\nforever\n    go to [front v] layer\n    if <(Level) = [11]> then\n        switch costume to (hover v)\n        show\n        Float\n    end\nend\n\nwhen flag clicked\ngo to x: (-16) y: (-12)\nhide\n\nset [level v] to [11]\n\ndefine Go to Player\npoint in direction (90)\nswitch costume to (on player v)\ngo to (player_two v)\n\nwhen I receive [go to player v]\nforever\n    Go to Player\nend\n\nwhen I receive [absolute end v]\nhide\n\n@Portal\n\nwhen I receive [second platform v]\nhide\nset [id v] to [2]\nforever\n    if <(Level) = [14]> then\n        switch costume to (costume1 v)\n        show\n        change y by (((([sin v] of ((timer) * (120)) ) * (15)) - (y position)) * (0.3))\n        turn right (1) degrees\n        create clone of (_myself_ v)\n        set [id v] to [0]\n    end\nend\n\nset [level v] to [14]\n\nwhen I start as a clone\nif <(ID) = [2]> then\n    switch costume to (costume2 v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    forever\n        change y by (((([sin v] of ((timer) * (120)) ) * (15)) - (y position)) * (0.3))\n        turn right (2) degrees\n        if <(Delete Clones?) = [True]> then\n            delete this clone\n        end\n    end\nelse\n    delete this clone\nend\n\nset [level v] to [14]\n\nwhen I receive [absolute end v]\nhide\ndelete this clone\n\nwhen I receive [absolute end v]\nplay sound [Alan Walker - Force \[NCS Release\].mp3 v] until done\n\n@FINALLYYYYYYYYYY\n\nwhen I receive [absolute end v]\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\ndefine set size to (size) %\nif <(size) > [100]> then\n    switch costume to (sizehack v)\n    set size to (size) %\n    switch costume to (costume1 v)\nelse\n    switch costume to (sizehack v)\n    set size to (size) %\n    switch costume to (costume1 v)\nend\n\nwhen I receive [second platform v]\nhide\n\n