NATURE | -a scrolling platformer-       #Games#All

Instructions: 54 ON TRENDING !!!\n\nHello Guys, I Finally Present My 100 Followers Special \n                NATURE | -a scrolling platformer- \n\n\nI Just Got Inspired By The Outside Which Belongs To @0014049 And Found A Great Engine Which Is By @corpcooga And His Friends @AidanA21 + @Plant2\nThanks To All Of Them!\n\nINSTRUCTIONS :-\n*Avoid Spikes, Saws\n*Bounce On Trampolines\n*Collect All Coins\n*Kill Enemies\n*Use Money To Buy Skins From Shop\n*Have Fun!\n*Like And Star This Project   :  )\n\nMORE STUFF :-\n* Sorry For Being Really Late In Sharing The Game As We Faced Too Many Glitches In Testing And The School Did Not Help Either So Iam Really Sorry But Hope U Like It  : )\n \nSHOUTOUTS:-\n* @corpcooga + @AidanA21 + @Plant2\n* @EGHQ + @250119code2\n\nCREDITS:-\n@griffpatch for The Engine\n@-Auron- For The Enemy Design\nThe Rest Is By Me And My Collabers!\n\nTAGS:-\n#NATURE#a#scrolling#platformer#3#way#collab#corpcooga#Plant2#AidanA21#EGHQ#250119code2#Trending\n\nHave Fun!          Mahdi Out   (-_-)

@Stage\n\nwhen flag clicked\nswitch backdrop to (empty v)\n\nwhen I receive [play game v]\nclear graphic effects\nstop all sounds\nswitch backdrop to (gameplay v)\nwait (5) seconds\nforever\n    play sound [Nebula v] until done\nend\n\nwhen I receive [intro finished v]\nswitch backdrop to (home v)\nset [ghost v] effect to (50)\nwait (2) seconds\nplay sound [Home Page Music v] until done\n\nwhen I receive [play game v]\nwait (1) seconds\nforever\n    play sound [Birds Sounds v] until done\nend\n\n@Lag Reducer\n\n@Intro\n\nwhen flag clicked\nset [intro1 v] to [0]\nset [intro2 v] to [0]\nset [intro3 v] to [0]\nset volume to (100) %\nstart sound [Xenogenesis v]\nswitch costume to (blank v)\nset [id v] to [1]\nrepeat (18)\n    create clone of (_myself_ v)\n    change [id v] by (1)\nend\nwait (13) seconds\nbroadcast (Intro finished v)\nrepeat (20)\n    change volume by (-5)\nend\nstop all sounds\n\nwhen I start as a clone\nif <(Id) = [1]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (164)\n    wait (0) seconds\n    show\n    glide (0.2) secs to x: (0) y: (164)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (164)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [2]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (134)\n    wait (0.2) seconds\n    show\n    glide (0.2) secs to x: (0) y: (134)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (134)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [3]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (104)\n    wait (0.4) seconds\n    show\n    glide (0.2) secs to x: (0) y: (104)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (104)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [4]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (74)\n    wait (0.6) seconds\n    show\n    glide (0.2) secs to x: (0) y: (74)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (74)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [5]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (44)\n    wait (0.8) seconds\n    show\n    glide (0.2) secs to x: (0) y: (44)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (44)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [6]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (14)\n    wait (1.0) seconds\n    show\n    glide (0.2) secs to x: (0) y: (14)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (14)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [7]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-24)\n    wait (1.2) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-24)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-24)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [8]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-54)\n    wait (1.4) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-54)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-54)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [9]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-84)\n    wait (1.6) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-84)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-84)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [10]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-114)\n    wait (1.8) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-114)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-114)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [11]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-144)\n    wait (2) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-144)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-144)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [12]> then\n    hide\n    switch costume to (backdrop v)\n    go to x: (-1000) y: (-174)\n    wait (2.2) seconds\n    show\n    glide (0.2) secs to x: (0) y: (-174)\n    wait (10) seconds\n    glide (0.2) secs to x: (1000) y: (-174)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [15]> then\n    go to [front v] layer\n    set size to (100) %\n    hide\n    switch costume to (logo white bg v)\n    go to x: (0) y: (-400)\n    wait (2) seconds\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((110) - (size)) / (2))\n    end\n    repeat (180)\n        change [intro1 v] by (10)\n        point in direction ((90) + (([sin v] of (Intro1) ) * (20)))\n    end\n    repeat (10)\n        change size by (((100) - (size)) / (2))\n    end\n    go to x: (0) y: (-1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [16]> then\n    set size to (100) %\n    hide\n    switch costume to (shine v)\n    go to x: (0) y: (-400)\n    wait (2) seconds\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((500) - (size)) / (3))\n    end\n    repeat (180)\n        turn right (4) degrees\n    end\n    repeat (10)\n        change size by (((100) - (size)) / (3))\n    end\n    go to x: (0) y: (-1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [14]> then\n    set [ghost v] effect to (40)\n    set size to (100) %\n    hide\n    switch costume to (logo shadow v)\n    go to x: (0) y: (-400)\n    wait (2) seconds\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((110) - (size)) / (2))\n    end\n    repeat (180)\n        change [intro1 v] by (10)\n        point in direction ((90) + (([sin v] of (Intro1) ) * (20)))\n    end\n    repeat (10)\n        change size by (((100) - (size)) / (2))\n    end\n    go to x: (0) y: (-1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [13]> then\n    set [ghost v] effect to (50)\n    set size to (100) %\n    hide\n    switch costume to (blur-er v)\n    go to x: (0) y: (400)\n    wait (1.7) seconds\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((110) - (size)) / (2))\n    end\n    repeat (170)\n    repeat (10)\n        change size by (((100) - (size)) / (2))\n    end\n    go to x: (0) y: (1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [17]> then\n    set size to (100) %\n    hide\n    switch costume to (name v)\n    go to x: (0) y: (-400)\n    wait (2) seconds\n    go to [front v] layer\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((110) - (size)) / (2))\n    end\n    repeat (180)\n        change [intro3 v] by (0.05)\n        set y to (([cos v] of ((Intro3) * (200)) ) * (10))\n    end\n    repeat (10)\n        change size by (((100) - (size)) / (2))\n    end\n    go to x: (0) y: (-1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Id) = [18]> then\n    set size to (100) %\n    set [ghost v] effect to (40)\n    hide\n    switch costume to (name shadow v)\n    go to x: (0) y: (-400)\n    wait (2) seconds\n    show\n    wait (0.15) seconds\n    repeat (35)\n        change y by ((y position) / (-5))\n    end\n    repeat (10)\n        change size by (((110) - (size)) / (2))\n    end\n    repeat (180)\n        change [intro3 v] by (0.05)\n        set y to (([cos v] of ((Intro3) * (200)) ) * (10))\n    end\n    repeat (10)\n        change size by (((100) - (size)) / (2))\n    end\n    go to x: (0) y: (-1)\n    repeat (35)\n        change y by ((y position) / (5))\n    end\n    delete this clone\nend\n\n@Title\n\nwhen flag clicked\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [play game v]\nstop [other scripts in sprite v]\nrepeat until <(y position) > [320]>\n    change y by (((400) - (y position)) / (4))\n    change [ghost v] effect by (((0) - (size)) / (8))\nend\nhide\nstop [this script v]\n\nwhen I receive [intro finished v]\nshow\nset size to (100) %\nset [ghost v] effect to (20)\ngo to x: (0) y: (0)\n\nwhen I receive [credits v]\nhide\n\n@Play Button\n\nwhen flag clicked\nhide\n\nwhen I receive [instructions v]\ngo to x: (564536456) y: (24562546245)\nhide\n\nwhen I receive [back v]\ngo to x: (0) y: (-50)\nshow\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n        change size by (((120) - (size)) / (4))\n    else\n        set [ghost v] effect to (50)\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen I receive [intro finished v]\nreset timer\nshow\ngo to [front v] layer\ngo to x: (0) y: (-50)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\nend\n\nwhen I receive [intro finished v]\nset size to (100) %\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n        if <touching (mouse-pointer v)?> then\n            broadcast (Play game v)\n            stop [other scripts in sprite v]\n            repeat until <(size) < [6]>\n                change size by (((0) - (size)) / (4))\n                change [ghost v] effect by (((0) - (size)) / (8))\n            end\n            hide\n            go to x: (6746574657) y: (7456745674567)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [credits v]\ngo to x: (564536456) y: (24562546245)\nhide\n\n@Instructions Button\n\nwhen I receive [back v]\ngo to x: (-150) y: (-50)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [6]>\n    change size by (((0) - (size)) / (4))\n    change [ghost v] effect by (((0) - (size)) / (8))\nend\nhide\nstop [this script v]\n\nwhen I receive [intro finished v]\nshow\ngo to x: (-150) y: (-50)\nset size to (100) %\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\nend\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n        change size by (((120) - (size)) / (4))\n    else\n        set [ghost v] effect to (50)\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [intro finished v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n        if <touching (mouse-pointer v)?> then\n            broadcast (instructions v)\n            hide\n            go to x: (564536345) y: (63456435654)\n        end\n    end\nend\n\n@Credits Button\n\nwhen I receive [back v]\ngo to x: (150) y: (-50)\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nstop [other scripts in sprite v]\nrepeat until <(size) < [6]>\n    change size by (((0) - (size)) / (4))\n    change [ghost v] effect by (((0) - (size)) / (8))\nend\nhide\nstop [this script v]\n\nwhen I receive [intro finished v]\nshow\ngo to x: (150) y: (-50)\nset size to (100) %\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\nend\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (30)\n        change size by (((120) - (size)) / (4))\n    else\n        set [ghost v] effect to (50)\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen I receive [intro finished v]\nforever\n    if <touching (mouse-pointer v)?> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [intro finished v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n        if <touching (mouse-pointer v)?> then\n            broadcast (credits v)\n            hide\n            go to x: (564536345) y: (63456435654)\n        end\n    end\nend\n\n@Instructions\n\nwhen flag clicked\nhide\n\nwhen I receive [instructions v]\nset size to (instructionssize) %\nset [ghost v] effect to (0)\nshow\nrepeat until <<mouse down?> and <touching (mouse-pointer v)?>>\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (4))\n    else\n        change size by (((100) - (size)) / (4))\n    end\nend\nrepeat until <not <mouse down?>>\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (4))\n    else\n        change size by (((100) - (size)) / (4))\n    end\nend\nif <touching (mouse-pointer v)?> then\n    set [instructionssize v] to [200]\n    broadcast (back v)\n    repeat until <[200] < (size)>\n        change size by (((200) - (size)) / (4))\n        change [ghost v] effect by (((200) - (size)) / (4))\n    end\n    hide\nelse\n    set [instructionssize v] to [100]\n    broadcast (instructions v)\nend\n\nwhen I receive [play game v]\nhide\n\nwhen flag clicked\nset [instructionssize v] to [200]\ngo to x: (0) y: (0)\nset size to (100) %\n\n@Credits\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\nhide\n\nwhen flag clicked\nset [creditssize v] to [200]\ngo to x: (0) y: (0)\nset size to (100) %\n\nwhen I receive [credits v]\nset size to (creditssize) %\nset [ghost v] effect to (0)\nshow\nrepeat until <<mouse down?> and <touching (mouse-pointer v)?>>\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (4))\n    else\n        change size by (((100) - (size)) / (4))\n    end\nend\nrepeat until <not <mouse down?>>\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (4))\n    else\n        change size by (((100) - (size)) / (4))\n    end\nend\nif <touching (mouse-pointer v)?> then\n    set [creditssize v] to [200]\n    broadcast (back v)\n    repeat until <[200] < (size)>\n        change size by (((200) - (size)) / (4))\n        change [ghost v] effect by (((200) - (size)) / (4))\n    end\n    hide\nelse\n    set [creditssize v] to [100]\n    broadcast (instructions v)\nend\n\n@Guy\n\nwhen I receive [play game v]\nset [usedskip? v] to [0]\nset [mobileskip v] to [0]\nset [level v] to [1]\nshow\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game on\n    repeat until <<<(EXIT) > []> or <key (p v) pressed?>> or <(mobileskip) = [1]>>\n        Tick\n        broadcast (Tick v)\n    end\n    if <<key (p v) pressed?> and <not <(LEVEL) = [6]>>> then\n        set [exit v] to [A win win]\n        set [usedskip? v] to [1]\n    end\n    if <<(mobileskip) = [1]> and <not <(LEVEL) = [6]>>> then\n        set [exit v] to [A win win]\n        set [usedskip? v] to [1]\n    end\n    if <(EXIT) = [A win win]> then\n        broadcast (win YOO XD v)\n        Game - Win\n        set [mobileskip v] to [0]\n    else\n        Game - Stats\n    end\nend\n\ndefine Game on\nswitch costume to (1 v)\nset rotation style [left-right v]\npoint in direction (-90)\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [x v] to [-180]\nset [y v] to [78]\nset [speedy v] to [0]\nset [sx v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\ndefine Tick\nswitch costume to (hitbox v)\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<<mouse down?> and <(mouse x) > (x position)>> and <<(touchingattack?) = [0]> and <(moveable) = [1]>>>> then\n    set [lastkeypressed v] to [right]\n    change [sx v] by (1.7)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n    set [lastkeypressed v] to [left]\n    change [sx v] by (-1.7)\nend\nif <([abs v] of (sx) ) > [0.9]> then\n    Change player x by (round (sx))\nend\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(In air) < [4]> then\n        set [speedy v] to [16]\n    end\nend\nif <<<mouse down?> and <(y position) < (mouse y)>> and <(moveable) = [1]>> then\n    if <(In air) < [4]> then\n        set [speedy v] to [16]\n    end\nend\nif <(Speedy) > [-20]> then\n    change [speedy v] by (-1.5)\nend\nChange player y by (Speedy)\nDead?\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 Y) < [0]> then\n    set [scroll y v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (6)))\nPosition\nif <touching (trampoline v)?> then\n    set [speedy v] to [30]\nend\npoint in direction (90)\nif <(Equipped) = [none]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> and <(moveable) = [1]>>>> then\n        if <<(lastkeypressed) = [left]> and <<mouse down?> and <(mouse x) > (x position)>>> then\n            switch costume to (normalleft v)\n        else\n            switch costume to (normalright v)\n        end\n    else\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n            switch costume to (normalleft v)\n        else\n            switch costume to (normalfront v)\n        end\n    end\nend\nif <(Equipped) = [blue]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> and <(moveable) = [1]>>>> then\n        switch costume to (blueright v)\n    else\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n            switch costume to (blueleft v)\n        else\n            switch costume to (bluefront v)\n        end\n    end\nend\nif <(Equipped) = [twill]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> and <(moveable) = [1]>>>> then\n        switch costume to (twillright v)\n    else\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n            switch costume to (twillleft v)\n        else\n            switch costume to (twillfront v)\n        end\n    end\nend\nif <(Equipped) = [lime]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> and <(moveable) = [1]>>>> then\n        switch costume to (limeright v)\n    else\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n            switch costume to (limeleft v)\n        else\n            switch costume to (limefront v)\n        end\n    end\nend\nif <(Equipped) = [green]> then\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> and <(moveable) = [1]>>>> then\n        switch costume to (greenright v)\n    else\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < (x position)>> and <(moveable) = [1]>>> then\n            switch costume to (greenleft v)\n        else\n            switch costume to (greenfront v)\n        end\n    end\nend\nset [sx v] to ((sx) * (0.8))\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <<touching (levels v)?> or <touching (moving platforms 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 [speedy 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 (levels v)?> or <touching (moving platforms v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<touching (levels v)?> or <touching (moving platforms v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <<touching (levels v)?> or <touching (moving platforms 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 - Stats\nset [dead? v] to [1]\nset [ghost v] effect to (0)\nstart sound [Bonk v]\nset [y v v] to [15]\nif <(Equipped) = [none]> then\n    switch costume to (normalfront v)\nend\nif <(Equipped) = [blue]> then\n    switch costume to (bluefront v)\nend\nif <(Equipped) = [twill]> then\n    switch costume to (twillfront v)\nend\nif <(Equipped) = [lime]> then\n    switch costume to (limefront v)\nend\nif <(Equipped) = [green]> then\n    switch costume to (greenfront v)\nend\nrepeat until <(y position) < [-90]>\n    set rotation style [all around v]\n    change [ghost v] effect by (3)\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nrepeat until <(y position) < [-178]>\n    set rotation style [all around v]\n    change [ghost v] effect by (5)\n    turn right (10) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [dead? v] to [0]\nbroadcast (ded boiz v)\nhide\nchange [your total coins v] by ((Collect) * (-1))\n\ndefine Dead?\nif <<touching (obstacles v)?> or <<touching (lava v)?> or <<touching (saws v)?> or <<touching (enemies v)?> and <(invincible) = [0]>>>>> then\n    broadcast (HIDEWHIP v)\n    set [exit v] to [Die \(other way\)]\nend\n\ndefine Game - Win\nif <<<key (p v) pressed?> or <(mobileskip) = [1]>> and <not <(LEVEL) = [6]>>> then\n    change [level v] by (1)\nelse\n    set rotation style [all around v]\n    repeat (20)\n        point towards (goal v)\n        turn right (65) degrees\n        move ((distance to [goal v]) / (2)) steps\n        change size by (-2)\n        change [ghost v] effect by (5)\n    end\n    change [level v] by (1)\n    set [guyskilledthislevel v] to [0]\n    hide\n    set [ghost v] effect to (0)\n    set size to (100) %\nend\n\nwhen flag clicked\nset [dead? v] to [0]\nhide\n\n@Levels\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 1 v)\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (3 1 v)\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (4 1 v)\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (5 1 v)\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (6 v)\n                        Position x: [450] y: [0]\n                    end\n                end\n            end\n        end\n    end\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]\ndelete this clone\n\ndefine Position x: (x) y: (y)\nhide\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\n\n@obstacles\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [setup v]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 1 v)\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (3 1 v)\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (4 1 v)\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (5 1 v)\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (6 v)\n                        Position x: [450] y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position x: (x) y: (y)\nhide\nset [brightness v] effect to (-10)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\n@Saws\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    point in direction ((90) + (([sin v] of ((line) * (2)) ) * (300)))\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\nforever\n    change [line v] by (1)\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone 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\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]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nwait (0) seconds\nif <(LEVEL) = [2]> then\n    Clone x: [871] y: [100]\nelse\n    if <(LEVEL) = [3]> then\n        Clone x: [1130] y: [-40]\n    else\n        if <(LEVEL) = [4]> then\n            Clone x: [780] y: [165]\n            Clone x: [1060] y: [-90]\n        else\n            if <(LEVEL) = [5]> then\n                Clone x: [281] y: [-30]\n            end\n        end\n    end\nend\nset [y v] to [-99999999999]\n\n@Decor\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\ngo [backward v] (50) layers\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [setup v]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 1 v)\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (3 1 v)\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (4 1 v)\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (5 1 v)\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (6 v)\n                        Position x: [450] y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\nset [ghost v] effect to (0)\ngo to [back v] layer\n\n@Level Shading\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset [ghost v] effect to (100)\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [setup v]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (1 1 v)\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\n    Position x: [450] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 1 v)\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n        Position x: [450] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (3 1 v)\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n            Position x: [450] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (4 1 v)\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n                Position x: [450] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (5 1 v)\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                    Position x: [450] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (6 v)\n                        Position x: [450] y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nhide\n\nwhen I start as a clone\nset [ghost v] effect to (70)\n\n@Trampoline\n\nwhen I start as a clone\nshow\nswitch costume to (1 v)\nforever\n    if <<touching (guy v)?> and <(dead?) = [0]>> then\n        start sound [Big Boing v]\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\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\ndefine Clone 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 [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nwait (0) seconds\nif <(LEVEL) = [3]> then\n    Clone x: [1536] y: [-20]\nelse\n    if <(LEVEL) = [4]> then\n        Clone x: [1482] y: [-20]\n        Clone x: [672] y: [-20]\n    else\n        if <(LEVEL) = [5]> then\n            Clone x: [1086] y: [-2]\n        end\n    end\nend\nset [y v] to [-99999999999]\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\n@Collectibles\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (guy v)?> then\n    start sound [Coin v]\n    change [collect v] by (1)\n    change [your total coins v] by (1)\n    if <<(Collect) = (Max Collect)> and <(badguysded) = (badguymax)>> then\n        broadcast (OPEN PORtAL v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nset [ghost v] effect to (0)\nset size to (100) %\nset [y v] to [0]\nset [x v] to [0]\nset [collect v] to [0]\nset [max collect v] to [0]\nif <(LEVEL) = [1]> then\n    wait (0) seconds\n    Clone x: [10] y: [30]\n    Clone x: [540] y: [50]\n    Clone x: [873] y: [81]\n    Clone x: [1184] y: [76]\nelse\n    if <(LEVEL) = [2]> then\n        wait (0) seconds\n        Clone x: [449] y: [339]\n        Clone x: [538] y: [65]\n        Clone x: [859] y: [194]\n        Clone x: [1447] y: [100]\n    else\n        if <(LEVEL) = [3]> then\n            wait (0) seconds\n            Clone x: [185] y: [74]\n            Clone x: [478] y: [38]\n            Clone x: [820] y: [46]\n            Clone x: [1124] y: [51]\n            Clone x: [1529] y: [300]\n            change [max collect v] by (-6)\n        else\n            if <(LEVEL) = [4]> then\n                wait (0) seconds\n                Clone x: [0] y: [0]\n                Clone x: [206] y: [131]\n                Clone x: [775] y: [253]\n            else\n                if <(LEVEL) = [5]> then\n                    wait (0) seconds\n                    Clone x: [273] y: [81]\n                    Clone x: [1259] y: [257]\n                    Clone x: [1672] y: [51]\n                    change [max collect v] by (-3)\n                else\n                    if <(LEVEL) = [6]> then\n                end\n            end\n        end\n    end\nend\nset [y v] to [-99999999999]\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]\ndelete this clone\n\ndefine Clone x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (100) %\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [your total coins v] to [0]\nhide\n\n@Lava\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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 [setup v]\nset [y v] to [0]\nset [x v] to [0]\nrepeat (20)\n    Position x: [450] y: [0]\nend\n\ndefine Position x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\n@Enemies\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nset [badguysded v] to [0]\nset [badguymax v] to [0]\nwait (0) seconds\nif <(LEVEL) = [4]> then\n    Clone x: [548] y: [-18]\n    Clone x: [1077] y: [35]\nelse\n    if <(LEVEL) = [5]> then\n        Clone x: [966] y: [0]\n    end\nend\nset [y v] to [-99999999999]\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\nchange [your total coins v] by ((guyskilledthislevel) * (-1))\nset [guyskilledthislevel v] to [0]\ndelete this clone\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset [invincible v] to [0]\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [badguymax v] by (1)\nset [badguycos v] to [0]\ncreate clone of (_myself_ v)\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 start as a clone\nif <(size) = [100]> then\n    show\n    set rotation style [left-right v]\n    forever\n        point in direction (90)\n        set [badguycos v] to [1]\n        wait (1) seconds\n        set [badguycos v] to [2]\n        repeat (10)\n            if <not <touching (whip v)?>> then\n                change [x v] by (4)\n            end\n        end\n        set [badguycos v] to [1]\n        wait (1) seconds\n        set [badguycos v] to [3]\n        repeat (10)\n            if <not <touching (whip v)?>> then\n                change [x v] by (-4)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(size) = [100]> then\n    forever\n        switch costume to (hitbox v)\n        if <touching (whip v)?> then\n            set [invincible v] to [1]\n            change [badguysded v] by (1)\n            if <<(Collect) = (Max Collect)> and <(badguysded) = (badguymax)>> then\n                broadcast (OPEN PORtAL v)\n            end\n            switch costume to (badguycos)\n            start sound [Bonk v]\n            set size to (50) %\n            create clone of (_myself_ v)\n            set size to (100) %\n            change [guyskilledthislevel v] by (1)\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            set [invincible v] to [0]\n            delete this clone\n        end\n        switch costume to (badguycos)\n    end\nend\n\nwhen I start as a clone\nif <(size) = [50]> then\n    change [your total coins v] by (1)\n    switch costume to (coin v)\n    set size to (100) %\n    repeat (10)\n        change [y v] by (10)\n        change [ghost v] effect by (10)\n        change size by (((140) - (size)) / (2))\n    end\n    change [y v] by (-100)\n    delete this clone\nend\n\n@Whip\n\nwhen I receive [tick v]\ngo to (guy v)\n\nwhen flag clicked\nset [lastkeypressed v] to [right]\nset [latestdir v] to [45]\nforever\n    if <<([costume # v] of [guy v]) = [2]> or <<([costume # v] of [guy v]) = [5]> or <<([costume # v] of [guy v]) = [8]> or <<([costume # v] of [guy v]) = [11]> or <([costume # v] of [guy v]) = [14]>>>>> then\n        set [whipdir v] to (latestdir)\n    else\n        if <(lastkeypressed) = [right]> then\n            set [whipdir v] to [45]\n        else\n            if <(lastkeypressed) = [left]> then\n                set [whipdir v] to [-45]\n            end\n        end\n    end\n    set [latestdir v] to (whipdir)\nend\n\nwhen I receive [play game v]\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo [forward v] (10) layers\nhide\nforever\n    go to x: (0) y: (0)\n    if <<key (space v) pressed?> and <(dead?) = [0]>> then\n        set [ghost v] effect to (100)\n        show\n        if <(whipdir) = [45]> then\n            point in direction (45)\n        else\n            point in direction (-45)\n        end\n        switch costume to (costume1 v)\n        repeat (5)\n            change [ghost v] effect by (-20)\n        end\n        if <(whipdir) = [45]> then\n            repeat until <(direction) > [120]>\n                turn right (((130) - (direction)) / (4)) degrees\n                switch costume to (costume2 v)\n            end\n        else\n            repeat until <(direction) < [-120]>\n                turn right (((-130) - (direction)) / (4)) degrees\n                switch costume to (costume3 v)\n            end\n        end\n        switch costume to (costume2 v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [hidewhip v]\nhide\n\nwhen I receive [attack v]\nset [ghost v] effect to (100)\nshow\nif <(whipdir) = [45]> then\n    point in direction (45)\nelse\n    point in direction (-45)\nend\nswitch costume to (costume1 v)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\nif <(whipdir) = [45]> then\n    repeat until <(direction) > [120]>\n        turn right (((130) - (direction)) / (4)) degrees\n        switch costume to (costume2 v)\n    end\nelse\n    repeat until <(direction) < [-120]>\n        turn right (((-130) - (direction)) / (4)) degrees\n        switch costume to (costume3 v)\n    end\nend\nswitch costume to (costume2 v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nset [ghost v] effect to (0)\n\nwhen I receive [reset v]\nset [lastkeypressed v] to [right]\n\n@Goal\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [1]> and <touching (guy v)?>> then\n    set [exit v] to [A win win]\nend\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nwait (0) seconds\nif <(LEVEL) = [1]> then\n    switch costume to (2 v)\n    Portal x: [1960] y: [77]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 v)\n        Portal x: [1643] y: [98]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (2 v)\n            Portal x: [1700] y: [175]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (2 v)\n                Portal x: [1485] y: [230]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (2 v)\n                    Portal x: [1800] y: [170]\n                else\n                    switch costume to (2 v)\n                    Portal x: [5634563456456345] y: [57345634563]\n                end\n            end\n        end\n    end\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\ndefine Portal x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play game v]\ngo to [back v] layer\nshow\n\n@Transition Screen\n\nwhen I receive [play game v]\nset [situation v] to [1]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    broadcast (go to the front boiz v)\nend\n\nwhen I receive [ded boiz v]\nset [situation v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I receive [win yoo xd v]\nset [situation v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(SITUATION) = [1]> then\n    set [clickpossible v] to [0]\n    show\n    wait (0.8) seconds\n    set [clickpossible v] to [1]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    clear graphic effects\n    broadcast (coin reveal v)\n    delete this clone\nelse\n    if <(SITUATION) = [2]> then\n        set [clickpossible v] to [0]\n        show\n        wait (0.7) seconds\n        set [clickpossible v] to [1]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        clear graphic effects\n        delete this clone\n    else\n        if <(SITUATION) = [3]> then\n            if <(usedskip?) = [0]> then\n                set [clickpossible v] to [0]\n                wait (0.7) seconds\n                show\n                wait (0.8) seconds\n                set [clickpossible v] to [0]\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                hide\n                clear graphic effects\n                set [usedskip? v] to [0]\n                delete this clone\n            else\n                show\n                set [clickpossible v] to [0]\n                wait (0.8) seconds\n                set [clickpossible v] to [1]\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                hide\n                clear graphic effects\n                set [usedskip? v] to [0]\n                delete this clone\n            end\n        end\n    end\nend\n\nwhen I receive [go to the front boiz v]\ngo to [front v] layer\n\n@Skip Button\n\nwhen flag clicked\ngo to x: (6736435634) y: (6354645)\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (4))\n    else\n        change size by (((80) - (size)) / (4))\n    end\nend\n\nwhen I receive [play game v]\nset size to (80) %\ngo to x: (-140) y: (140)\nshow\nswitch costume to (costume1 v)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\nend\n\nwhen I receive [shop boiz v]\nrepeat until <(x position) < [-240]>\n    change x by (((-260) - (x position)) / (2))\nend\nhide\ngo to x: (-24352345234) y: (-243524351)\n\nwhen I receive [shopbacktogame v]\npoint in direction (90)\ngo to x: (-300) y: (140)\nshow\nrepeat until <(x position) > [-140]>\n    change x by (((-135) - (x position)) / (4))\nend\ngo to x: (-140) y: (140)\n\nwhen I receive [play game v]\nforever\n    if <<touching (mouse-pointer v)?> and <(clickpossible) = [1]>> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nset [skipbeingtouched v] to [0]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [moveable v] to [0]\n        set [skipbeingtouched v] to [0]\n    else\n        set [skipbeingtouched v] to [0]\n        if <<(shopshown?) = [0]> and <(shopbeingtouched) = [0]>> then\n            set [moveable v] to [1]\n        end\n    end\nend\n\nwhen I receive [play game v]\nwait (0) seconds\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n        if <touching (mouse-pointer v)?> then\n            set [mobileskip v] to [1]\n        end\n    end\n    if <(LEVEL) = [6]> then\n        forever\n            hide\n            stop [other scripts in sprite v]\n        end\n    end\nend\n\n@Shop\n\nwhen flag clicked\nset [shopshown? v] to [0]\nforever\n    if <<touching (mouse-pointer v)?> and <(costume [number v]) = [2]>> then\n        change size by (((90) - (size)) / (4))\n    else\n        change size by (((80) - (size)) / (4))\n    end\nend\n\nwhen I start as a clone\nif <(shopID) = [1]> then\n    set [suceededgetout v] to [0]\n    set [shopshown? v] to [1]\n    go [forward v] (1) layers\n    set size to (100) %\n    point in direction (90)\n    go to x: (0) y: (-300)\n    switch costume to (shop v)\n    repeat until <(y position) > [-1]>\n        change y by (((0) - (y position)) / (3))\n    end\n    go to x: (0) y: (0)\n    repeat until <<not <touching (mouse-pointer v)?>> and <mouse down?>>\n        set [moveable v] to [0]\n    end\n    wait until <not <mouse down?>>\n    if <not <touching (mouse-pointer v)?>> then\n        set [moveable v] to [1]\n        broadcast (shopclear v)\n        repeat until <(y position) < [-280]>\n            change y by (((-300) - (y position)) / (6))\n        end\n        set [shopshown? v] to [0]\n        broadcast (shopbacktogame v)\n        set [suceededgetout v] to [1]\n        delete this clone\n    else\n        repeat until <(suceededgetout) = [1]>\n            wait until <mouse down?>\n            wait until <not <mouse down?>>\n            if <touching (mouse-pointer v)?> then\n                set [suceededgetout v] to [0]\n                wait until <not <mouse down?>>\n            else\n                if <not <touching (mouse-pointer v)?>> then\n                    set [moveable v] to [1]\n                    broadcast (shopclear v)\n                    repeat until <(y position) < [-280]>\n                        change y by (((-300) - (y position)) / (6))\n                    end\n                    set [shopshown? v] to [0]\n                    broadcast (shopbacktogame v)\n                    set [suceededgetout v] to [1]\n                    delete this clone\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [shopbacktogame v]\nswitch costume to (shopbutton v)\ngo to x: (-300) y: (140)\nreset timer\npoint in direction (90)\nshow\nrepeat until <(x position) > [-200]>\n    change x by (((-195) - (x position)) / (4))\nend\ngo to x: (-200) y: (140)\n\nwhen I receive [play game v]\nset size to (100) %\ngo to x: (-200) y: (140)\nshow\nswitch costume to (shopbutton v)\nforever\n    point in direction ((([sin v] of ((timer) * (200)) ) * (5)) + (90))\nend\n\nwhen flag clicked\nset [moveable v] to [1]\ndelete all of [skins you have v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nforever\n    if <<touching (mouse-pointer v)?> and <(clickpossible) = [1]>> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I start as a clone\nif <(shopID) = [2]> then\n    go to [front v] layer\n    set size to (100) %\n    point in direction (90)\n    switch costume to (blue v)\n    forever\n        go to x: (-130) y: (0)\n        if <not <[skins you have v] contains [blue]?>> then\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            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                set [brightness v] effect to (0)\n                wait until <not <mouse down?>>\n                if <touching (mouse-pointer v)?> then\n                    if <(YOUR TOTAL COINS) > [3]> then\n                        start sound [Register v]\n                        add [blue] to [skins you have v]\n                        change [your total coins v] by (-4)\n                        switch costume to (equippedblue v)\n                        set [equipped v] to [blue]\n                    else\n                        start sound [Clang v]\n                    end\n                end\n            end\n        else\n            if <(Equipped) = [blue]> then\n                switch costume to (equippedblue v)\n                set [brightness v] effect to (15)\n            else\n                switch costume to (boughtblue v)\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                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    set [brightness v] effect to (0)\n                    wait until <not <mouse down?>>\n                    if <touching (mouse-pointer v)?> then\n                        set [equipped v] to [blue]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(shopID) = [3]> then\n    go to [front v] layer\n    set size to (100) %\n    point in direction (90)\n    switch costume to (twill v)\n    forever\n        go to x: (40) y: (0)\n        if <not <[skins you have v] contains [twill]?>> then\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            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                set [brightness v] effect to (0)\n                wait until <not <mouse down?>>\n                if <touching (mouse-pointer v)?> then\n                    if <(YOUR TOTAL COINS) > [7]> then\n                        start sound [Register v]\n                        add [twill] to [skins you have v]\n                        change [your total coins v] by (-8)\n                        switch costume to (equippedtwill v)\n                        set [equipped v] to [twill]\n                    else\n                        start sound [Clang v]\n                    end\n                end\n            end\n        else\n            if <(Equipped) = [twill]> then\n                switch costume to (equippedtwill v)\n                set [brightness v] effect to (15)\n            else\n                switch costume to (boughttwill v)\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                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    set [brightness v] effect to (0)\n                    wait until <not <mouse down?>>\n                    if <touching (mouse-pointer v)?> then\n                        set [equipped v] to [twill]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(shopID) = [4]> then\n    go to [front v] layer\n    set size to (100) %\n    point in direction (90)\n    switch costume to (lime v)\n    forever\n        go to x: (-130) y: (-100)\n        if <not <[skins you have v] contains [lime]?>> then\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            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                set [brightness v] effect to (0)\n                wait until <not <mouse down?>>\n                if <touching (mouse-pointer v)?> then\n                    if <(YOUR TOTAL COINS) > [9]> then\n                        start sound [Register v]\n                        add [lime] to [skins you have v]\n                        change [your total coins v] by (-10)\n                        switch costume to (equippedtwill v)\n                        set [equipped v] to [lime]\n                    else\n                        start sound [Clang v]\n                    end\n                end\n            end\n        else\n            if <(Equipped) = [lime]> then\n                switch costume to (equippedlime v)\n                set [brightness v] effect to (15)\n            else\n                switch costume to (boughtlime v)\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                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    set [brightness v] effect to (0)\n                    wait until <not <mouse down?>>\n                    if <touching (mouse-pointer v)?> then\n                        set [equipped v] to [lime]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(shopID) = [5]> then\n    go to [front v] layer\n    set size to (100) %\n    point in direction (90)\n    switch costume to (green v)\n    forever\n        go to x: (40) y: (-100)\n        if <not <[skins you have v] contains [green]?>> then\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            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                set [brightness v] effect to (0)\n                wait until <not <mouse down?>>\n                if <touching (mouse-pointer v)?> then\n                    if <(YOUR TOTAL COINS) > [14]> then\n                        start sound [Register v]\n                        add [green] to [skins you have v]\n                        change [your total coins v] by (-15)\n                        switch costume to (equippedtwill v)\n                        set [equipped v] to [green]\n                    else\n                        start sound [Clang v]\n                    end\n                end\n            end\n        else\n            if <(Equipped) = [green]> then\n                switch costume to (equippedgreen v)\n                set [brightness v] effect to (15)\n            else\n                switch costume to (boughtgreen v)\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                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    set [brightness v] effect to (0)\n                    wait until <not <mouse down?>>\n                    if <touching (mouse-pointer v)?> then\n                        set [equipped v] to [green]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [shopclear v]\nif <not <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>>> then\n    delete this clone\nend\n\nwhen I receive [reset v]\nbroadcast (shopbacktogame v)\ndelete this clone\n\ndefine shopfast\nset [shopid v] to [1]\nrepeat (4)\n    change [shopid v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nset [shopbeingtouched v] to [0]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [shopbeingtouched v] to [1]\n        set [moveable v] to [0]\n    else\n        set [shopbeingtouched v] to [0]\n        if <<(shopshown?) = [0]> and <(skipbeingtouched) = [0]>> then\n            set [moveable v] to [1]\n        end\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n        if <touching (mouse-pointer v)?> then\n            set [shopid v] to [1]\n            create clone of (_myself_ v)\n            broadcast (shop boiz v)\n            repeat until <(x position) < [-240]>\n                change x by (((-260) - (x position)) / (2))\n            end\n            shopfast\n            hide\n            go to x: (-24352345234) y: (-243524351)\n        end\n    end\nend\n\n@Clouds\n\nwhen I receive [play game v]\nforever\n    wait (pick random (6) to (9)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [cloud speed v] to (pick random (1) to (2))\nset [cloud direction v] to (pick random (1) to (2))\nswitch costume to (pick random (1) to (3))\nset size to (pick random (70) to (100)) %\nset [ghost v] effect to (60)\nif <(cloud direction) = [1]> then\n    go to x: (239) y: (pick random (120) to (150))\n    repeat until <(x position) < [-239]>\n        change x by ((cloud speed) * (-1))\n    end\n    delete this clone\nelse\n    go to x: (-239) y: (pick random (120) to (150))\n    repeat until <(x position) > [239]>\n        change x by (cloud speed)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide\n\n@Background\n\ndefine Bg Clone\nrepeat (3)\n    create clone of (_myself_ v)\n    next costume\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nhide\n\nwhen I start as a clone\nshow\nforever\n    go to [back v] layer\n    go to x: ((((costume [number v]) - (1)) * (480)) + ((SCROLL X) / (-5))) y: ((SCROLL Y) / (-5))\n    Position ((((costume [number v]) - (1)) * (480)) + ((SCROLL X) / (-5))) ((SCROLL Y) / (-5))\nend\n\nwhen I receive [play game v]\nset [ghost v] effect to (40)\nswitch costume to (1 v)\nBg Clone\nforever\n    go to [back v] layer\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\n@TN\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    set [ghost v] effect to (100)\nend\n\n@Attack Button\n\nwhen flag clicked\nset [touchingattack? v] to [0]\nhide\n\nwhen I receive [play game v]\ngo to x: (200) y: (-158)\nset size to (100) %\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((110) - (size)) / (4))\n        set [touchingattack? v] to [1]\n    else\n        change size by (((100) - (size)) / (4))\n        set [touchingattack? v] to [0]\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <<touching (mouse-pointer v)?> and <(clickpossible) = [1]>> then\n        start sound [Wood Tap v]\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        broadcast (attack v)\n        repeat until <not <mouse down?>>\n            change size by (((70) - (size)) / (4))\n        end\n    end\nend\n\n@Money\n\nwhen flag clicked\nset [your total coins v] to [0]\nset [equipped v] to [none]\nhide\n\nwhen I start as a clone\nif <(size) = [100]> then\n    forever\n        go to [front v] layer\n        go to x: (193) y: (156)\n        set size to (35) %\n        if <<((round ((YOUR TOTAL COINS) * (100))) / (100)) = [10]> or <((round ((YOUR TOTAL COINS) * (100))) / (100)) > [10]>> then\n            show\n            switch costume to (letter (1) of (YOUR TOTAL COINS))\n        else\n            hide\n        end\n        set [brightness v] effect to (100)\n    end\nend\n\nwhen I start as a clone\nif <(size) = [99]> then\n    wait () seconds\n    go to [front v] layer\n    set size to (35) %\n    switch costume to (0 v)\n    set [brightness v] effect to (100)\n    go to x: (263) y: (156)\n    show\n    repeat (10)\n        change x by (((193) - (x position)) / (3))\n    end\n    forever\n        go to [front v] layer\n        set size to (35) %\n        show\n        if <(YOUR TOTAL COINS) < [10]> then\n            go to x: (193) y: (156)\n            switch costume to (letter (1) of (YOUR TOTAL COINS))\n        else\n            go to x: (207) y: (156)\n            switch costume to (letter (2) of (YOUR TOTAL COINS))\n        end\n        set [brightness v] effect to (100)\n    end\nend\n\nwhen I receive [coin reveal v]\nset size to (100) %\ncreate clone of (_myself_ v)\nset size to (99) %\ncreate clone of (_myself_ v)\nset size to (98) %\ncreate clone of (_myself_ v)\nset size to (97) %\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(size) = [98]> then\n    wait () seconds\n    set size to (100) %\n    go to [front v] layer\n    switch costume to (money v)\n    go to x: (263) y: (157)\n    show\n    repeat (10)\n        change x by (((165) - (x position)) / (3))\n    end\n    forever\n        go to x: (165) y: (157)\n        set size to (100) %\n        show\n        switch costume to (money v)\n    end\nend\n\nwhen I start as a clone\nif <(size) = [97]> then\n    go to [front v] layer\n    go [backward v] (1) layers\n    wait () seconds\n    set size to (100) %\n    switch costume to (shading v)\n    go to x: (100) y: (0)\n    show\n    repeat (10)\n        change x by (((0) - (x position)) / (3))\n    end\n    forever\n        go to x: (0) y: (0)\n        set size to (100) %\n        show\n        switch costume to (shading v)\n        set [ghost v] effect to (0)\n    end\nend\n\n@Moving Platforms\n\nwhen I receive [tick v]\nchange [mvph v] by (1)\nPosition (((x) - (SCROLL X)) + (([cos v] of (MVPH) ) * (90))) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [max collect v] to [0]\nhide\nset [collect v] to [0]\nset [y v] to [0]\nset [x v] to [0]\nwait (0) seconds\nif <(LEVEL) = [3]> then\n    Clone x: [200] y: [-32]\n    Clone x: [800] y: [-32]\nelse\n    if <(LEVEL) = [5]> then\n        Clone x: [570] y: [27]\n    else\n    end\nend\nset [y v] to [-99999999999]\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]\nset [mvph v] to [100000]\ndelete this clone\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\ndefine Clone x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (100) %\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\n@Moving Shadow\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [max collect v] to [0]\nhide\nset [collect v] to [0]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [3]> then\n    wait (0) seconds\n    Clone x: [200] y: [-32]\n    Clone x: [800] y: [-32]\nelse\n    if <(LEVEL) = [5]> then\n        wait (0) seconds\n        Clone x: [570] y: [27]\n    end\nend\nset [y v] to [-99999999999]\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]\ndelete this clone\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\ngo to [back v] layer\nPosition (((x) - (SCROLL X)) + (([cos v] of (MVPH) ) * (90))) ((y) - (SCROLL Y))\ngo [forward v] (4) layers\n\ndefine Clone x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (100) %\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [ghost v] effect to (70)\n\n@Moving Decor\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nset [max collect v] to [0]\nhide\nset [collect v] to [0]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [3]> then\n    wait (0) seconds\n    Clone x: [200] y: [-32]\n    Clone x: [800] y: [-32]\nelse\n    if <(LEVEL) = [5]> then\n        Clone x: [570] y: [27]\n    end\nend\nset [y v] to [-99999999999]\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]\ndelete this clone\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\ngo to [back v] layer\nPosition (((x) - (SCROLL X)) + (([cos v] of (MVPH) ) * (90))) ((y) - (SCROLL Y))\ngo [forward v] (4) layers\n\ndefine Clone x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (100) %\nset [x v] to (x)\nset [y v] to (y)\nchange [max collect v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [ghost v] effect to (0)\n\n