Adversity - A Prideful Platformer

Instructions: and the reviews are in!! " BEST GAME OF THE YEAR PHENOMONAL PERFORMANCE GRAPHICS INSANE 10/10 WOULD PLAY AGAIN!!!!! " - @snoopywoodstock13\n\n

@Stage\n\nwhen flag clicked\nbroadcast (Intro End v)\n\nwhen flag clicked\nbroadcast (Green flag v)\n\n@Assets\n\nwhen flag clicked\nchange [☁ delete me, for view purpose only v] by ((☁ delete me, for view purpose only) + (1))\n\n@Player\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Reset\n    repeat until <(EXIT) > []>\n        Tick\n        change [snoy y v] by (0)\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        set [exit v] to []\n    end\nend\n\ndefine Reset\nset [player: y v] to [-42]\nset [player: x v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [5]\nset [timout v] to [0]\nset [exit v] to []\nset rotation style [left-right v]\nshow\n\ndefine Tick\nif <touching (ladder v)?> then\n    if <not <(openmenu?) = [1]>> then\n        change [sx v] by ((2) * (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> - <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>))\n        set [sx v] to ((sx) * (0.65))\n        switch costume to (ladder v)\n    end\nelse\n    if <not <[] = [Text]>> then\n        if <(in air) < [3]> then\n            if <not <(openmenu?) = [1]>> then\n                change [sx v] by ((2) * (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> - <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>))\n                set [sx v] to ((sx) * (0.75))\n            end\n        end\n    end\nend\nif <([abs v] of (sx) ) > [0.9]> then\n    if <not <<(x position) = [-249]> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>>> then\n        if <not <(openmenu?) = [1]>> then\n            Change Player x by (round (sx))\n        end\n    end\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (20)) > (y position)> and <mouse down?>>> then\n    if <not <[] = [Text]>> then\n        if <(in air) < [3]> then\n            if <(sy) > [-2]> then\n                if <not <(openmenu?) = [1]>> then\n                    switch costume to (jump v)\n                    set [sy v] to (Jump height)\n                end\n            end\n        end\n    end\nend\nif <touching (trampoline v)?> then\n    switch costume to (jump v)\n    set [sy v] to [23]\nend\nif <touching (ladder v)?> then\n    if <not <(openmenu?) = [1]>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<((mouse y) - (20)) > (y position)> and <mouse down?>>> then\n            change [player: y v] by (6)\n        end\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<((mouse y) + (20)) < (y position)> and <mouse down?>>> then\n            change [player: y v] by (-6)\n        end\n        set [sy v] to [0]\n    end\nelse\n    if <(sy) > [-20]> then\n        change [sy v] by (Fall Speed)\n    end\nend\nChange player y by (sy)\n Test - Die\nchange [scroll x v] by (round (((Player: x) - (SCROLL X)) / (5)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nPosition\nchange [scroll y v] by (round (((Player: y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(Player: y) < [-180]> then\n    set [exit v] to [die]\n    broadcast (die v)\nend\nif <touching (end v)?> then\n    broadcast (win v)\n    hide\nend\nif <(in air) < [3]> then\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> then\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>> then\n        point in direction (-90)\n    end\nend\n\ndefine Change Player x by (sx)\nchange [player: x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (8)\n        change [player: y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [player: y v] by (-8)\n    if <touching (platforms v)?> then\n        Position\n    end\n    repeat until <not <touching (platforms v)?>>\n        change [player: x v] by ((([abs v] of (sx) ) / (sx)) * (-1))\n        set [sx v] to [0]\n        Position\n    end\nend\n\ndefine Change player y by (sy)\nchange [player: y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    change [player: y v] by ((([abs v] of (sy) ) / (sy)) * (-1))\n    if <(sy) < [0]> then\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\nif <touching (jump_through v)?> then\n    if <(sy) < [0]> then\n        change [player: y v] by ((sy) * (-1))\n        set [sy v] to [0]\n        set [in air v] to [0]\n        Position\n    end\nend\n\ndefine Position\ngo to x: ((Player: x) - (SCROLL X)) y: ((Player: y) - (SCROLL Y))\n\ndefine  Test - Die\nif <<<touching (spinning wheel of death v)?> or <touching (danger v)?>> and <not <(username) = [Weirdify]>>> then\n    broadcast (die v)\n    set [exit v] to [die]\n    Reset\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\nset [ghost v] effect to (0)\n\nwhen I receive [timeout v]\nhide\n\nwhen I receive [die v]\nplay sound [Throw v] until done\n\nwhen I receive [intro end v]\nbroadcast (Green flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen flag clicked\nswitch costume to (stand v)\npoint in direction (90)\n\nwhen flag clicked\nswitch costume to (stand v)\npoint in direction (90)\nforever\n    if <not <<<<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>> or <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > ((y position) + (30))> and <mouse down?>>>> and <(in air) < [3]>>> then\n        switch costume to (stand v)\n    else\n        if <not <(sx) = [0]>> then\n            if <<<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>>> or <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<(mouse y) > ((y position) + (30))> and <mouse down?>>>> then\n                if <not <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>>>> then\n                    if <(in air) < [3]> then\n                        if <not <(openmenu?) = [1]>> then\n                            if <not <(openmenu?) = [1]>> then\n                                next costume\n                            end\n                            if <[2] < (costume [number v])> then\n                                switch costume to (run1 v)\n                            end\n                            wait (0.1) seconds\n                        end\n                    end\n                end\n            end\n        else\n            switch costume to (stand v)\n        end\n    end\n    if <(in air) < [2]> then\nend\n\nwhen flag clicked\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [player: x v] to [0]\nset [player: y v] to [-42]\nset x to (-2)\nset y to (-42)\n\nwhen flag clicked\nforever\n    if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<((mouse x) + (20)) < (x position)> and <mouse down?>>> and <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<((mouse x) - (20)) > (x position)> and <mouse down?>>>> then\n        switch costume to (stand v)\n    end\nend\n\nwhen flag clicked\nforever\n    wait (pick random (5) to (10)) seconds\n    play sound [amb_bird_1 v] until done\nend\n\nwhen flag clicked\nforever\n    if <not <(openmenu?) = [1]>> then\n        if <(costume [name v]) = [Run1]> then\n            play sound [grass1 v] until done\n        end\n        if <(costume [name v]) = [Run2]> then\n            play sound [grass2 v] until done\n        end\n    end\nend\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\nset [x v] to [0]\nset [y v] to [-150]\nswitch costume to (level 1 1 v)\nClone at [400] []\nClone at [800] []\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\ndefine Clone at (x) (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen I start as a clone\ngo to [front v] layer\ngo [backward v] (15) layers\nclear graphic effects\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (15) layers\nclear graphic effects\n\n@Danger\n\nwhen I receive [green flag v]\nhide\nset [spikes x v] to [0]\nset [spikes y v] to [0]\nswitch costume to (1 v)\n\nwhen I receive [tick v]\nposition ((Spikes x) - (SCROLL X)) ((Spikes y) - (SCROLL Y))\ngo [backward v] (5) layers\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 at (x) (y)\ncreate clone of (_myself_ v)\nchange [spikes x v] by (x)\nchange [spikes y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\n\n@Art\n\nwhen I receive [green flag v]\nhide\nset [platforms_art3: x v] to [0]\nset [platforms_art3: y v] to [-150]\nset [w v] to [0]\nswitch costume to (1 v)\nClone at [400] [0] moving:  []\nClone at [0] [0] moving:  []\nClone at [700] [4] moving:  []\n\nwhen I receive [tick v]\nposition (((Platforms_Art3: x) - (SCROLL X)) - (([sin v] of (Effects) ) * (w))) ((Platforms_Art3: 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\ndefine Clone at (x) (y) moving:  (w)\ncreate clone of (_myself_ v)\nchange [platforms_art3: x v] by (x)\nchange [platforms_art3: y v] by (y)\nset [w v] to (w)\nnext costume\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\ngo to [back v] layer\ngo [forward v] (10) layers\n\nwhen I start as a clone\ngo to [back v] layer\ngo [forward v] (10) layers\n\n@Ladder\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 at (x) (y) moving:  (w)\ncreate clone of (_myself_ v)\nchange [ladder: x v] by (x)\nchange [ladder: y v] by (y)\nset [w v] to (w)\nnext costume\n\nwhen I receive [green flag v]\nhide\nset [ladder: x v] to [680]\nset [ladder: y v] to [130]\nset [w v] to [0]\nswitch costume to (1 v)\ngo to [back v] layer\n\nwhen I receive [tick v]\nposition (((Ladder: x) - (SCROLL X)) - (([sin v] of (Effects) ) * (w))) ((Ladder: y) - (SCROLL Y))\n\nwhen flag clicked\nforever\n    switch costume to (sprite v)\nend\n\nwhen I start as a clone\nforever\n    switch costume to (ladder v)\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to [back v] layer\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\n@Collectibles\n\nwhen I start as a clone\nswitch costume to (coin v)\nforever\n    change [effects v] by (4)\n    set size to ((8000) / ((80) + (([sin v] of (Effects) ) * (9)))) %\nend\n\nwhen I start as a clone\nforever\n    switch costume to (coin v)\nend\n\nwhen I receive [tick v]\nposition ((coin x) - (SCROLL X)) (((coin y) - (SCROLL Y)) + ((0) + (([cos v] of (((timer) - (1)) * (300)) ) * (2))))\nif <touching (player v)?> then\n    broadcast (coin v)\n    change [coins v] by (1)\n    delete this clone\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <not <(costume [name v]) = [Sprite]>> then\n        show\n    end\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\npoint in direction (90)\nset [coins v] to [0]\nset [coin x v] to [0]\nset [tick v] to [0]\nset [coin y v] to [0]\nswitch costume to (1 v)\nClone at [120] []\nClone at [345] [-80]\n\ndefine Clone at (x) (y)\nset [coin x v] to (x)\nset [coin y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [win v]\nhide\n\nwhen I receive [coin v]\nplay sound [Coin v] until done\n\nwhen flag clicked\nforever\n    hide\n    switch costume to (sprite v)\nend\n\n@Shade\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Coineffect\n\ndefine Effect (c)\nswitch costume to (c)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [disappearing v] to [0]\nshow\nclear graphic effects\nset size to (0) %\ngo to [front v] layer\ngo [backward v] (3) layers\nforever\n    change size by (((300) - (size)) / (20))\n    change [disappearing v] by (((1000) - (Disappearing)) / (20))\n    change [fisheye v] effect by (Disappearing)\n    change [ghost v] effect by (10)\n    go to (player v)\nend\n\nwhen I receive [coin v]\ngo to (player v)\nEffect [E1]\n\nwhen I receive [crystal v]\ngo to (player v)\nEffect [E2]\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nwait (1) seconds\ndelete this clone\n\n@Invisible Platforms\n\nwhen I receive [green flag v]\nhide\nset [x v] to [0]\nset [y v] to [-150]\nswitch costume to (level 1 1 v)\nClone at [400] []\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\ndefine Clone at (x) (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        repeat (6)\n            change [ghost v] effect by (10)\n        end\n        wait until <not <touching (player v)?>>\n    else\n        repeat (6)\n            change [ghost v] effect by (-10)\n        end\n        wait until <touching (player v)?>\n    end\nend\n\n@Moving Background Front\n\nwhen flag clicked\nswitch costume to (bg1 v)\nset size to (100) %\ngo to [back v] layer\nset [brightness v] effect to (0)\nset [ghost v] effect to (0)\nset [px v] to [0]\nset [py v] to [-356]\nchange [px v] by (453)\nswitch costume to (bg1 v)\ncreate clone of (_myself_ v)\nchange [px v] by (474)\nswitch costume to (bg1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [tick v]\ngo to x: ((((px) - ((SCROLL X) / (4))) mod (954)) - (478)) y: (((((py) - ((SCROLL Y) / (4))) + (snoy y)) mod (712)) - (358))\n\nwhen I start as a clone\nset size to (100) %\n\n@Moving Background Back\n\nwhen flag clicked\nswitch costume to (bg1 v)\nset size to (100) %\ngo to [back v] layer\nset [brightness v] effect to (0)\nset [ghost v] effect to (0)\ngo to [back v] layer\nset [px v] to [0]\nset [py v] to [-356]\nchange [px v] by (453)\nswitch costume to (bg1 v)\ncreate clone of (_myself_ v)\nchange [px v] by (474)\nswitch costume to (bg1 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [tick v]\ngo to x: ((((px) - ((SCROLL X) / (8))) mod (954)) - (478)) y: (((((py) - ((SCROLL Y) / (8))) + (snoy y)) mod (712)) - (358))\n\nwhen I start as a clone\nset size to (100) %\n\n@Interface\n\nwhen I receive [loved&faved v]\nset [@id v] to [lovefav]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nSETUP\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(openmenu?) = [0]> then\n            show\n            switch costume to (button v)\n            set [ypos_menu v] to [0]\n            repeat until <(ypos_menu) < [-35]>\n                change [ypos_menu v] by (((ypos_menu) - (2)) / (4))\n            end\n            hide\n            set [move_layering v] to [1]\n            switch costume to (s000 v)\n            set [ypos_menu v] to [-225]\n            show\n            repeat until <(ypos_menu) > [-1]>\n                if <(ypos_menu) > [-60]> then\n                    set [openmenu? v] to [1]\n                    change [ypos_menu v] by (((3) - (ypos_menu)) / (6))\n                else\n                    change [ypos_menu v] by (13)\n                end\n            end\n            wait until <not <mouse down?>>\n        end\n    end\n    if <<not <touching (mouse-pointer v)?>> and <mouse down?>> then\n        if <(openmenu?) = [1]> then\n            switch costume to (s000 v)\n            set [ypos_menu v] to [0]\n            repeat until <(ypos_menu) < [-225]>\n                if <(y position) < [-50]> then\n                    change [ypos_menu v] by (-14)\n                else\n                    change [ypos_menu v] by (((ypos_menu) - (2)) / (4))\n                end\n            end\n            hide\n            set [move_layering v] to [0]\n            switch costume to (button v)\n            set [ypos_menu v] to [-36]\n            show\n            repeat until <(ypos_menu) > [-0.2]>\n                change [ypos_menu v] by (((1) - (ypos_menu)) / (6))\n            end\n            set [openmenu? v] to [0]\n            wait until <not <mouse down?>>\n        end\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nshow\nif <(costume [name v]) = [coins]> then\n    go to x: (0) y: (0)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nelse\n    if <(letter (1) of (@clone)) = [v]> then\n        set [ghost v] effect to (100)\n        set [brightness v] effect to (-100)\n        forever\n            RenderCoin_Value\n        end\n    end\nend\n\nwhen I receive [tick v]\nlayering/movement\n\nwhen flag clicked\nforever\n    if <(openmenu?) = [1]> then\n        set [clickshop v] to [1]\n    else\n        if <touching (mouse-pointer v)?> then\n            set [clickshop v] to [1]\n        else\n            set [clickshop v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nset [jump height v] to [14]\nset [bought v] to [000]\nset [emojichat? v] to [0]\nset [jumpboost? v] to [0]\nset [move_layering v] to [0]\nforever\n    if <(openmenu?) = [1]> then\n        if <<mouse down?> and <<<(mouse x) > [72]> and <(mouse x) < [154]>> and <<(mouse y) > [-107]> and <(mouse y) < [-61]>>>> then\n            if <(COINS) > [29]> then\n                set [bought v] to (join (letter (1) of (bought)) (join [1] (letter (3) of (bought))))\n                change [coins v] by (-30)\n                set [jump height v] to [18]\n                check\n                set [@clone v] to [f2]\n                create clone of (_myself_ v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\ndefine check\nset [@clone v] to [check]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(letter (1) of (@clone)) = [f]> then\n    switch costume to (join [front] (letter (2) of (@clone)))\n    go to x: (0) y: (0)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\ndefine goto\nset y to (ypos_menu)\n\nwhen I receive [win!! v]\nrepeat (30)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [hide v]\nshow\nrepeat (30)\n    change [ghost v] effect by (-10)\nend\n\ndefine SETUP\ngo to x: (0) y: (0)\nset size to (100) %\nhide\nset [lives v] to [2]\nset [@clone v] to [1]\nswitch costume to (coins v)\nset [@clone v] to [coins]\ncreate clone of (_myself_ v)\nset [openmenu? v] to [0]\nset size to (35) %\nswitch costume to (3a v)\ngo to x: (190) y: (147)\nset [@clone v] to [val1]\nrepeat (3)\n    create clone of (_myself_ v)\n    set [@clone v] to (join [val] ((letter (4) of (@clone)) + (1)))\n    change x by (15)\nend\nswitch costume to (button v)\nset size to (100) %\nshow\nset [ypos_menu v] to [0]\ngo to x: (0) y: (0)\nclear graphic effects\n\ndefine RenderCoin_Value\nif <(letter (4) of (@clone)) = [1]> then\n    switch costume to (join (letter (1) of (COINS)) [a])\n    change [ghost v] effect by (-10)\nelse\n    if <(letter (4) of (@clone)) = [2]> then\n        switch costume to (join (letter (2) of (COINS)) [a])\n        change [ghost v] effect by (-10)\n        if <(letter (1) of (COINS)) = [1]> then\n            set x to (202)\n        else\n            set x to (205)\n        end\n    else\n        if <(letter (4) of (@clone)) = [3]> then\n            switch costume to (join (letter (3) of (COINS)) [a])\n            change [ghost v] effect by (-10)\n            clear graphic effects\n            set [brightness v] effect to (100)\n            if <<(letter (2) of (COINS)) = [1]> or <(letter (1) of (COINS)) = [1]>> then\n                if <<(letter (1) of (COINS)) = [1]> and <(letter (2) of (COINS)) = [1]>> then\n                    set x to (214)\n                else\n                    set x to (217)\n                end\n            else\n                set x to (220)\n            end\n        end\n    end\nend\n\ndefine layering/movement\nif <(costume [name v]) = [heart]> then\n    if <(@clone) > (lives)> then\n        change [ghost v] effect by (25)\n    else\n        change [ghost v] effect by (-25)\n    end\nend\nif <<(costume [name v]) = [coins]> or <(costume [name v]) = [heart]>> then\n    set y to (Y_SHAKE)\n    go to [front v] layer\nelse\n    if <<<<not <(costume [name v]) = [button]>> and <not <(letter (1) of (costume [name v])) = [S]>>> and <not <(costume [name v]) = [Zcheck]>>> and <not <(letter (1) of (costume [name v])) = [f]>>> then\n        set y to ((Y_SHAKE) + (147))\n    else\n        if <(letter (1) of (costume [name v])) = [S]> then\n            go to [front v] layer\n        else\n            if <(letter (1) of (costume [name v])) = [f]> then\n                go to [front v] layer\n            else\n                go to [front v] layer\n            end\n        end\n    end\nend\nif <(letter (1) of (costume [name v])) = [S]> then\n    if <<<(mouse x) > [72]> and <(mouse x) < [154]>> and <<(mouse y) > [-56]> and <(mouse y) < [-10]>>> then\n        switch costume to (s100 v)\n    else\n        if <<<(mouse x) > [72]> and <(mouse x) < [154]>> and <<(mouse y) > [-107]> and <(mouse y) < [-61]>>> then\n            switch costume to (s010 v)\n        else\n            if <<<(mouse x) > [72]> and <(mouse x) < [154]>> and <<(mouse y) > [-158]> and <(mouse y) < [-112]>>> then\n                switch costume to (s001 v)\n            else\n                switch costume to (s000 v)\n            end\n        end\n    end\nend\nif <<<(letter (1) of (costume [name v])) = [S]> or <(letter (1) of (@clone)) = [f]>> and <(move_Layering) = [1]>> then\n    goto\nend\nif <(costume [name v]) = [button]> then\n    goto\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [@id v] to []\nforever\n    if <(@id) = [lovefav]> then\n        go to x: (0) y: (0)\n        show\n        switch costume to (lovefav v)\n        set size to (150) %\n        set [ghost v] effect to (100)\n        repeat until <(size) < [101]>\n            change [ghost v] effect by (-8)\n            change size by (((100) - (size)) / (5))\n            go to [front v] layer\n        end\n        wait (2) seconds\n        repeat until <(size) > [150]>\n            change [ghost v] effect by (10)\n            change size by (((size) - (90)) / (5))\n            go to [front v] layer\n        end\n    end\nend\n\nwhen flag clicked\nset [fall speed v] to [-1.2]\nforever\n    if <(openmenu?) = [1]> then\n        if <<mouse down?> and <<<(mouse x) > [72]> and <(mouse x) < [154]>> and <<(mouse y) > [-158]> and <(mouse y) < [-112]>>>> then\n            if <(COINS) > [39]> then\n                set [bought v] to (join (letter (1) of (bought)) (join (letter (2) of (bought)) [1]))\n                change [coins v] by (-40)\n                set [fall speed v] to [-0.8]\n                check\n                set [@clone v] to [f3]\n                create clone of (_myself_ v)\n                stop [this script v]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <[99] < (COINS)> then\n        set [coins v] to [99]\n    end\nend\n\n@TM\n\nwhen flag clicked\nhide\n\n