|| Green Pea Apocalypse World 3 || (⭑scrolling platformer⭑)

Instructions: Warning: If the Game glitches, press 'R.'\n===⭑===============(._.)================⭑===\nControls: Arrow keys to move (tap on mobile) press 1 to see your stats, press 'A' to see achievement list but you can't see the secret achievements (press A to close),  press 'D' for dark mode (press D to close), press r to reset if the game breaks.\n===⭑===============(._.)================⭑===\nNotes: This is my third scrolling game :) (lots of bugs fixed: checkpoint bug, and reduced some lag). Arrow keys to move also it is mobile friendly. Many comments on my last platformer said that the checkpoint sometimes doesn't work, so now the bug is fixed and will work 100% of the time. Also love and fave for a surprise :)\n===⭑===============(._.)================⭑===\nAchievements: there are 35+ Achievements to be discovered; try to complete them all (some are hard). When you received the achievement Veteran, that means you beat the game.\n===⭑===============(._.)================⭑===\nTags : #game #explor #jungle #desert #snow #green #pea #apocalypse #world #platfomer #scrolling #terraria #fun #easy #art #durp #rain #checkpoint #art #GPAW #relame #well #op #y4taw #sirenhead #codebreaking #achievements\n===⭑===============(._.)================⭑===\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nCan this get featured? probably not (._.)

@Stage\n\nwhen flag clicked\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [play game v]\nswitch backdrop to (lv.1-3 v)\n\nwhen I receive [lv.2 v]\n\nwhen I receive [lv.3 v]\n\nbroadcast (splim v)\n\nclear sound effects\n\nswitch backdrop to (lv.1-3 v)\n\nwhen I receive [play game v]\nforever\n    if <(biome music) = [1]> then\n        stop all sounds\n        play sound [Music-Ice v] until done\n    end\nend\n\nwhen flag clicked\nset [biome music v] to [1]\n\nwhen I receive [play game v]\nforever\n    if <(biome music) = [2]> then\n        stop all sounds\n        play sound [Music-Desert v] until done\n    end\nend\n\nwhen I receive [play game v]\nforever\n    if <(biome music) = [3]> then\n        stop all sounds\n        play sound [07 Jungle v] until done\n    end\nend\n\n@player\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\nwhen I receive [flag v]\nset size to (100) %\nhide\ngo to [front v] layer\ngo [backward v] (20) layers\n\nwhen I receive [play game v]\nset [level v] to (world)\nforever\n    broadcast (reset v) and wait\n    broadcast (setup v) and wait\n    Game on\n    repeat until <(EXIT) > []>\n        broadcast (Tick v)\n        Tick\n    end\n    if <(EXIT) = [win]> then\n        broadcast (win 2 v)\n        Game - win\n    else\n        Game - Die\n    end\nend\n\ndefine Game on\nset size to (90) %\nset [sx v] to [0]\nset [x v] to [0]\nset [fall damage > 40 = death v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nclear graphic effects\nshow\n\ndefine Tick\nif <<<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> and <(movable) = [yes]>> then\n    change [travel distence v] by (0.05)\n    Change Player x by [-6]\nend\nif <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> and <(movable) = [yes]>> then\n    change [travel distence v] by (0.05)\n    Change Player x by [6]\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> and <(sy) < [1]>> and <(movable) = [yes]>> then\n    if <(Fall Damage > 40 = death) < [4]> then\n        set [sy v] to ((20) + (jj boost))\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange player y by (sy)\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [restart]\nend\nchange [x v] by (8)\nchange [x v] by (-8)\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [fall damage > 40 = death v] by (1)\nPosition\nTest Die\nif <(fall) = [false]> then\n    repeat until <not <<touching (ground v)?> or <<touching (moving block 1 v)?> or <touching (ground 2 v)?>>>>\n        if <(sy) > [0]> then\n            change [y v] by (-1)\n        else\n            if <<touching (launch pad v)?> or <<touching (launch pad3 v)?> or <touching (launch pad2 v)?>>> then\n                set [fall damage > 40 = death v] to [0]\n            end\n            if <<(Fall Damage > 40 = death) > [40]> and <<touching (ground v)?> or <touching (ground 2 v)?>>> then\n                broadcast (reset v)\n            end\n            set [fall damage > 40 = death v] to [0]\n            change [y v] by (1)\n        end\n        Position\n        set [sy v] to [0]\n    end\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\nTest Die\nif <<touching (ground v)?> or <touching (ground 2 v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<touching (ground v)?> or <touching (ground 2 v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [fall damage > 40 = death v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <<touching (ground v)?> or <touching (ground 2 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 - Die\nstart sound [Disconnect v]\nset [exit v] to []\nrepeat (20)\n    set [ghost v] effect to (100)\nend\nbroadcast (die v)\n\nwait (0.5) seconds\n\nshow\n\ndefine Test Die\nif <(dragon stone) = [false]> then\n    if <<<touching (traps v)?> or <<key (r v) pressed?> or <<<touching color (#495569)?> and <touching color (#dad9d4)?>> and <touching (death sway v)?>>>> or <<touching (spike ball v)?> or <<<touching color (#f9f9f9)?> and <touching color (#d6d2ce)?>> and <<<<touching (moving enemy2 v)?> or <touching (moving enemy v)?>> or <touching (moving enemy3 v)?>> or <<touching (moving enemy4 v)?> or <touching (moving enemy5 v)?>>>>>> then\n        if <(can get hurt) = [true]> then\n            set [exit v] to [restart]\n            broadcast (death clone v)\n        end\n    end\nelse\n    if <key (r v) pressed?> then\n        set [exit v] to [restart]\n        broadcast (death clone v)\n    end\nend\n\nchange size by (-)\n\ndefine Game - win\nrepeat (50)\n    point towards (front layer deco v)\n    turn right (65) degrees\n    move ((distance to [front layer deco v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (1)\nend\nbroadcast (home screen v)\nhide\nchange [level v] by (1)\n\ndefine tick 2\n\nTick\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<<mouse down?> and <(x position) > (mouse x)>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        if <not <<<(costume [number v]) = [9]> or <(costume [number v]) = [10]>> or <(costume [number v]) = [13]>>> then\n            if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n                point in direction (90)\n            end\n            if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n                point in direction (-90)\n            end\n        end\n    end\nend\n\nwhen I receive [hide home screen v]\nbroadcast (Flag v) and wait\nbroadcast (Play game v) and wait\n\nbroadcast (Tick v) and wait\nTick\n\ndefine win\nrepeat (10)\n    change size by (10)\nend\nset size to (90) %\nbroadcast (reset v)\n\nwhen I receive [win 2 v]\nset volume to (100) %\nif <(EXIT) = [win]> then\n\nwhen I receive [jump v]\nset [sy v] to [34]\n\nwhen flag clicked\nswitch costume to (default v)\n\nwhen flag clicked\nswitch costume to (default v)\nset [touching moon v] to [false]\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        if <key (space v) pressed?> then\n            set [ghost v] effect to (80)\n            set [can get hurt v] to [false]\n        else\n            clear graphic effects\n            set [can get hurt v] to [true]\n        end\n    end\n    if <<<touching color (#664900)?> or <touching color (#3d3102)?>> and <key (down arrow v) pressed?>> then\n        set [fall v] to [true]\n        wait (0.5) seconds\n        set [fall v] to [false]\n    end\nend\n\nwhen I receive [jump 2  v]\nset [sy v] to [25]\n\nwhen flag clicked\nset [jumps v] to [0]\nforever\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        change [jump times v] by (1)\n        change [jumps v] by (1)\n        wait (0.65) seconds\n    end\nend\n\nwhen I receive [home screen v]\nhide\n\nwhen I receive [splim v]\nbroadcast (Flag v) and wait\n\nset [check point v] to [0]\nset [check point v] to [3]\n\nwhen flag clicked\nhide\nset [player's skin v] to [default]\nswitch costume to (default v)\nset [check point v] to [0]\nforever\n    if <touching (checkpoint v)?> then\n        broadcast (checkpoint one v)\n        set [check point v] to [1]\n    end\n    if <touching (checkpoint2 v)?> then\n        set [check point v] to [2]\n    end\n    if <touching (checkpoint3 v)?> then\n        broadcast (checkpoint 3 v)\n        set [check point v] to [3]\n    end\n    if <touching (checkpoint4 v)?> then\n        broadcast (checkpoint4 v)\n        set [check point v] to [4]\n    end\n    if <touching (checkpoint5 v)?> then\n        broadcast (checkpoint 5 v)\n        set [check point v] to [5]\n    end\n    if <touching (checkpoint6 v)?> then\n        set [check point v] to [6]\n    end\n    if <touching (checkpoint7 v)?> then\n        set [check point v] to [7]\n    end\n    if <touching (checkpoint8 v)?> then\n        set [check point v] to [8]\n    end\n    if <(x) < [2905]> then\n        set [biome music v] to [1]\n    end\n    if <<(x) > [2905]> and <(x) < [4450]>> then\n        set [biome music v] to [2]\n    end\n    if <(x) > [4450]> then\n        set [biome music v] to [3]\n    end\n    if <<touching color (#00ff27)?> and <touching color (#00bb1a)?>> then\n        set [jp power v] to ((50) + (@?/Jp skin effect))\n        set [jp v] to [true]\n    end\n    if <<<<touching color (#a80000)?> and <touching color (#c90000)?>> and <<touching color (#b2b2b2)?> and <touching color (#c8ffff)?>>> and <touching color (#1c5823)?>> then\n        set [jj time v] to [10]\n        set [jj v] to [true]\n    end\n    if <<touching color (#99ad62)?> and <<touching color (#95a65c)?> and <<touching color (#8d9260)?> and <(SCROLL Y) > [3700]>>>> then\n        set [touching moon v] to [true]\n    else\n        set [touching moon v] to [false]\n    end\nend\n\nwhen flag clicked\nset [check point v] to [0]\nset [jump times v] to [0]\n\nwhen flag clicked\nset [fall v] to [false]\n\nwhen I receive [splim v]\nbroadcast (rain place v)\nset [rain level v] to [2]\n\nhide variable [rain level v]\n\nwhen I receive [jump v]\nset [fall damage > 40 = death v] to [0]\n\nwhen flag clicked\nset [jp v] to [false]\nset [jp power v] to [0]\nset [jp power spended v] to [0]\nforever\n    if <<<key (space v) pressed?> and <(jp) = [true]>> and <(jp power) > [0]>> then\n        broadcast (fall reset v)\n        broadcast (jp show v)\n        start sound [thunder_strike_1-Mike_Koenig-739781745.mp3 v]\n        create clone of (jp effect v)\n        change [sy v] by (3)\n        change [jp power v] by (-1)\n        change [jp power spended v] by (1)\n        if <(sy) > [15]> then\n            set [sy v] to [15]\n        end\n    else\n        if <(jp power) < [1]> then\n            broadcast (jp hide v)\n        else\n            broadcast (jp show v)\n        end\n    end\nend\n\nwhen flag clicked\nset [jj time v] to [0]\nset [jp v] to [false]\nforever\n    if <(jj) = [true]> then\n        broadcast (jj show v)\n        set [jj boost v] to [8]\n        repeat until <(jj time) = [0]>\n            change [jj time v] by (-1)\n            wait (1) seconds\n        end\n        set [jj boost v] to [0]\n        set [jj v] to [false]\n    else\n        if <(jj time) < [1]> then\n            broadcast (jj hide v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(direction) = [90]> then\n        set [grass effect by player v] to (pick random (3) to (6))\n    else\n        set [grass effect by player v] to (pick random (-3) to (-6))\n    end\nend\n\nwhen I receive [wants some help v]\n\ndefine talk (0)\nset [what to say v] to []\nset [number v] to [0]\nrepeat (length of (0))\n    change [number v] by (1)\n    set [what to say v] to (join (what to say) (letter (number) of (0)))\n    say (what to say)\nend\n\nwhen flag clicked\nset [dragon stone v] to [false]\n\nwhen flag clicked\nforever\n    if <<touching (totem code v)?> and <(totem number :) = [0]>> then\n        forever\n            if <<touching (totem code2 v)?> and <(totem number :) = [1]>> then\n                forever\n                    if <<touching (totem code3 v)?> and <(totem number :) = [2]>> then\n                        forever\n                            if <<touching (totem code4 v)?> and <(totem number :) = [3]>> then\n                                broadcast (totem code correct v)\n                                stop [this script v]\n                            end\n                        end\n                    else\n                        if <touching (totem code4 v)?> then\n                            stop [this script v]\n                        end\n                    end\n                end\n            else\n                if <<touching (totem code3 v)?> or <touching (totem code4 v)?>> then\n                    stop [this script v]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [travel distence v] to [0]\n\nwhen flag clicked\nset [death times v] to [0]\n\nwhen I receive [deafult v]\nswitch costume to (default v)\nset [player's skin v] to [default]\n\nwhen I receive [diamond skin v]\nswitch costume to (diamond v)\nset [player's skin v] to [diamond]\n\nwhen I receive [silver skin v]\nswitch costume to (silver v)\nset [player's skin v] to [silver]\n\nwhen I receive [gold skin v]\nswitch costume to (gold v)\nset [player's skin v] to [gold]\n\nwhen [r v] key pressed\nbroadcast (reset v)\nbroadcast (die v)\nwait (5) seconds\n\nwhen [4 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [4]\nend\n\nclear graphic effects\n\nwhen I receive [jump 2  v]\nset [fall damage > 40 = death v] to [0]\n\nwhen [space v] key pressed\nset [fall damage > 40 = death v] to [0]\n\nwhen flag clicked\nforever\n    if <(Fall Damage > 40 = death) > [35]> then\n        broadcast (fall damage warning v)\n    else\n        if <(Fall Damage > 40 = death) > [30]> then\n            broadcast (fall damage warning small v)\n        else\n            broadcast (fall damage warning off v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        show variable [fall damage > 40 = death v]\n        show variable [check point v]\n        hide list [relic collected v]\n    else\n        hide variable [fall damage > 40 = death v]\n        hide variable [check point v]\n        show list [relic collected v]\n    end\nend\n\nwhen I receive [fall reset v]\nset [fall damage > 40 = death v] to [0]\n\nwhen I receive [die v]\nchange [death times v] by (1)\n\nwhen I receive [checkpoints? v]\nset [fall v] to [true]\nwait (0.05) seconds\nforever\n    if <(EXIT) = []> then\n        if <(check point) = [1]> then\n            Change player y by [60]\n            Change Player x by [987]\n            show\n            set [fall v] to [false]\n            stop [this script v]\n        else\n            if <(check point) = [2]> then\n                broadcast (check 2 respawn v)\n                Change player y by ((checkpoint 2 place y) + (20))\n                Change Player x by [150]\n                hide\n                wait (0.5) seconds\n                show\n                set [fall v] to [false]\n                stop [this script v]\n            else\n                if <(check point) = [3]> then\n                    Change player y by ((check point 3 place y) + (10))\n                    Change Player x by (check point 3 place x)\n                    hide\n                    wait (0.3) seconds\n                    show\n                    set [fall v] to [false]\n                    stop [this script v]\n                else\n                    if <(check point) = [4]> then\n                        Change player y by ((checkpoint 4 place y) + (20))\n                        Change Player x by (checkpoint 4 place x)\n                        hide\n                        wait (0.3) seconds\n                        show\n                        set [fall v] to [false]\n                        stop [this script v]\n                    else\n                        if <(check point) = [5]> then\n                            Change player y by ((checkpoint 5 place y) + (150))\n                            Change Player x by (checkpoint 5 place x)\n                            hide\n                            wait (0.8) seconds\n                            show\n                            set [fall v] to [false]\n                            stop [this script v]\n                        else\n                            if <(check point) = [6]> then\n                                Change player y by ((checkpoint 6 place y) + (20))\n                                Change Player x by ((checkpoint 6 place x) + (-180))\n                                hide\n                                wait (0.3) seconds\n                                show\n                                set [fall v] to [false]\n                                stop [this script v]\n                            else\n                                if <(check point) = [7]> then\n                                    Change player y by ((checkpoint 7 place y) + (20))\n                                    Change Player x by ((checkpoint 7 place x) + (-170))\n                                    hide\n                                    wait (0.3) seconds\n                                    show\n                                    set [fall v] to [false]\n                                    stop [this script v]\n                                else\n                                    if <(check point) = [8]> then\n                                        Change player y by ((checkpoint 8 place y) + (300))\n                                        Change Player x by ((checkpoint 8 place x) + (-165))\n                                        hide\n                                        wait (0.8) seconds\n                                        show\n                                        set [fall v] to [false]\n                                        stop [this script v]\n                                    else\n                                        if <(check point) = [0]> then\n                                            Change player y by [20]\n                                            Change Player x by [3100]\n                                            show\n                                            set [fall v] to [false]\n                                            stop [this script v]\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nbroadcast (bruh v)\n\nwhen I receive [bruh v]\nwait (1) seconds\nforever\n    if <(answer) = [report]> then\n        talk [BRUH]\n        wait (2) seconds\n        say [ ] for (0) seconds\n        broadcast (bruh v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [\( .\)_\(. \) speed boost v]\nset [fall damage > 40 = death v] to [0]\nset [sy v] to [100]\nwait (1) seconds\nset [fall damage > 40 = death v] to [0]\nrepeat (103)\n    change [x v] by (-30)\n    set [sy v] to [2]\n    set [fall damage > 40 = death v] to [0]\nend\nrepeat (100)\n    set [fall damage > 40 = death v] to [0]\nend\n\nwhen [5 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [5]\nend\n\nwhen [6 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [6]\nend\n\nwhen [q v] key pressed\nif <(username) = [Y4Taw]> then\n    switch costume to (default v)\n    broadcast (deafult v)\nend\n\nwhen [w v] key pressed\nif <(username) = [Y4Taw]> then\n    switch costume to (silver v)\n    broadcast (silver skin v)\nend\n\nwhen [e v] key pressed\nif <(username) = [Y4Taw]> then\n    switch costume to (gold v)\n    broadcast (gold skin v)\nend\n\nwhen [t v] key pressed\nif <(username) = [Y4Taw]> then\n    switch costume to (diamond v)\n    broadcast (diamond skin v)\nend\n\nbroadcast (silver skin v)\n\nwhen flag clicked\nforever\n    if <touching (ground v)?> then\n        wait (0.5) seconds\n        if <touching (ground v)?> then\n            broadcast (reset v)\n        end\n    end\nend\n\nwhen I receive [splim v]\nshow\ngo [backward v] (30) layers\n\nwhen flag clicked\nforever\n\nwhen [space v] key pressed\nif <(username) = [Y4Taw]> then\n    broadcast (fall reset v)\nelse\n    set [fall damage > 40 = death v] to [0]\nend\n\nif <(username) = [Y4Taw]> then\n    switch costume to (y4taw v)\nend\n\nwhen flag clicked\nforever\n    set [y p v] to (y)\n    set [x p v] to (x)\n    set [player direction v] to (direction)\n    set [player x v] to (x position)\nend\n\nwhen [y v] key pressed\nif <(username) = [Y4Taw]> then\n    broadcast (jp deafault v)\nend\n\nwhen [u v] key pressed\nif <(username) = [Y4Taw]> then\n    broadcast (jp silver v)\nend\n\nwhen [i v] key pressed\nif <(username) = [Y4Taw]> then\n    broadcast (jp gold v)\nend\n\nwhen I receive [\(. \)_\( .\) speed jump v]\nset [fall damage > 40 = death v] to [0]\nset [sy v] to [30]\nwait (1) seconds\nset [fall damage > 40 = death v] to [0]\nset [speed effect v] to [0]\nrepeat (29)\n    change [x v] by (speed effect)\n    set [sy v] to [5]\n    set [fall damage > 40 = death v] to [0]\n    change [speed effect v] by (2.08)\nend\n\nwhen [o v] key pressed\nif <(username) = [Y4Taw]> then\n    broadcast (jp diamond v)\nend\n\nwhen flag clicked\nforever\n    set [player x v] to (x position)\n    set [player y v] to (y position)\nend\n\nwhen [3 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [3]\nend\n\nwhen [2 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [2]\nend\n\nwhen [1 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [1]\nend\n\nwhen [7 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [7]\nend\n\n\n\nwhen [8 v] key pressed\nif <(username) = [Y4Taw]> then\n    set [check point v] to [8]\nend\n\nif <(username) = [Y4Taw]> then\n\n@ground\n\nClone at x: [880] y: [-500]\nClone at x: [120] y: [-260]\nClone at x: [120] y: [430]\nClone at x: [200] y: [-300]\nClone at x: [400] y: [50]\n\ngo to (random position v)\n\nwhen I receive [\(. \)_\( .\) speed jump v]\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-100] y: [400]\n    Clone at x: [1000] y: [0]\n    Clone at x: [250] y: [-320]\n    Clone at x: [300] y: [-300]\n    Clone at x: [220] y: [350]\n    Clone at x: [-200] y: [-550]\n    Clone at x: [300] y: [200]\n    Clone at x: [300] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [-2000] y: [600]\n    Clone at x: [0] y: [3000]\n    Clone at x: [2500] y: [-3600]\n    Clone at x: [400] y: [0]\n    Clone at x: [230] y: [280]\n    Clone at x: [-150] y: [340]\n    Clone at x: [-60] y: [250]\n    Clone at x: [350] y: [-30]\n    Clone at x: [-100] y: [350]\n    Clone at x: [-740] y: [-260]\n    Clone at x: [900] y: [-960]\n    Clone at x: [340] y: [620]\n    broadcast (checkpoints? v)\nend\n\nswitch costume to (costume24 v)\n\nbroadcast (level 1 v)\n\nwhen I receive [reset v]\nhide\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\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 [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\nshow\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [reset v]\ndelete this clone\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\n@front layer deco\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\ngo to [front v] layer\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-100] y: [400]\n    Clone at x: [1000] y: [0]\n    Clone at x: [250] y: [-320]\n    Clone at x: [300] y: [-300]\n    Clone at x: [220] y: [350]\n    Clone at x: [-200] y: [-550]\n    Clone at x: [300] y: [200]\n    Clone at x: [300] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [-2000] y: [600]\n    Clone at x: [0] y: [3000]\n    Clone at x: [2500] y: [-3600]\n    Clone at x: [400] y: [0]\n    Clone at x: [230] y: [280]\n    Clone at x: [-150] y: [340]\n    Clone at x: [-60] y: [250]\n    Clone at x: [350] y: [-30]\n    Clone at x: [-100] y: [350]\n    Clone at x: [-740] y: [-260]\n    Clone at x: [900] y: [-960]\n    Clone at x: [340] y: [620]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [front v] layer\ngo to [front v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\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\nbroadcast (reset v)\nbroadcast (setup v)\n\nClone at x: [400] y: [0]\n\nwhen I receive [reset v]\nhide\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait (2) seconds\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nhide\n\nwhen I receive [reset v]\nhide\n\n@back layer deco\n\nClone at x: [200] y: [-300]\nClone at x: [400] y: [50]\n\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\nwhen I receive [reset v]\nhide\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\n    end\nend\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (costume1 v)\n    Clone at x: [460] y: [-20]\n    Clone at x: [250] y: [80]\n    Clone at x: [-280] y: [100]\n    Clone at x: [700] y: [-400]\n    Clone at x: [100] y: [500]\n    Clone at x: [20] y: [-300]\n    Clone at x: [70] y: [280]\n    Clone at x: [-300] y: [200]\n    Clone at x: [-450] y: [130]\n    Clone at x: [-350] y: [-150]\n    Clone at x: [-100] y: [400]\n    Clone at x: [1000] y: [0]\n    Clone at x: [250] y: [-320]\n    Clone at x: [300] y: [-300]\n    Clone at x: [220] y: [350]\n    Clone at x: [-200] y: [-550]\n    Clone at x: [300] y: [200]\n    Clone at x: [300] y: [0]\n    Clone at x: [300] y: [0]\n    Clone at x: [-2000] y: [600]\n    Clone at x: [0] y: [3000]\n    Clone at x: [2500] y: [-3600]\n    Clone at x: [400] y: [0]\n    Clone at x: [230] y: [280]\n    Clone at x: [-150] y: [340]\n    Clone at x: [-60] y: [250]\n    Clone at x: [350] y: [-30]\n    Clone at x: [-100] y: [350]\n    Clone at x: [-740] y: [-260]\n    Clone at x: [900] y: [-960]\n    Clone at x: [340] y: [620]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\nshow\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ngo to [front v] layer\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go to [back v] layer\n    go [forward v] (1) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen flag clicked\nhide\n\n@front layer\n\nwhen flag clicked\n\nswitch costume to (costume1 v)\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [skip v]\nnext costume\n\nwhen I receive [home screen v]\nstop [other scripts in sprite v]\n\n@Thumbnail\n\nwhen flag clicked\nswitch costume to (costume22 v)\ngo to [front v] layer\nclear graphic effects\nrepeat (50)\n    go to [front v] layer\n    change [ghost v] effect by (2)\nend\nforever\n    switch costume to (costume19 v)\n    go to [front v] layer\nend\n\nwhen I receive [splim v]\nwait (0) seconds\nforever\n    switch costume to (costume19 v)\n    go to [front v] layer\nend\n\n@traps\n\nwhen I receive [setup v]\nswitch costume to (blank v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    Clone at x: [460] y: [500]\n    Clone at x: [250] y: [290]\n    Clone at x: [300] y: [-130]\n    Clone at x: [50] y: [-490]\n    Clone at x: [250] y: [800]\n    Clone at x: [-1500] y: [0]\n    Clone at x: [250] y: [100]\n    Clone at x: [2000] y: [-700]\n    Clone at x: [400] y: [0]\n    Clone at x: [1000] y: [500]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\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\nClone at x: [370] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [100] y: [210]\nClone at x: [150] y: [210]\nClone at x: [350] y: [210]\nClone at x: [350] y: [210]\nClone at x: [600] y: [-200]\nClone at x: [400] y: [-200]\nClone at x: [20] y: [-230]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [reset v]\nhide\n\n@starting ani character\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\npoint in direction (90)\nset size to (30) %\ngo to [front v] layer\nset [intro size v] to [90]\nset [sine v] to [0]\ngo to [front v] layer\nreset timer\nrepeat until <(size) > [199]>\n    change size by (((200) - (size)) / (5))\n    turn right (((85) - (direction)) / (7)) degrees\n    go to [front v] layer\nend\nrepeat (99)\n    turn right ((10) + ((timer) * (5))) degrees\nend\nrepeat (50)\n    turn left (((-90) + (direction)) / (7)) degrees\nend\ncreate clone of (sprite2 v)\ngo to [front v] layer\nwait (1) seconds\ncreate clone of (sprite3 v)\ngo to [front v] layer\nwait (0.5) seconds\ncreate clone of (sprite4 v)\ngo to [front v] layer\nwait (2.5) seconds\nhide\nbroadcast (splim v) and wait\n\nbroadcast (start2 v)\nbroadcast (start v)\nbroadcast (start4 v)\n\nhide\n\nwhen I start as a clone\n\nset [size v] to [20]\nrepeat until <(size) > [1200]>\n    switch costume to (costume3 v)\n    change [size v] by (((1201) - (Size)) / (5))\n    set size to (Size) %\n    switch costume to (CloneCostume)\nend\nchange [clonecostume v] by (1)\n\nwait (0) seconds\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\n\nset [clonecostume v] to [red3]\nwait (1) seconds\nwait (1) seconds\n\nwhen flag clicked\nwait (3) seconds\nbroadcast (star clone v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\nend\n\n@heart and star\n\nwhen I start as a clone\nset size to (pick random (70) to (120)) %\nset [ghost v] effect to (pick random (30) to (60))\nshow\ngo to x: (0) y: (0)\nrepeat (pick random (7) to (13))\n    move ((20) - ((timer) * (5))) steps\nend\nset [yvelocity v] to [0]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to [25]\nend\nwait (1) seconds\nrepeat (50)\n    move ((0) - (yvelocity)) steps\n    change [yvelocity v] by (-1)\nend\ndelete this clone\n\nwhen I receive [star clone v]\nreset timer\npoint in direction (90)\nrepeat (40)\n    turn right (pick random (10) to (30)) degrees\n    create clone of (_myself_ v)\nend\n\ngo [forward v] (1) layers\n\ngo to [front v] layer\n\n@starting ani backround\n\nwhen I receive [start music v]\nset volume to (100) %\n\nbroadcast (start2 v)\nbroadcast (start v)\nbroadcast (start4 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\nshow\nstart sound [Unison-Aperture-NCS-Release v]\n\nwhen I receive [start2 v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\nwhen I receive [splim v]\nswitch costume to (costume2 \(7\) v)\n\nwhen I receive [splim v]\nbroadcast (Play game v) and wait\n\nwhen I receive [//lightout v]\nset volume to (0) %\nstop [other scripts in sprite v]\n\nwhen I receive [splim v]\nhide\n\nset [rain level v] to [stop]\n\nset [rain level v] to [small]\n\nset [rain level v] to [mid]\n\nset [rain level v] to [large]\n\n@checkpoint\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [1]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [987] y: [80]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume2 v)\n        broadcast (level 2 v) and wait\n        Clone at x: [370] y: [210]\n        Clone at x: [370] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [100] y: [210]\n        Clone at x: [150] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [350] y: [210]\n        Clone at x: [600] y: [-200]\n        Clone at x: [400] y: [-200]\n        Clone at x: [20] y: [-230]\n    else\n        if <(LEVEL) = [3]> then\n            broadcast (level 3 v)\n            switch costume to (screen shot 2020-05-07 at 3 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [0] y: [300]\n            Clone at x: [600] y: [-300]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n            Clone at x: [600] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                broadcast (level 4 v)\n                switch costume to (costume2 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [200]\n            else\n                if <(LEVEL) = [5]> then\n                    broadcast (level 5 v)\n                    switch costume to (costume10 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [500] y: [100]\n                    Clone at x: [500] y: [0]\n                    Clone at x: [700] y: [0]\n                    Clone at x: [500] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (level 6 v)\n                        switch costume to (costume18 v)\n                        Clone at x: [360] y: [0]\n                        Clone at x: [360] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [600] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                        Clone at x: [500] y: [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume27 v)\n                            Clone at x: [360] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [600] y: [200]\n                            Clone at x: [600] y: [0]\n                            Clone at x: [500] y: [0]\n                            Clone at x: [500] y: [0]\n                        else\n                            if <(LEVEL) = [8]> then\n                                switch costume to (level 1 7 v)\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [700] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [800] y: [0]\n                                Clone at x: [600] y: [0]\n                                Clone at x: [360] y: [0]\n                                Clone at x: [360] y: [0]\n                            else\n                                show\n                                show\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint one v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@snow/rain\n\nwhen I start as a clone\nif <(biome music) = [1]> then\n    if <(>\)\(*&^%$$!) = [1]> then\n        switch costume to (pick random (1) to (5))\n    else\n        switch costume to (snow v)\n    end\n    set size to (100) %\n    set [ghost v] effect to (30)\n    go to x: (pick random (-240) to (230)) y: (175)\n    set [dir v] to (pick random (-2) to (2))\n    set [speed v] to (pick random (5) to (5))\n    show\n    set pen color to (#d5d5d5)\n    pen down\n    set pen size to (2)\n    repeat until <<(y position) < [-170]> or <<touching (player v)?> or < or <touching (ground v)?>>>>\n        if <key (s v) pressed?> then\n            delete this clone\n        end\n        point in direction (((180) + (dir)) + (global dir))\n        move (((1) * (((Falling Speed) + (1)) / (40))) * (Speed)) steps\n        if <key (left arrow v) pressed?> then\n            change x by (2)\n        end\n        if <key (right arrow v) pressed?> then\n            change x by (-2)\n        end\n    end\n    move (((1) * (((Falling Speed) + (1)) / (40))) * (Speed)) steps\n    turn left (pick random (0) to (0)) degrees\n    set size to (0) %\n    set [i v] to [25]\n    repeat (10)\n        change size by (i)\n        change [ghost v] effect by ((i) / (2))\n        change [i v] by (-2)\n    end\n    delete this clone\nelse\n    if <(>\)\(*&^%$$!) = [1]> then\n        switch costume to (pick random (12) to (27))\n    else\n        switch costume to (pick random (12) to (25))\n    end\n    if <(costume [number v]) = [25]> then\n        set size to (100) %\n        set [ghost v] effect to (30)\n        go to x: (pick random (-240) to (230)) y: (175)\n        set [dir v] to (pick random (-2) to (2))\n        set [speed v] to (pick random (5) to (5))\n        show\n        set pen color to (#ffc5c5)\n        pen down\n        set pen size to (4)\n        repeat until <<(y position) < [-170]> or <<touching (ground 2 v)?> or <touching (ground v)?>>>\n            set pen size to (pick random (5) to (9))\n            if <key (s v) pressed?> then\n                delete this clone\n            end\n            point in direction (((180) + ()) + (@.@.@.lul.@.@.@))\n            move (((1) * (((Falling Speed) + (1)) / (2))) * (10)) steps\n            if <key (left arrow v) pressed?> then\n                change x by (0)\n            end\n            if <key (right arrow v) pressed?> then\n                change x by (0)\n            end\n            if <touching (player v)?> then\n                change [lightning striked times v] by (1)\n                broadcast (..^..struck..^.. v)\n                delete this clone\n            end\n        end\n    else\n        set size to (100) %\n        set [ghost v] effect to (30)\n        go to x: (pick random (-240) to (230)) y: (175)\n        set [dir v] to (pick random (-2) to (2))\n        set [speed v] to (pick random (5) to (5))\n        show\n        set pen color to (#51bcff)\n        pen down\n        set pen size to (2)\n        repeat until <<(y position) < [-170]> or <<touching (player v)?> or <<<<<touching (back layer deco v)?> or <touching (water v)?>> or <touching (back layer v)?>> or < or <touching (back layer deco2 v)?>>> or <touching (ground v)?>>>>\n            if <key (s v) pressed?> then\n                delete this clone\n            end\n            point in direction (((180) + (dir)) + (global dir))\n            move (((1) * (((Falling Speed) + (1)) / (4))) * (Speed)) steps\n            if <key (left arrow v) pressed?> then\n                change x by (0)\n            end\n            if <key (right arrow v) pressed?> then\n                change x by (0)\n            end\n        end\n    end\n    if <(costume [number v]) = [25]> then\n        switch costume to (costume23 v)\n        move (((1) * (((Falling Speed) + (1)) / (40))) * (Speed)) steps\n        point in direction (90)\n        set size to (0) %\n        set [i v] to [25]\n        repeat (10)\n            if <touching (player v)?> then\n                change [lightning striked times v] by (1)\n                broadcast (..^..struck..^.. v)\n                delete this clone\n            end\n            change size by (180)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    else\n        switch costume to (pick random (6) to (11))\n        move (((1) * (((Falling Speed) + (1)) / (40))) * (Speed)) steps\n        turn left (pick random (0) to (0)) degrees\n        set size to (0) %\n        set [i v] to [25]\n        repeat (10)\n            change size by (i)\n            change [ghost v] effect by ((i) / (2))\n            change [i v] by (-2)\n        end\n        delete this clone\n    end\nend\n\nswitch costume to (costume17 v)\n\nwhen I receive [rain v]\nset [global dir v] to [-10]\nif <not <(biome music) = [1]>> then\n    forever\n        set [strength v] to (pick random (-30) to (35))\n        repeat (100)\n            change [global dir v] by ((strength) / (150))\n        end\n        repeat (100)\n            change [global dir v] by (((strength) / (100)) * (-1))\n        end\n    end\nelse\n    forever\n        set [strength v] to (pick random (-30) to (35))\n        repeat (100)\n            change [global dir v] by ((strength) / (100))\n        end\n        repeat (100)\n            change [global dir v] by (((strength) / (100)) * (-1))\n        end\n    end\nend\n\nwhen I receive [rain place v]\nforever\n    if <(rain level) = [2]> then\n        create clone of (_myself_ v)\n        wait (0.05) seconds\n        broadcast (rain v)\n        broadcast (small rain v)\n        delete this clone\n    end\nend\n\nstop [other scripts in sprite v]\n\n\n\nif <(rain level) = [stop]> then\n    set [speed v] to [50]\n    broadcast (stop rain v)\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\n\nset [rain level v] to [3]\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine position (x) (y)\n\nturn right (15) degrees\n\nwhen I receive [\)\(rainlevel \) v]\nwait (0.5) seconds\nforever\n    if <key (s v) pressed?> then\n        set [rain level v] to [0]\n        broadcast (\)\(#&RAINLEVEL STOP v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [\)\(#&rainlevel stop v]\n\nwhen flag clicked\nbroadcast (\)\(RAINLEVEL \) v)\n\nif <(rain level) = [2]> then\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\nif <(rain level) = [3]> then\n    create clone of (_myself_ v)\n    wait (0.05) seconds\n    stop [other scripts in sprite v]\n    broadcast (rain v)\n    broadcast (large rain v)\n    delete this clone\nend\nif <(rain level) = [3]> then\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\nif <(rain level) = [3]> then\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\nwhen flag clicked\nforever\n    if <(rain level) = [1]> then\n        create clone of (_myself_ v)\n        wait (0.05) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(rain level) = [3]> then\n        create clone of (_myself_ v)\n        wait (0.05) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        show variable [rain level v]\n        show variable [biome music v]\n        show variable [lightning striked times v]\n    else\n        hide variable [rain level v]\n        hide variable [biome music v]\n        hide variable [lightning striked times v]\n    end\nend\n\nset [biome music v] to [1]\n\nwait (0.5) seconds\nforever\n    if <key (s v) pressed?> then\n        set [rain level v] to [2]\n        broadcast (\)\(RAINLEVEL \) v)\n        stop [this script v]\n    end\nend\n\nset [rain level v] to (biome music)\n\nforever\n    wait (pick random (5) to (25)) seconds\n    set [rain level v] to [0]\n    wait (pick random (10) to (25)) seconds\nend\n\nwhen I receive [rain v]\nset [@.@.@.lul.@.@.@ v] to [-10]\nforever\n    set [strength v] to (pick random (-30) to (30))\n    repeat (100)\n        change [@.@.@.lul.@.@.@ v] by ((strength) / (1))\n    end\n    repeat (100)\n        change [@.@.@.lul.@.@.@ v] by (((strength) / (100)) * (-1))\n    end\nend\n\nwhen flag clicked\nset [lightning striked times v] to [0]\n\nset [rain level v] to (biome music)\n\nwhen I receive [\)\(#&rainlevel stop v]\nwait (0.5) seconds\nforever\n    if <key (s v) pressed?> then\n        set [rain level v] to [2]\n        broadcast (\)\(RAINLEVEL \) v)\n        stop [this script v]\n    end\nend\n\n@Backdrop\n\nwhen flag clicked\nhide variable [trail v]\nset [vis? v] to [0]\nset [falling speed v] to [20]\nswitch costume to (snow v)\ngo to x: (0) y: (0)\nset [trail v] to [65]\nforever\n    set [ghost v] effect to (Trail)\n    stamp\nend\n\nwhen flag clicked\nswitch costume to (snow v)\nforever\n    hide\n    wait (pick random (5) to (10)) seconds\n    repeat (3)\n        set [ghost v] effect to (0)\n        stamp\n    end\n    play sound (pick random (1) to (2)) until done\nend\n\nswitch costume to (rain v)\n\nwhen I receive [reset v]\nset [...ur mom... v] to [apples]\ngo to [front v] layer\nif <(biome music) = [1]> then\n    switch costume to (generating world snow v)\nend\nif <(biome music) = [2]> then\n    switch costume to (generating world berch v)\nend\nif <(biome music) = [3]> then\n    set [...ur mom... v] to [apples]\n    switch costume to (generating world jungle v)\nend\nwait (3) seconds\ngo to [back v] layer\nset [...ur mom... v] to [Bruh]\nbroadcast (...Ur Mom... v)\n\nforever\n    if <(biome music) = [3]> then\nend\n\nwhen I receive [...ur mom... v]\nforever\n    if <(biome music) = [1]> then\n        switch costume to (snow v)\n    end\n    if <(biome music) = [2]> then\n        switch costume to (berch v)\n    end\n    if <(biome music) = [3]> then\n        switch costume to (jungle v)\n    end\n    if <(...Ur mom...) = [apples]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [die v]\nset [...ur mom... v] to [apples]\ngo to [front v] layer\nif <(biome music) = [1]> then\n    switch costume to (generating world snow v)\nend\nif <(biome music) = [2]> then\n    switch costume to (generating world berch v)\nend\nif <(biome music) = [3]> then\n    set [...ur mom... v] to [apples]\n    switch costume to (generating world jungle v)\nend\nwait (3) seconds\ngo to [back v] layer\nset [...ur mom... v] to [Bruh]\nbroadcast (...Ur Mom... v)\n\n@checkpoint2\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [2]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [150] y: [830]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [check point 2 place x v] to (x)\nset [checkpoint 2 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint two v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@checkpoint3\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [3]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [1360] y: [710]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [check point 3 place x v] to (x)\nset [check point 3 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint 3 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@launch pad\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1550] y: [240]\nelse\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - ((SCROLL X) + ())) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <touching (player v)?> then\n        broadcast (jump v)\n        start sound [Low Boing v]\n        repeat (12)\n            next costume\n        end\n        switch costume to (costume1 v)\n    end\n    if <not <touching (player v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@water\n\nwhen I receive [setup v]\nshow\n\nwhen I receive [tick v]\nposition [-10] ((position) + ((y) - (SCROLL Y)))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (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 [reset v]\ndelete this clone\n\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [checkpoints? v]\nshow\n\nturn right (15) degrees\n\nwhen flag clicked\nforever\n    next costume\nend\n\nrepeat (100)\n\nwait (0) seconds\n\nchange [color v] effect by (25)\n\nwhen flag clicked\nforever\n    if <(biome music) = [1]> then\n        set [color v] effect to (0)\n        set [brightness v] effect to (0)\n        set [ghost v] effect to (10)\n        set [position v] to [-165]\n        set size to (100) %\n    end\n    if <(biome music) = [2]> then\n        set [color v] effect to (5)\n        set [brightness v] effect to (-20)\n        set [ghost v] effect to (10)\n        set [position v] to [-120]\n    end\n    if <(biome music) = [3]> then\n        set [color v] effect to (-10)\n        set [brightness v] effect to (-10)\n        set [ghost v] effect to (30)\n        set [position v] to [-165]\n        set size to (100) %\n    end\nend\n\nset size to (150) %\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (80) layers\nend\n\n@launch pad2\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1000] y: [270]\n    Clone at x: [2400] y: [-67]\nelse\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (jump v)\n        start sound [Low Boing v]\n        repeat (12)\n            next costume\n        end\n        switch costume to (costume1 v)\n    end\n    if <not <touching (player v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [reset v]\nhide\n\n@LAKE\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1250] y: [-50]\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        if <touching (player v)?> then\n            go to [front v] layer\n            set [ghost v] effect to (30)\n            switch costume to (costume2 v)\n        else\n            switch costume to (costume2 v)\n            set [ghost v] effect to (10)\n        end\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [reset v]\nhide\n\nwhen I start as a clone\ndelete this clone\n\n@jp\n\nwhen I receive [jp hide v]\nhide\n\nwhen I receive [jp show v]\nshow\n\nwhen flag clicked\nforever\n    if <(jp power) < [10]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    else\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    go to (player v)\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [@?/jp skin effect v] to [0]\n\nwhen I receive [jp deafault v]\nswitch costume to (costume1 v)\nset [@?/jp skin effect v] to [0]\n\nwhen I receive [jp silver v]\nswitch costume to (costume2 v)\nset [@?/jp skin effect v] to [50]\n\nwhen I receive [jp gold v]\nswitch costume to (costume3 v)\nset [@?/jp skin effect v] to [100]\n\ngo to [back v] layer\n\nforever\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [setup v]\nhide\n\nwhen I receive [reset v]\nset [jp power v] to [0]\nhide\n\nset [...stones found... v] to [0]\n\nwhen I receive [death clone v]\nset [jp power v] to [0]\nhide\n\nwhen [j v] key pressed\nif <(username) = [Y4Taw]> then\n    set [jp power v] to [1000]\nend\n\nwhen [x v] key pressed\nif <(jp power) > [0]> then\n    set [jp power v] to [0]\n    broadcast (x v)\nend\nwait (2) seconds\n\nwhen I receive [jp diamond v]\nswitch costume to (costume4 v)\nset [@?/jp skin effect v] to [250]\n\n@jp effect\n\nwhen I start as a clone\nchange x by (pick random (-10) to (10))\nshow\nset [brightness v] effect to (30)\nset [ghost v] effect to (40)\nset size to (pick random (50) to (70)) %\nrepeat (5)\n    move (-3) steps\n    change y by (-10)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (-1)\n    if <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n        repeat (5)\n            move (-3) steps\n            change y by (-10)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (-1)\n        end\n    end\nend\ndelete this clone\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset rotation style [all around v]\nhide\nforever\n    go to (player v)\n    go to [back v] layer\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [3]> then\n        set [color v] effect to (pick random (0) to (200))\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [jp deafault v]\nswitch costume to (costume1 v)\n\nwhen I receive [jp silver v]\nswitch costume to (costume2 v)\n\nwhen I receive [jp gold v]\nswitch costume to (costume3 v)\n\nchange [jp power spended v] by (100)\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [3]> then\n        forever\n            switch costume to (costume3 v)\n            wait (0.05) seconds\n            switch costume to (costume4 v)\n            wait (0.05) seconds\n            switch costume to (costume5 v)\n            wait (0.05) seconds\n            switch costume to (costume6 v)\n            wait (0.05) seconds\n        end\n    end\nend\n\nwhen I receive [jp diamond v]\nswitch costume to (costume3 v)\n\n@jj\n\nwhen I receive [jj hide v]\nhide\n\nwhen I receive [jj show v]\nshow\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    go to (player v)\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(jj time) < [4]> then\n        repeat (20)\n            change [ghost v] effect by (4)\n        end\n        repeat (20)\n            change [ghost v] effect by (-4)\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(jj time) > [10]> then\n        set [jj time v] to [10]\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (70) layers\nend\n\nwhen I receive [reset v]\nhide\nset [jj time v] to [0]\n\n@sway\n\ndefine Sway\nset [grass: velocity v] to (((grass effect by player) + (pick random (-2) to (2))) * (6))\nset [grass: sine v] to [0]\nrepeat until <<[0] = (round ((grass: Velocity) * (2)))> or <<touching (player v)?> and <([abs v] of (grass: Velocity) ) < ([abs v] of ((speed x2) * (2)) )>>>\n    point in direction ((90) - (([sin v] of (grass: Sine) ) * (grass: Velocity)))\n    change [grass: sine v] by (-10)\n    set [grass: velocity v] to ((0.95) * (grass: Velocity))\nend\n\nwhen I receive [setup v]\ngo to [back v] layer\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [30] y: [-120]\n    Clone at x: [120] y: [0]\n    Clone at x: [124] y: [70]\n    Clone at x: [60] y: [30]\n    Clone at x: [40] y: [0]\n    Clone at x: [150] y: [577]\n    Clone at x: [340] y: [-65]\n    Clone at x: [100] y: [-400]\n    Clone at x: [30] y: [0]\n    Clone at x: [190] y: [0]\n    Clone at x: [-30] y: [0]\n    Clone at x: [140] y: [615]\n    Clone at x: [170] y: [-55]\n    Clone at x: [460] y: [-480]\n    Clone at x: [320] y: [0]\nelse\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (20) layers\n    if <touching (player v)?> then\n        Sway\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\n    forever\n        if <touching (player v)?> then\n            set [ghost v] effect to (30)\n        else\n            clear graphic effects\n        end\n    end\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\n    if <touching (player v)?> then\n        Sway\n    end\nend\n\nwhen flag clicked\nhide\n\nbroadcast (setup v)\nbroadcast (reset v)\n\ngo to [front v] layer\n\nwhen I receive [reset v]\nhide\n\n@me in a crimson dragon suit\n\ndefine Talk (0)\nset [what to say v] to []\nset [number v] to [0]\nrepeat (length of (0))\n    change [number v] by (1)\n    set [what to say v] to (join (What to say) (letter (Number) of (0)))\n    say (What to say)\nend\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [1730] y: [340]\nelse\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        go to [back v] layer\n        go [forward v] (1) layers\n        if <touching (player v)?> then\n            set [ghost v] effect to (0)\n        else\n            clear graphic effects\n        end\n    end\nelse\n    hide\n    broadcast (button stop v)\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [play game v]\nwait (1) seconds\nswitch costume to (costume1 v)\nforever\n    if <touching (player v)?> then\n        set [answer v] to [start]\n        switch costume to (costume2 v)\n        Talk [hey there]\n        wait (1) seconds\n        Talk [want's some help]\n        wait (1.5) seconds\n        broadcast (wants some help v)\n        set [answer v] to [start]\n        repeat until <<<(answer 2) = [sure]> or <(answer) = [report]>> or <not <touching (player v)?>>>\n            set [answer v] to [start]\n        end\n        if <(answer) = [report]> then\n            wait (2) seconds\n            switch costume to (costume3 v)\n            Talk [OK]\n            wait (0.3) seconds\n            say [ ] for (0) seconds\n            broadcast (trap dragon v)\n            forever\n                set [answer v] to [report]\n            end\n        end\n        if <(answer 2) = [sure]> then\n            switch costume to (costume2 v)\n            Talk [sure here is a dragon stone you will be immune to spikes]\n            wait (2) seconds\n            say [ ] for (0) seconds\n            set [dragon stone v] to [true]\n            broadcast (dragon stone v)\n            forever\n                set [answer v] to [sure]\n            end\n        end\n        say [ ] for (0) seconds\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nset [answer 2 v] to [0]\nforever\n    if <not <touching (player v)?>> then\n        set [answer v] to [non]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [reset v]\nhide\n\n@sure\n\nwhen I receive [wants some help v]\nshow\nswitch costume to (costume1 v)\nset size to (100) %\nshow\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    if <touching (mouse-pointer v)?> then\n        point in direction ((90) + (([cos v] of (((timer) - (1)) * (300)) ) * (4)))\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            set size to ((size) + (((100) - (size)) / (2))) %\n            stop [other scripts in sprite v]\n            hide\n            broadcast (sure v)\n            repeat (100)\n                set [answer 2 v] to [sure]\n            end\n            stop [this script v]\n        end\n        set size to ((size) + (((120) - (size)) / (2))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((100) - (size)) / (2))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(answer) = [report]> then\n        stop [other scripts in sprite v]\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [button stop v]\nhide\n\nwhen I receive [reset v]\nhide\n\n@BRUH\n\nwhen I receive [wants some help v]\nshow\nswitch costume to (costume1 v)\nset size to (100) %\nshow\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    if <touching (mouse-pointer v)?> then\n        point in direction ((90) + (([cos v] of (((timer) - (1)) * (300)) ) * (4)))\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            set size to ((size) + (((100) - (size)) / (2))) %\n            set [answer v] to [report]\n            broadcast (button stop v)\n            stop [other scripts in sprite v]\n            hide\n            stop [this script v]\n        end\n        set size to ((size) + (((120) - (size)) / (2))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((100) - (size)) / (2))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [answer v] to [1]\n\nwhen I receive [sure v]\nstop [other scripts in sprite v]\nhide\nstop [this script v]\n\nwhen I receive [button stop v]\nhide\n\nwhen I receive [reset v]\nhide\n\n@totem code\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume5 v)\n    Clone at x: [1825] y: [980]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (totem 1 y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        go to [back v] layer\n        if <(totem 1 y) > [150]> then\n            set [totem 1 y v] to [150]\n        end\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [totem number : v] to [1]\n        repeat until <(totem 1 y) > [150]>\n            change [totem 1 y v] by ((2) + (totem 1 y repeted))\n            change [totem 1 y repeted v] by (0.2)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [totem 1 y v] to [0]\nset [totem 1 y repeted v] to [0]\n\nwhen flag clicked\nset [totem number : v] to [0]\n\nwhen I receive [reset v]\nhide\n\n@totem code2\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume5 v)\n    Clone at x: [1975] y: [1010]\nelse\nend\n\nwhen I receive [tick v]\nposition (((x) - (SCROLL X)) + (totem 2 x)) (((y) - (SCROLL Y)) + (totem 2 y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        go to [back v] layer\n        if <(totem 2 y) > [120]> then\n            set [totem 2 y v] to [120]\n        end\n        if <(totem 2 x) < [-59]> then\n            set [totem 2 x v] to [-59]\n        end\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [totem number : v] to [2]\n        repeat until <(totem 2 y) > [120]>\n            change [totem 2 y v] by ((2) + (totem 2 y repeted))\n            change [totem 2 y repeted v] by (0.2)\n            change [totem 2 x v] by (-2.1)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [totem 2 y v] to [0]\nset [totem 2 y repeted v] to [0]\nset [totem 2 x v] to [0]\n\nwhen I receive [reset v]\nhide\n\n@totem code3\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume5 v)\n    Clone at x: [1920] y: [900]\nelse\nend\n\nwhen I receive [tick v]\nposition (((x) - (SCROLL X)) + (totem 3 x)) (((y) - (SCROLL Y)) + (totem 3 y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        go to [back v] layer\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [totem number : v] to [3]\n        repeat until <(totem 3 y) > [300]>\n            change [totem 3 y v] by ((2) + (totem 3 y repeted))\n            change [totem 3 y repeted v] by (0.2)\n            change [totem 3 x v] by (2.1)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [totem 3 x v] to [0]\nset [totem 3 y repeted v] to [0]\nset [totem 3 y v] to [0]\nforever\n    if <(totem 3 y) > [230]> then\n        set [totem 3 y v] to [230]\n    end\n    if <(totem 3 x) > [72]> then\n        set [totem 3 x v] to [72]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\n@totem code4\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume5 v)\n    Clone at x: [1920] y: [900]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (totem 4 y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\n        go to [back v] layer\n    end\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        set [totem number : v] to [4]\n        repeat until <(totem 4 y) > [320]>\n            change [totem 4 y v] by ((2) + (totem 3 y repeted))\n            change [totem 4 y repeted v] by (0.2)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [totem 4 y v] to [0]\nset [totem 4 y repeted v] to [0]\nforever\n    if <(totem 4 y) > [250]> then\n        set [totem 4 y v] to [250]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\n@achievements\n\nwhen flag clicked\nset [check point v] to [0]\nwait (1) seconds\nforever\n    if <(check point) > [0]> then\n        change [achievements complete v] by (1)\n        broadcast (checkpoint show v)\n        switch costume to (2 v)\n        Acheivment id: [2]\n        stop [this script v]\n    end\nend\n\ndefine Acheivment id: (id)\ncreate clone of (_myself_ v)\nbroadcast (Achievement v)\nset [id v] to (id)\n\ndefine Reset achievements (bruh??)\ndelete all of [x v]\nrepeat (bruh??)\n    add [0] to [x v]\nend\n\nwhen I receive [reset player data v]\nReset achievements [50]\ndelete this clone\n\nwhen I start as a clone\nset [t v] to [0]\nset size to (100000) %\ngo to x: (-140) y: (-195)\nshow\nclear graphic effects\nset size to (85) %\ngo to [front v] layer\nset [ghost v] effect to (100)\nrepeat (5)\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <<(costume [number v]) = [32]> or <<(costume [number v]) = [33]> or <<(costume [number v]) = [34]> or <(costume [number v]) = [36]>>>>> then\n        set [secret achievements clicked v] to [1]\n    end\n    change [ghost v] effect by (-20)\nend\nrepeat (50)\n    wait (0.01) seconds\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <<(costume [number v]) = [32]> or <<(costume [number v]) = [33]> or <<(costume [number v]) = [34]> or <(costume [number v]) = [36]>>>>> then\n        set [secret achievements clicked v] to [1]\n    end\nend\nrepeat (20)\n    go to [front v] layer\n    change [ghost v] effect by (5)\n    go to [front v] layer\n    if <<<mouse down?> and <touching (mouse-pointer v)?>> and <<(costume [number v]) = [32]> or <<(costume [number v]) = [33]> or <<(costume [number v]) = [34]> or <(costume [number v]) = [36]>>>>> then\n        set [secret achievements clicked v] to [1]\n    end\nend\ndelete this clone\n\nwhen I receive [achievement v]\nchange y by (65)\n\nwhen I receive [totem code correct v]\nif <(code?) = [yes]> then\n    stop [this script v]\nend\nset [code? v] to [yes]\nchange [achievements complete v] by (1)\nswitch costume to (14 v)\nAcheivment id: [14]\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(jp power spended) > [0]> then\n        change [achievements complete v] by (1)\n        switch costume to (6 v)\n        Acheivment id: [6]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(jump times) < [100]>> then\n        change [gold points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (4 v)\n        Acheivment id: [4]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(jump times) < [1]>> then\n        change [achievements complete v] by (1)\n        switch costume to (1 v)\n        Acheivment id: [1]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(jump times) < [50]>> then\n        change [achievements complete v] by (1)\n        change [silver points v] by (1)\n        switch costume to (3 v)\n        Acheivment id: [3]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <(jump times) < [250]>> then\n        change [achievements complete v] by (1)\n        switch costume to (5 v)\n        Acheivment id: [5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [silver jp achievement v] to [false]\nforever\n    if <(jp power spended) > [499]> then\n        change [silver points v] by (1)\n        change [//warning number v] by (1)\n        change [achievements complete v] by (1)\n        set [silver jp achievement v] to [true]\n        switch costume to (7 v)\n        Acheivment id: [7]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [gold jp achievement v] to [false]\nforever\n    if <(jp power spended) > [2999]> then\n        change [gold points v] by (1)\n        change [//warning number v] by (1)\n        change [achievements complete v] by (1)\n        set [gold jp achievement v] to [true]\n        switch costume to (8 v)\n        Acheivment id: [8]\n        stop [this script v]\n    end\nend\n\nset [jp power spended v] to [3000]\n\nwhen flag clicked\nforever\n    if <(travel distence) > [0.95]> then\n        change [achievements complete v] by (1)\n        switch costume to (9 v)\n        Acheivment id: [9]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(travel distence) > [49.95]> then\n        change [silver points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (10 v)\n        Acheivment id: [10]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(travel distence) > [250]> then\n        change [gold points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (11 v)\n        Acheivment id: [11]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(travel distence) > [1000]> then\n        change [achievements complete v] by (1)\n        switch costume to (12 v)\n        Acheivment id: [12]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(travel distence) > [5000]> then\n        change [achievements complete v] by (1)\n        switch costume to (13 v)\n        Acheivment id: [13]\n        stop [this script v]\n    end\nend\n\nwhen I receive [achievement v]\nstart sound [Connect v]\n\nwhen I receive [dragon stone v]\nchange [achievements complete v] by (1)\nswitch costume to (15 v)\nAcheivment id: [15]\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(death times) > [0]> then\n        change [achievements complete v] by (1)\n        switch costume to (16 v)\n        Acheivment id: [16]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(death times) > [4]> then\n        change [achievements complete v] by (1)\n        switch costume to (17 v)\n        Acheivment id: [17]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(death times) > [9]> then\n        change [achievements complete v] by (1)\n        change [silver points v] by (1)\n        switch costume to (18 v)\n        Acheivment id: [18]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(death times) > [19]> then\n        change [gold points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (19 v)\n        Acheivment id: [19]\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nset [death times v] to [99]\n\nwhen flag clicked\nforever\n    if <(death times) > [29]> then\n        change [achievements complete v] by (1)\n        switch costume to (20 v)\n        Acheivment id: [20]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(death times) > [49]> then\n        change [achievements complete v] by (1)\n        switch costume to (21 v)\n        Acheivment id: [21]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(death times) > [99]> then\n        change [achievements complete v] by (1)\n        switch costume to (22 v)\n        Acheivment id: [22]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(jump times) > [99]> and <(travel distence) > [99]>> then\n        change [achievements complete v] by (1)\n        switch costume to (23 v)\n        Acheivment id: [23]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(jump times) > [499]> and <(travel distence) > [499]>> then\n        change [gold points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (24 v)\n        Acheivment id: [24]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        show variable [achievements complete v]\n        show variable [death times v]\n        show variable [jump times v]\n        show variable [travel distence v]\n    else\n        hide variable [achievements complete v]\n        hide variable [death times v]\n        hide variable [jump times v]\n        hide variable [travel distence v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Achievements complete) > [4]> then\n        wait (0.05) seconds\n        change [achievements complete v] by (1)\n        switch costume to (26 v)\n        Acheivment id: [26]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Achievements complete) > [9]> then\n        wait (0.05) seconds\n        change [silver points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (27 v)\n        Acheivment id: [27]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Achievements complete) > [19]> then\n        wait (0.05) seconds\n        change [gold points v] by (1)\n        change [achievements complete v] by (1)\n        switch costume to (28 v)\n        Acheivment id: [28]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [achievements complete v] to [0]\nset [silver points v] to [0]\nset [gold points v] to [0]\n\nwhen flag clicked\nforever\n    if <(silver points) > [4]> then\n        wait (0.1) seconds\n        change [achievements complete v] by (1)\n        change [//warning number v] by (1)\n        switch costume to (29 v)\n        Acheivment id: [29]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(gold points) > [5]> then\n        wait (0.1) seconds\n        change [achievements complete v] by (1)\n        change [//warning number v] by (1)\n        switch costume to (30 v)\n        Acheivment id: [30]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Achievements complete) > [29]> then\n        wait (0.15) seconds\n        change [//warning number v] by (1)\n        switch costume to (31 v)\n        Acheivment id: [31]\n        stop [this script v]\n    end\nend\n\nchange [jump times v] by (5)\nchange [travel distence v] by (500)\nchange [death times v] by (5)\n\nchange [achievements complete v] by (1)\n\nset [achievements complete v] to [30]\n\nwhen flag clicked\nforever\n    if <(touching moon) = [true]> then\n        change [achievements complete v] by (1)\n        switch costume to (25 v)\n        Acheivment id: [25]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(>\)\(*&^%$$!) = [1]> then\n        switch costume to (33 v)\n        Acheivment id: [33]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [secret achievements clicked v] to [0]\n\nwhen flag clicked\nforever\n    if <(Secret Achievements clicked) > [0]> then\n        switch costume to (35 v)\n        Acheivment id: [35]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [lightning striked times v] to [0]\nforever\n    if <(Lightning striked times) > [4]> then\n        switch costume to (36 v)\n        Acheivment id: [36]\n        stop [this script v]\n    end\nend\n\nwhen [p v] key pressed\nif <(username) = [Y4Taw]> then\n    set [achievements complete v] to [30]\n    set [travel distence v] to [5001]\n    set [silver points v] to [5]\n    set [gold points v] to [6]\n    set [jp power spended v] to [3000]\n    set [jump times v] to [500]\n    set [death times v] to [100]\nend\n\nwhen flag clicked\nforever\n    if <(timer) > [1800]> then\n        wait (0.15) seconds\n        switch costume to (34 v)\n        Acheivment id: [34]\n        stop [this script v]\n    end\nend\n\nwhen I receive [gem activated v]\nswitch costume to (32 v)\nAcheivment id: [32]\nstop [this script v]\n\nwhen flag clicked\nset [code? v] to [no]\n\n@backpack\n\nwhen flag clicked\nhide\nset [//warning number v] to [1]\n\nclear graphic effects\n\nchange size by ((vel) / (6))\n\nwhen I receive [backpack open v]\nshow\nset size to (150) %\npoint in direction (90)\ngo to x: (-206) y: (151)\nswitch costume to (costume1 v)\nclear graphic effects\nset size to (150) %\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [//warning number v] to [1]\n        set [vel v] to [30]\n        broadcast (/open v)\n        set [shop closed v] to [false]\n        repeat (15)\n            set [bounce v] to (((bounce) * (0.4)) + ((100) - (size)))\n            change size by (bounce)\n        end\n        repeat until <(x position) > [40]>\n            change [ghost v] effect by ((vel) * (-5))\n            switch costume to (costume2 v)\n            change x by (vel)\n            change [vel v] by (-1)\n        end\n        repeat (15)\n            set [bounce v] to (((bounce) * (0.4)) + ((150) - (size)))\n            change size by (bounce)\n        end\n        broadcast (backpack close v)\n        stop [this script v]\n    end\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        set size to ((size) + (((160) - (size)) / (5))) %\n        if <mouse down?> then\n            set size to ((size) + (((150) - (size)) / (2))) %\n            broadcast (shop open v)\n            set [shop? v] to [open]\n        end\n        set size to ((size) + (((160) - (size)) / (5))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((150) - (size)) / (5))) %\n        clear graphic effects\n    end\nend\n\ngo [backward v] (1) layers\n\nwhen I receive [backpack close v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [vel v] to [-30]\n        repeat (15)\n            set [bounce v] to (((bounce) * (0.4)) + ((100) - (size)))\n            change size by (bounce)\n        end\n        repeat until <(x position) < [-205]>\n            change [ghost v] effect by ((vel) * (5))\n            switch costume to (costume1 v)\n            change x by (vel)\n            change [vel v] by (1)\n        end\n        repeat (15)\n            set [bounce v] to (((bounce) * (0.4)) + ((150) - (size)))\n            change size by (bounce)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [backpack close v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [shop closed v] to [true]\n        broadcast (backpack open v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (9.5) seconds\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <not <(shop closed) = [false]>> then\n        switch costume to (//warning number)\n    end\nend\n\nchange [//warning number v] by (1)\n\nwhen I receive [splim v]\nwait (3) seconds\nbroadcast (backpack open v)\nforever\n    go to [front v] layer\nend\n\n@skins\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [/open v]\nhide\ngo to x: (48) y: (152)\nset [/skins number v] to [0]\nrepeat (8)\n    create clone of (_myself_ v)\n    change [/skins number v] by (1)\nend\n\nwhen I start as a clone\nhide\nswitch costume to (/skins number)\nwait (1) seconds\nshow\nforever\n    go to [front v] layer\n    if <(shop closed) = [true]> then\n        set [brightness v] to [0]\n        delete this clone\n    end\n    if <(costume [number v]) = [1]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <mouse down?> then\n                broadcast (deafult v)\n            end\n        else\n            clear graphic effects\n        end\n    end\n    if <(costume [number v]) = [2]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(silver points) > [4]>> then\n                broadcast (silver skin v)\n            end\n            if <(silver points) < [5]> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <(silver points) < [5]> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\n    if <(costume [number v]) = [3]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(gold points) > [5]>> then\n                broadcast (gold skin v)\n            end\n            if <(gold points) < [6]> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <(gold points) < [6]> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\n    if <(costume [number v]) = [4]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(Achievements complete) > [29]>> then\n                broadcast (diamond skin v)\n            end\n            if <(Achievements complete) < [29]> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <(Achievements complete) < [29]> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\n    if <(costume [number v]) = [5]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <mouse down?> then\n                broadcast (jp deafault v)\n            end\n        else\n            clear graphic effects\n        end\n    end\n    if <(costume [number v]) = [6]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(silver jp achievement) = [true]>> then\n                broadcast (jp silver v)\n            end\n            if <not <(silver jp achievement) = [true]>> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <not <(silver jp achievement) = [true]>> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\n    if <(costume [number v]) = [7]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(gold jp achievement) = [true]>> then\n                broadcast (jp gold v)\n            end\n            if <not <(gold jp achievement) = [true]>> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <not <(gold jp achievement) = [true]>> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\n    if <(costume [number v]) = [8]> then\n        if <touching (mouse-pointer v)?> then\n            change [brightness v] by (1)\n            change [brightness v] effect by (1)\n            if <(brightness) > [20]> then\n                set [brightness v] to [20]\n                set [brightness v] effect to (20)\n            end\n            if <<mouse down?> and <(Achievements complete) > [29]>> then\n                broadcast (jp diamond v)\n            end\n            if <(Achievements complete) < [29]> then\n                set [brightness v] effect to (-40)\n            end\n        else\n            if <(Achievements complete) < [29]> then\n                set [brightness v] effect to (-40)\n            else\n                clear graphic effects\n            end\n        end\n    end\nend\n\nset [brightness v] effect to (-20)\n\n\n\nchange [silver points v] by (1)\n\nchange [gold points v] by (1)\n\nwhen I receive [gold skin v]\nplay sound [pop v] until done\n\n@guide Fax\n\nstop [other scripts in sprite v]\n\nwhen flag clicked\n\nwhen flag clicked\nhide\nwait (0) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I receive [fax v]\nhide\nwait (0) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (4) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume2 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (4) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume3 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (3) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume4 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (3) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume5 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (3) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume6 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (2) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nhide\nwait (0.5) seconds\nshow\nswitch costume to (costume7 v)\ngo to x: (0) y: (50)\nrepeat until <(y position) < [0.2]>\n    change [ghost v] effect by (-3)\n    change y by (((0) - (y position)) / (7))\nend\nset [ghost v] effect to (5)\nwait (4) seconds\nrepeat until <(y position) > [30]>\n    change [ghost v] effect by (10)\n    change y by (((y position) + (5)) / (5))\nend\nforever\n    hide\n    wait (0.5) seconds\n    show\n    switch costume to (pick random (8) to (42))\n    go to x: (0) y: (50)\n    repeat until <(y position) < [0.2]>\n        change [ghost v] effect by (-3)\n        change y by (((0) - (y position)) / (7))\n    end\n    set [ghost v] effect to (5)\n    wait (3) seconds\n    repeat until <(y position) > [30]>\n        change [ghost v] effect by (10)\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\n@sparkles\n\nwhen flag clicked\nhide\nforever\n    if <(costume [number v]) = [1]> then\n        wait (0) seconds\n    end\n    if <(costume [number v]) = [2]> then\n        create clone of (_myself_ v)\n        wait (pick random (1) to (1.8)) seconds\n    end\n    if <(costume [number v]) = [3]> then\n        create clone of (_myself_ v)\n        wait (pick random (0.5) to (1)) seconds\n    end\n    if <(costume [number v]) = [4]> then\n        create clone of (_myself_ v)\n        wait (pick random (0.1) to (0.5)) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (player's skin)\nend\n\nwhen I start as a clone\ngo to (player v)\ngo to [front v] layer\nclear graphic effects\nshow\ngo [backward v] (35) layers\nset size to (pick random (100) to (150)) %\nchange x by (pick random (-20) to (20))\nchange y by (pick random (-20) to (20))\nrepeat (10)\n    turn right (pick random (15) to (30)) degrees\n    change [brightness v] effect by (5)\n    change size by (10)\nend\nrepeat (10)\n    turn right (pick random (15) to (30)) degrees\n    change [brightness v] effect by (-5)\n    change size by (-10)\n    change [ghost v] effect by (25)\nend\ndelete this clone\n\nset [player's skin v] to [diamond]\n\nset [player's skin v] to [gold]\n\nset [player's skin v] to [silver]\n\n@Sprite2\n\nwhen I start as a clone\nshow\nset [size v] to [20]\ngo to [front v] layer\nrepeat until <(size) > [2000]>\n    switch costume to (costume2 v)\n    change [size v] by (((2001) - (Size)) / (5))\n    set size to (Size) %\n    switch costume to (costume1 v)\nend\nwait (2) seconds\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen I start as a clone\nshow\nset [size v] to [20]\ngo to [front v] layer\ngo [backward v] (3) layers\nrepeat until <(size) > [2500]>\n    switch costume to (costume2 v)\n    change [size v] by (((2501) - (Size)) / (5))\n    set size to (Size) %\n    switch costume to (costume1 v)\nend\nwait (1.5) seconds\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen I start as a clone\nshow\nset [size v] to [20]\ngo to [front v] layer\ngo [backward v] (5) layers\nrepeat until <(size) > [4500]>\n    switch costume to (costume2 v)\n    change [size v] by (((4501) - (size)) / (5))\n    set size to (size) %\n    switch costume to (costume1 v)\nend\nwait (1) seconds\ndelete this clone\n\nwhen flag clicked\nhide\n\n@storm\n\nwhen flag clicked\nhide\nwait (2) seconds\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to (-75)\nshow\nswitch costume to (c8b7a3b26085bee86e088266ab024db0 v)\nset size to (300) %\ngo to [front v] layer\nrepeat (14)\n    next costume\n    wait (0.02) seconds\nend\ndelete this clone\n\n@Sprite5\n\nwhen flag clicked\nhide\nwait (8) seconds\nshow\ngo to [front v] layer\nset size to (30) %\nrepeat (50)\n    go to [front v] layer\n    switch costume to (costume2 v)\n    change size by ((10) + (timer))\n    switch costume to (costume1 v)\nend\nhide\n\n@moving block 1\n\nwhen I receive [setup v]\nswitch costume to (0 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    Clone at x: [2410] y: [480]\n    Clone at x: [300] y: [400]\nelse\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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 at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nif <(costume [number v]) = [3]> then\n    position (((moving block 1 x) / (2)) + ((x) - (SCROLL X))) ((moving block 1 y) + ((y) - (SCROLL Y)))\nelse\n    position (((moving block 1 x) / (1)) + ((x) - (SCROLL X))) ((moving block 1 y) + ((y) - (SCROLL Y)))\nend\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nforever\n    set [moving block 1 y v] to (([cos v] of ((timer) * (35)) ) * (0))\n    set [moving block 1 x v] to (([sin v] of ((timer) * (100)) ) * (90))\nend\n\nswitch costume to (1 v)\n\nwhen I receive [reset v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nbroadcast (@dark stop v)\nhide\nforever\n    go to [front v] layer\n    go [forward v] (999999) layers\nend\n\nwhen I receive [@dark start v]\nforever\n    if <key (d v) pressed?> then\n        switch costume to (costume1 v)\n        set [dark mode on? v] to [true]\n        show\n        create clone of (_myself_ v)\n        wait (0.2) seconds\n        forever\n            if <key (d v) pressed?> then\n                set [dark mode on? v] to [false]\n                hide\n                broadcast (@dark stop v)\n            end\n        end\n    end\nend\n\nwhen I receive [@dark stop v]\nwait (0.2) seconds\nbroadcast (@dark start v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\ngo to (torch v)\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nshow\ngo to x: (0) y: (0)\npoint in direction (90)\nforever\n    go to [back v] layer\n    go to (player v)\n    if <key (d v) pressed?> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nforever\n    move ((distance to [torch v]) / (15)) steps\n    point towards (torch v)\nend\n\n@scroll bar\n\nwhen flag clicked\n\nwhen I start as a clone\nset y to (125)\nswitch costume to (front v)\ngo to [front v] layer\nshow\nforever\n    set y to ((mouse y) - ((mouse y) / (4)))\n    if <(y position) > [125]> then\n        set y to (125)\n    end\n    if <(y position) < [-125]> then\n        set y to (-125)\n    end\n    set [scroll bar scroll v] to (((((y position) - (125)) / (320)) * (Slides)) * (370))\nend\n\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\n\nrepeat until <not <mouse down?>>\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (2) layers\n    if <(@@@@bar show?) = [yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    go [forward v] (100) layers\n    go to [front v] layer\n    if <(@@@@bar show?) = [yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [@@&#$@achievement open v]\nshow\ngo to [front v] layer\nswitch costume to (back v)\ncreate clone of (_myself_ v)\n\nset [scroll bar scroll v] to (((((y position) - (125)) / (320)) * (Slides)) * (360))\n\n@achievements text\n\nwhen I receive [@@&#$@achievement open v]\nset size to (50) %\nset [slides v] to [0]\nhide\nswitch costume to (1 v)\nrepeat (4)\n    create clone of (_myself_ v)\n    next costume\n    change [slides v] by (1)\nend\n\nwhen I start as a clone\nshow\nforever\n    set x to (167)\n    set y to ((((costume [number v]) - (1)) * (-360)) - (scroll bar scroll))\n    if <<(y position) = ((((costume [number v]) - (1)) * (-360)) - (scroll bar scroll))> and <(@@@@bar show?) = [yes]>> then\n        show\n    else\n        hide\n    end\nend\n\nbroadcast (@@&#$@achievement open v)\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nforever\n    go [forward v] (1000) layers\n    go to [front v] layer\nend\n\n@bar\n\nwhen I receive [*^&bar open? v]\ngo to x: (308) y: (0)\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (bar think v)\n    end\n    if <key (a v) pressed?> then\n        set [ghost v] effect to (20)\n        set [bar move v] to [0]\n        repeat (7)\n            change x by (([sin v] of ((10) + (bar move)) ) * (-50))\n            change [bar move v] by ((1) + (bar move))\n        end\n        set [bar move v] to [0]\n        repeat (8)\n            change x by (([sin v] of ((10) + (bar move)) ) * (-40))\n            change [bar move v] by (-3)\n        end\n        set [bar move v] to [0]\n        go to x: (167) y: (0)\n        set [@@@@bar show? v] to [yes]\n        broadcast (\)*&^#&bar closed? v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [\)*&^#&bar closed? v]\nbroadcast (bar think 2 v)\ngo to x: (167) y: (0)\nshow\nforever\n    if <key (a v) pressed?> then\n        set [@@@@bar show? v] to [no]\n        set [ghost v] effect to (20)\n        set [bar move v] to [0]\n        repeat (7)\n            change x by (([sin v] of ((10) + (bar move)) ) * (50))\n            change [bar move v] by ((-1) + (bar move))\n        end\n        set [bar move v] to [0]\n        repeat (8)\n            change x by (([sin v] of ((10) + (bar move)) ) * (40))\n            change [bar move v] by (3)\n        end\n        set [bar move v] to [0]\n        go to x: (308) y: (0)\n        clear graphic effects\n        broadcast (*^&bar open? v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [splim v]\nwait (3.4) seconds\nset [@@@@bar show? v] to [no]\nclear graphic effects\nhide\ngo to x: (167) y: (0)\nbroadcast (*^&bar open? v)\nbroadcast (@@&#$@achievement open v)\nforever\n    go to [front v] layer\n    go [backward v] (2) layers\nend\n\nwhen flag clicked\nhide\n\n@bar think\n\nwhen flag clicked\nhide\n\nwhen I receive [bar think v]\nshow\ngo to x: (0) y: (0)\nthink [press a] for (0.05) seconds\nhide\n\nwhen I receive [bar think 2 v]\nshow\ngo to x: (-150) y: (0)\nthink [press a to close] for (1) seconds\nhide\n\n@love and fave detecter\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        wait (0.8) seconds\n        if <touching (mouse-pointer v)?> then\n            set [>\)\(*&^%$$! v] to [1]\n            stop [this script v]\n        end\n    else\n        set [>\)\(*&^%$$! v] to [0]\n    end\nend\n\nwait (1) seconds\n\n@checkpoint4\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [4]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [3100] y: [420]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [checkpoint 4 place x v] to (x)\nset [checkpoint 4 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint4 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@gemstone Autumn\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume3 v)\n    Clone at x: [3600] y: [240]\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [///lp x v] to [10]\n\nwhen flag clicked\nset [gemstone y v] to [0]\nforever\n    repeat (10)\n        change [gemstone y v] by (1)\n    end\n    repeat (10)\n        change [gemstone y v] by (-1)\n    end\nend\n\nwhen I receive [splim v]\nset [...stones found... v] to [0]\nforever\n    if <touching (player v)?> then\n        change [...stones found... v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\ndelete all of [relic collected v]\nforever\n    if <touching (player v)?> then\n        add [yellow] to [relic collected v]\n        stop [this script v]\n    end\nend\n\nhide list [relic collected v]\n\nshow list [relic collected v]\n\nwhen flag clicked\nswitch costume to (costume2 v)\nclear graphic effects\nshow\nforever\n    if <[relic collected v] contains [yellow]?> then\n        switch costume to (costume3 v)\n        start sound [Machine v]\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        forever\n            hide\n        end\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + ((gemstone y) / ([ceiling v] of (3) )))\n\n@gemstone Summer\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [5100] y: [300]\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [///lp x v] to [10]\n\nwhen flag clicked\nset [gemstone y v] to [0]\nforever\n    repeat (10)\n        change [gemstone y v] by (1)\n    end\n    repeat (10)\n        change [gemstone y v] by (-1)\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nswitch costume to (costume2 v)\nclear graphic effects\nshow\nforever\n    if <[relic collected v] contains [green]?> then\n        switch costume to (costume1 v)\n        start sound [Machine v]\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        forever\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        add [green] to [relic collected v]\n        stop [this script v]\n    end\nend\n\ndelete all of [relic collected v]\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + ((gemstone y) / ([ceiling v] of (3) )))\n\n@launch pad3\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [3700] y: [770]\nelse\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (jump 2  v)\n        start sound [Low Boing v]\n        repeat (12)\n            next costume\n        end\n        switch costume to (costume1 v)\n    end\n    if <not <touching (player v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [reset v]\nhide\n\n@fall damage\n\nwhen I receive [fall damage warning v]\nclear graphic effects\nshow\nswitch costume to (death v)\n\nwhen I receive [fall damage warning off v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [fall damage warning small v]\nshow\nswitch costume to (might die v)\nset [ghost v] effect to (100)\nrepeat (4)\n    change [ghost v] effect by (-25)\nend\n\n@booster\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (2 v)\n    Clone at x: [3700] y: [0]\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 Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (\(. \)_\( .\) SPEED JUMP v)\n        start sound [recording1 v]\n        repeat (12)\n            next costume\n        end\n    end\n    if <not <touching (player v)?>> then\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\nClone at x: [1000] y: [400]\n\nwhen I receive [reset v]\nhide\n\n@ground 2\n\nforever\n    \nend\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nbroadcast (setup v)\n\nwhen I receive [setup2 v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (0 v)\n    Clone at x: [5100] y: [0]\n    Clone at x: [0] y: [0]\n    Clone at x: [-80] y: [100]\n    Clone at x: [510] y: [140]\n    Clone at x: [110] y: [-260]\n    Clone at x: [500] y: [300]\n    Clone at x: [-30] y: [-350]\n    Clone at x: [380] y: [0]\n    Clone at x: [400] y: [0]\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 [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ngo [forward v] (1) layers\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [reset2 v]\ndelete this clone\n\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [splim v]\nforever\n    if <(SCROLL X) < [4500]> then\n        broadcast (reset2 v)\n    end\n    if <(SCROLL X) > [4500]> then\n        broadcast (setup2 v)\n        wait until <(SCROLL X) < [4500]>\n    end\nend\n\nbroadcast (reset2 v)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [reset v]\nbroadcast (reset2 v)\n\n@front layer deco 2\n\nwhen flag clicked\nhide\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [setup v]\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [front v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\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\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\n    end\nend\n\nClone at x: [-30] y: [-350]\n\nwhen I receive [reset2 v]\ndelete this clone\n\nwhen I receive [setup2 v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (0 v)\n    Clone at x: [5100] y: [0]\n    Clone at x: [0] y: [0]\n    Clone at x: [-80] y: [100]\n    Clone at x: [510] y: [140]\n    Clone at x: [110] y: [-260]\n    Clone at x: [500] y: [300]\n    Clone at x: [-30] y: [-350]\n    Clone at x: [380] y: [0]\nend\n\n@back layer deco2\n\nwhen I receive [reset v]\nhide\n\nClone at x: [110] y: [-260]\n\nwhen I start as a clone\nforever\n    if <(EXIT) = [restart]> then\n        delete this clone\n    end\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\ngo to [front v] layer\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\nbroadcast (reset v)\nbroadcast (setup v)\n\nwhen I receive [setup2 v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    switch costume to (0 v)\n    Clone at x: [5100] y: [0]\n    Clone at x: [0] y: [0]\n    Clone at x: [-80] y: [100]\n    Clone at x: [510] y: [140]\n    Clone at x: [110] y: [-260]\n    Clone at x: [500] y: [300]\n    Clone at x: [-30] y: [-350]\n    Clone at x: [380] y: [0]\n    Clone at x: [400] y: [0]\nend\n\nwhen I receive [reset2 v]\ndelete this clone\n\n@booster2\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (2 v)\n    Clone at x: [6300] y: [-50]\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 Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast (\( .\)_\(. \) SPEED BOOST v)\n        start sound [recording1 v]\n        repeat (12)\n            next costume\n        end\n    end\n    if <not <touching (player v)?>> then\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [reset v]\nhide\n\n@checkpoint5\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [5]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [3460] y: [1376]\nelse\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [checkpoint 5 place x v] to (x)\nset [checkpoint 5 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint4 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I receive [reset v]\nhide\n\n@tree type\n\nhide\n\n@tree type2\n\n@checkpoint6\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [6]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\nelse\n    hide\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [5150] y: [0]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [checkpoint 6 place x v] to (x)\nset [checkpoint 6 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint5 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [reset v]\nhide\n\n@flash\n\nwhen I receive [..^..struck..^.. v]\nshow\nclear graphic effects\nrepeat (10)\n    go to [front v] layer\n    go [forward v] (1000000000) layers\n    change [ghost v] effect by (15)\nend\nhide\n\nwhen flag clicked\nhide\n\n@death sway\n\ndefine Sway\nif <<<(costume [number v]) = [12]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [2]> or <(costume [number v]) = [5]>>>> or <(costume [number v]) = [1]>> then\n    start sound [Chain Dropped Sound Effect v]\nend\nif <(costume [number v]) = [18]> then\n    start sound (pick random (3) to (5))\nend\nset [grass: velocity v] to ((0) - (((grass effect by player) + (pick random (-2) to (2))) * (6)))\nset [grass: sine v] to [0]\nrepeat until <<[0] = (round ((grass: Velocity) * (2)))> or <<<touching (player v)?> or <<touching (hat shot v)?> or <touching (sword v)?>>> and <([abs v] of (grass: Velocity) ) < ([abs v] of ((speed x2) * (2)) )>>>\n    point in direction ((90) - (([sin v] of (grass: Sine) ) * (grass: Velocity)))\n    change [grass: sine v] by (-10)\n    set [grass: velocity v] to ((0.95) * (grass: Velocity))\nend\n\nset [grass: velocity v] to (((grass effect by player) + (pick random (0) to (-2))) * (6))\n\nwhen I receive [setup v]\ngo to [back v] layer\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (19 v)\n    Clone at x: [3820] y: [900]\n    Clone at x: [70] y: [0]\n    Clone at x: [-220] y: [340]\n    Clone at x: [20] y: [-40]\n    Clone at x: [-150] y: [-240]\n    Clone at x: [-58] y: [-280]\n    Clone at x: [12] y: [0]\n    Clone at x: [160] y: [0]\n    Clone at x: [65] y: [0]\n    Clone at x: [20] y: [0]\n    Clone at x: [-430] y: [200]\n    Clone at x: [-40] y: [0]\n    Clone at x: [2730] y: [-670]\n    Clone at x: [30] y: [0]\n    Clone at x: [-60] y: [0]\n    Clone at x: [220] y: [-160]\n    Clone at x: [-2100] y: [816]\n    Clone at x: [125] y: [210]\n    Clone at x: [0] y: [0]\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I start as a clone\npoint in direction (90)\nset [grass: sine v] to [0]\ngo to [front v] layer\ngo [backward v] (100) layers\nforever\n    if <<touching (player v)?> or <<touching (hat shot v)?> or <touching (sword v)?>>> then\n        Sway\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\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen flag clicked\ngo [forward v] (10) layers\nforever\n    if <<touching (player v)?> or <<touching (hat shot v)?> or <touching (sword v)?>>> then\n        Sway\n    end\nend\n\nwhen flag clicked\nhide\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [reset v]\nhide\n\nif <(player direction) = [-90]> then\n\n@death\n\nwhen I start as a clone\nset [yvelocity v] to [0]\ngo to (player v)\nturn right (pick random (-10) to (10)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (10) to (15))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\ngo [forward v] (999999999999) layers\nshow\nclear graphic effects\nset [turn v] to (pick random (-3) to (5))\nset [brightness v] effect to (0)\nset size to (90) %\nshow\n\nwhen I receive [deafult v]\nswitch costume to (costume1 v)\n\nwhen I receive [silver skin v]\nswitch costume to (costume2 v)\n\nwhen I receive [gold skin v]\nswitch costume to (costume3 v)\n\nwhen I receive [diamond skin v]\nswitch costume to (costume4 v)\n\nwhen I receive [death clone v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\nend\n\nif <(username) = [Y4Taw]> then\n    switch costume to (y4taw v)\nend\n\n@jp death\n\nwhen I start as a clone\nset [yvelocity v] to [0]\ngo to (player v)\nturn right (pick random (-40) to (40)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (5) to (20))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [turn v] to (pick random (-20) to (20))\nset [brightness v] effect to (0)\nset size to (90) %\ngo [forward v] (999999999999) layers\nshow\n\nwhen flag clicked\nforever\n    if <(username) = [Y4Taw]> then\n        switch costume to (y4taw v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [@?/jp skin effect v] to [0]\n\nwhen I receive [jp deafault v]\nswitch costume to (costume1 v)\nset [@?/jp skin effect v] to [0]\n\nwhen I receive [jp silver v]\nswitch costume to (costume2 v)\nset [@?/jp skin effect v] to [250]\n\nwhen I receive [jp gold v]\nswitch costume to (costume3 v)\nset [@?/jp skin effect v] to [500]\n\nwhen I receive [death clone v]\nif <(jp power) > [0]> then\n    create clone of (_myself_ v)\nend\n\nwhen I receive [x v]\ncreate clone of (_myself_ v)\n\n@hat death\n\nwhen I start as a clone\nset [yvelocity v] to [0]\ngo to (hat shot v)\nturn right (pick random (-10) to (10)) degrees\nset rotation style [all around v]\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (10) to (15))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn 2) degrees\nend\ndelete this clone\n\nwhen I start as a clone\ngo [forward v] (999999999999) layers\nshow\nclear graphic effects\nset [turn 2 v] to (pick random (-3) to (5))\nset [brightness v] effect to (0)\nset size to (90) %\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [deafult v]\nswitch costume to (costume1 v)\n\nwhen I receive [silver skin v]\nswitch costume to (costume2 v)\n\nwhen I receive [gold skin v]\nswitch costume to (costume3 v)\n\nwhen I receive [diamond skin v]\nswitch costume to (costume4 v)\n\nwhen I receive [death clone v]\nhide\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset rotation style [all around v]\nforever\n    go to (player v)\nend\n\ngo to [back v] layer\n\nwhen I receive [checkpoints? v]\nshow\n\nwhen flag clicked\ngo [forward v] (220) layers\nhide\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        point in direction (90)\n    else\n        point in direction (90)\n    end\nend\n\nwhen I receive [show hat v]\nshow\nif <(costume [number v]) = [1]> then\n    forever\n        if <<(hat shot) = [false]> and <key (z v) pressed?>> then\n            create clone of (hat shot v)\n            stop [this script v]\n        end\n    end\nelse\n    forever\n        if <<(hat shot) = [false]> and <key (z v) pressed?>> then\n            create clone of (hat shot v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [hide hat v]\nhide\n\nwhen flag clicked\nwait (14.2) seconds\nbroadcast (show hat v)\n\nwhen flag clicked\nhide\nwait (10) seconds\nhide\n\nwhen flag clicked\nwait (14.01) seconds\ngo [forward v] (27) layers\n\npoint towards (mouse-pointer v)\nif <<(costume [number v]) = [7]> or <(costume [number v]) = [6]>> then\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume4 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume7 v)\n    end\nelse\n    if <<(costume [number v]) = [5]> or <(costume [number v]) = [4]>> then\n        if <key (right arrow v) pressed?> then\n            switch costume to (costume3 v)\n        end\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume6 v)\n        end\n    else\n        if <<(costume [number v]) = [3]> or <(costume [number v]) = [2]>> then\n            if <key (right arrow v) pressed?> then\n                switch costume to (costume2 v)\n            end\n            if <key (left arrow v) pressed?> then\n                switch costume to (costume5 v)\n            end\n        end\n    end\nend\n\ngo [forward v] (1) layers\n\n@clothing death\n\nwhen I start as a clone\nset [yvelocity v] to [0]\ngo to (player v)\nturn right (pick random (-30) to (30)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (10) to (15))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn 2) degrees\nend\ndelete this clone\n\nwhen I start as a clone\ngo [forward v] (999999999999) layers\nshow\nclear graphic effects\nset [turn 2 v] to (pick random (-3) to (5))\nset [brightness v] effect to (0)\nset size to (90) %\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [deafult v]\nswitch costume to (costume1 v)\n\nwhen I receive [silver skin v]\nswitch costume to (costume2 v)\n\nwhen I receive [gold skin v]\nswitch costume to (costume3 v)\n\nwhen I receive [diamond skin v]\nswitch costume to (costume4 v)\n\nwhen I receive [death clone v]\nhide\ncreate clone of (_myself_ v)\n\nwhen flag clicked\n\nforever\n    go to (player v)\nend\n\ngo [forward v] (220) layers\n\ngo to [back v] layer\n\nwhen I receive [checkpoints? v]\n\nshow\n\nhide\n\nwhen flag clicked\n\n@hat shot\n\nwhen I start as a clone\n\nwhen I receive [deafult v]\nswitch costume to (costume1 v)\nset [hat number v] to [1]\n\nwhen I receive [silver skin v]\nswitch costume to (costume2 v)\nset [hat number v] to [2]\n\nwhen I receive [gold skin v]\nswitch costume to (costume3 v)\nset [hat number v] to [3]\n\nwhen I receive [diamond skin v]\nswitch costume to (costume4 v)\nset [hat number v] to [4]\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset rotation style [all around v]\nforever\n    go to (player v)\n    hide\nend\n\ngo to [back v] layer\n\nwhen flag clicked\nhide\n\ngo [forward v] (1) layers\n\nwhen I start as a clone\nstart sound [High Whoosh v]\nset [speed v] to [1]\ngo to (hat death v)\npoint towards (mouse-pointer v)\nmove (0) steps\nshow\ngo to [front v] layer\nbroadcast (hide hat v)\nrepeat (2)\n    move (speed) steps\n    change [speed v] by ((speed) * (0.5))\n    if <(direction) > [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume1 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume3 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume5 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume7 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(direction) < [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume2 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume4 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume6 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume8 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(hat shot) = [true]> then\n        broadcast (show hat v)\n        delete this clone\n    end\nend\nrepeat until <<<touching (ground v)?> or <touching (ground 2 v)?>> or <touching (_edge_ v)?>>\n    move (speed) steps\n    change [speed v] by ((speed) * (0.5))\n    if <(direction) > [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume1 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume3 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume5 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume7 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(direction) < [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume2 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume4 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume6 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume8 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(hat shot) = [true]> then\n        broadcast (show hat v)\n        delete this clone\n    end\nend\nset [speed v] to [1]\npoint towards (player v)\nrepeat until <touching (player v)?>\n    point towards (player v)\n    move (speed) steps\n    change [speed v] by ((speed) * (0.5))\n    if <(speed) > [20]> then\n        set [speed v] to [20]\n    end\n    if <(direction) > [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume1 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume3 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume5 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume7 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(direction) < [0]> then\n        if <(hat number) = [1]> then\n            switch costume to (costume2 v)\n        else\n            if <(hat number) = [2]> then\n                switch costume to (costume4 v)\n            else\n                if <(hat number) = [3]> then\n                    switch costume to (costume6 v)\n                else\n                    if <(hat number) = [4]> then\n                        switch costume to (costume8 v)\n                    end\n                end\n            end\n        end\n    end\n    if <(hat shot) = [true]> then\n        broadcast (show hat v)\n        delete this clone\n    end\nend\nbroadcast (show hat v)\ndelete this clone\n\nwhen I receive [checkpoints? v]\nset [hat shot v] to [false]\n\nwhen I receive [death clone v]\nset [hat shot v] to [true]\n\nif <(direction) > [0]> then\n\n@moving enemy\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    Clone at x: [3434] y: [764]\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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    if <(@>@>@>@status) = [alive]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition (((monster move) / (3)) + ((x) - (SCROLL X))) ((y) - (SCROLL Y))\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nhide\nforever\n    set [monster move v] to (([sin v] of ((timer) * (100)) ) * (90))\nend\n\nswitch costume to (1 v)\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    set rotation style [all around v]\n    point towards (player v)\n    go to [front v] layer\n    if <(direction) < [0]> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [enemy clone 1 v]\nwait (10) seconds\nshow\nset [@>@>@>@status v] to [alive]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (enemy setup 1 v)\n\nwhen I receive [enemy setup 1 v]\nforever\n    if <<touching (hat shot v)?> or <touching (sword v)?>> then\n        hide\n        set [position of enemy v] to [1]\n        broadcast (enemy clone 1 v)\n        set [@>@>@>@status v] to [dead]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nbroadcast (enemy setup 1 v)\nset [@>@>@>@status v] to [alive]\n\nClone at x: [3884] y: [953]\n\nwhen flag clicked\nforever\n    if <((y p) + (10)) < (y)> then\n        if <(monster move) > [0]> then\n            point in direction (90)\n            switch costume to (1 v)\n        else\n            point in direction (-90)\n            switch costume to (2 v)\n        end\n    else\n        set rotation style [all around v]\n        point towards (player v)\n        go to [front v] layer\n        if <(direction) < [0]> then\n            switch costume to (2 v)\n        else\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\n@enemy die\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(position of enemy) = [1]> then\n    go to (moving enemy v)\n    switch costume to (costume1 v)\nelse\n    if <(position of enemy) = [2]> then\n        go to (moving enemy2 v)\n        switch costume to (costume1 v)\n    else\n        if <(position of enemy) = [3]> then\n            go to (moving enemy3 v)\n            switch costume to (costume2 v)\n        else\n            if <(position of enemy) = [4]> then\n                go to (moving enemy4 v)\n                switch costume to (costume3 v)\n            else\n                go to (moving enemy5 v)\n                switch costume to (costume4 v)\n            end\n        end\n    end\nend\nturn right (pick random (-40) to (40)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (15) to (18))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [turn v] to (pick random (-20) to (20))\nset [brightness v] effect to (0)\nset size to (90) %\ngo [forward v] (999999999999) layers\nshow\n\nwhen I receive [enemy clone 1 v]\nstart sound [Crunch v]\ncreate clone of (_myself_ v)\n\nwhen I receive [enemy clone 2 v]\nstart sound [Crunch v]\ncreate clone of (_myself_ v)\n\nwhen I receive [enemy clone 3 v]\nstart sound [Crunch v]\ncreate clone of (_myself_ v)\n\n@enemy die shield\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(position of enemy) = [1]> then\n    go to (moving enemy v)\n    switch costume to (costume1 v)\nelse\n    if <(position of enemy) = [2]> then\n        go to (moving enemy2 v)\n        switch costume to (costume1 v)\n    else\n        if <(position of enemy) = [3]> then\n            go to (moving enemy3 v)\n            switch costume to (costume2 v)\n        else\n            if <(position of enemy) = [4]> then\n                go to (moving enemy4 v)\n                switch costume to (costume3 v)\n            else\n                go to (moving enemy5 v)\n                switch costume to (costume3 v)\n            end\n        end\n    end\nend\nturn right (pick random (-40) to (40)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (5) to (8))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [turn v] to (pick random (-20) to (20))\nset [brightness v] effect to (0)\nset size to (90) %\ngo [forward v] (999999999999) layers\nshow\n\nwhen I receive [enemy clone 1 v]\ncreate clone of (_myself_ v)\n\nwhen I receive [enemy clone 2 v]\ncreate clone of (_myself_ v)\n\nwhen I receive [enemy clone 3 v]\ncreate clone of (_myself_ v)\n\n@enemy die weapon\n\nwhen I start as a clone\nset [yvelocity v] to [0]\nif <(position of enemy) = [1]> then\n    go to (moving enemy v)\n    switch costume to (costume1 v)\nelse\n    if <(position of enemy) = [2]> then\n        go to (moving enemy2 v)\n        switch costume to (costume1 v)\n    else\n        if <(position of enemy) = [3]> then\n            go to (moving enemy3 v)\n            switch costume to (costume2 v)\n        else\n            if <(position of enemy) = [4]> then\n                go to (moving enemy4 v)\n                switch costume to (costume3 v)\n            else\n                go to (moving enemy5 v)\n                switch costume to (costume4 v)\n            end\n        end\n    end\nend\nturn right (pick random (-40) to (40)) degrees\nif <(yvelocity) = [0]> then\n    set [yvelocity v] to (pick random (13) to (15))\nend\nrepeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n    change y by (yvelocity)\n    change [yvelocity v] by (-1)\n    turn right (turn) degrees\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [turn v] to (pick random (50) to (-50))\nset [brightness v] effect to (0)\nset size to (90) %\ngo [forward v] (999999999999) layers\nshow\n\nwhen I receive [enemy clone 1 v]\ncreate clone of (_myself_ v)\n\nwhen I receive [enemy clone 2 v]\ncreate clone of (_myself_ v)\n\nif <(position of enemy) = [4]> then\n    go to (moving enemy4 v)\n    switch costume to (costume3 v)\nelse\n    go to (moving enemy5 v)\n    switch costume to (costume4 v)\nend\n\nwhen I receive [enemy clone 3 v]\ncreate clone of (_myself_ v)\n\ngo to (moving enemy3 v)\nswitch costume to (costume2 v)\n\n@moving enemy2\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    broadcast (level 1 v)\n    Clone at x: [3884] y: [949]\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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    if <(@>@>@>@status) = [alive]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition (((monster move) / (3)) + ((x) - (SCROLL X))) ((y) - (SCROLL Y))\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nforever\n    set [monster move v] to (([sin v] of ((timer) * (100)) ) * (90))\nend\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    if <(y p) < (y)> then\n        if <(monster move) > [0]> then\n            point in direction (90)\n            switch costume to (1 v)\n        else\n            point in direction (-90)\n            switch costume to (2 v)\n        end\n    else\n        set rotation style [all around v]\n        point towards (player v)\n        go to [front v] layer\n        if <(direction) < [0]> then\n            switch costume to (2 v)\n        else\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I receive [enemy clone 2 v]\nwait (10) seconds\nshow\nset [@>@>@>@status v] to [alive]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (enemy setup 2 v)\n\nwhen I receive [enemy setup 2 v]\nforever\n    if <<touching (hat shot v)?> or <touching (sword v)?>> then\n        hide\n        set [position of enemy v] to [2]\n        broadcast (enemy clone 2 v)\n        set [@>@>@>@status v] to [dead]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nbroadcast (enemy setup 2 v)\nset [@>@>@>@status v] to [alive]\n\nwhen I start as a clone\ndelete this clone\n\n@torch\n\nwhen I start as a clone\n\nwhen I start as a clone\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nset rotation style [all around v]\nforever\n    if <(die) = [no]> then\n        point in direction (90)\n        if <(dark mode on?) = [true]> then\n            show\n        end\n    end\n    if <(dark mode on?) = [false]> then\n        hide\n    end\nend\n\ngo to [back v] layer\n\nwhen I receive [checkpoints? v]\nset [die v] to [no]\nif <(dark mode on?) = [true]> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\ngo [forward v] (217) layers\nhide\n\nwhen flag clicked\nhide\nwait (10) seconds\nhide\n\nwhen flag clicked\nwait (14.01) seconds\ngo [forward v] (5) layers\n\nwhen flag clicked\nforever\n    if <(die) = [no]> then\n        if <key (left arrow v) pressed?> then\n            switch costume to (costume2 v)\n            set x to (-40)\n        end\n        if <key (right arrow v) pressed?> then\n            switch costume to (costume1 v)\n            set x to (40)\n        end\n    else\n        switch costume to (costume3 v)\n    end\nend\n\nwhen I receive [death clone v]\nif <(dark mode on?) = [true]> then\n    set [die v] to [yes]\n    set [yvelocity v] to [0]\n    go to (hat shot v)\n    turn right (pick random (-10) to (10)) degrees\n    set rotation style [all around v]\n    if <(yvelocity) = [0]> then\n        set [yvelocity v] to (pick random (10) to (15))\n    end\n    repeat until <<touching (_edge_ v)?> and <(y position) < [-10]>>\n        change y by (yvelocity)\n        change [yvelocity v] by (-1)\n        turn right (turn 2) degrees\n    end\n    hide\n    stop [this script v]\nelse\n    stop [this script v]\nend\n\nwhen I receive [death clone v]\nif <(dark mode on?) = [true]> then\n    clear graphic effects\n    set [turn 2 v] to (pick random (-3) to (5))\n    set [brightness v] effect to (0)\n    set size to (90) %\n    show\nelse\n    stop [this script v]\nend\n\nwhen flag clicked\nforever\n    if <(die) = [no]> then\n        set y to (player y)\n    else\n    end\nend\n\n@Shop\n\nwhen I receive [shop open v]\nif <(shop?) = [open]> then\n    hide\nend\n\nwhen I receive [open setting v]\nhide\n\nwhen I receive [shop close v]\nshow\n\nwhen I receive [setting close v]\nshow\n\nwhen I receive [@shop keeper v]\n\nwhen I receive [research close v]\nshow\n\nwhen I receive [research open v]\nhide\n\nshow variable [level up cost v]\nshow variable [power stone v]\n\nwhen I receive [cloth close v]\nshow\n\nwhen I receive [cloth open v]\nhide\n\nwhen I receive [splim v]\nwait (3.1) seconds\nswitch costume to (costume2 v)\nswitch backdrop to (backdrop1 v)\nset size to (150) %\nshow\nforever\n    go to x: (-204) y: (96)\n    set drag mode [not draggable v]\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        set size to ((size) + (((130) - (size)) / (5))) %\n        if <mouse down?> then\n            set size to ((size) + (((135) - (size)) / (2))) %\n            broadcast (shop open v)\n            set [shop? v] to [open]\n        end\n        set size to ((size) + (((130) - (size)) / (5))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((110) - (size)) / (5))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nhide\n\n@moving enemy5\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    Clone at x: [5350] y: [285]\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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    if <(@>@>@>@status) = [alive]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition (((monster move) / (3)) + ((x) - (SCROLL X))) ((y) - (SCROLL Y))\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nhide\nforever\n    set [monster move v] to (([sin v] of ((timer) * (100)) ) * (90))\nend\n\nswitch costume to (1 v)\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    set rotation style [all around v]\n    point towards (player v)\n    go to [front v] layer\n    if <(direction) < [0]> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [enemy clone 3 v]\nwait (10) seconds\nshow\nset [@>@>@>@status v] to [alive]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (enemy setup 3 v)\n\nwhen I receive [enemy setup 3 v]\nforever\n    if <<touching (hat shot v)?> or <touching (sword v)?>> then\n        hide\n        set [position of enemy v] to [5]\n        broadcast (enemy clone 3 v)\n        set [@>@>@>@status v] to [dead]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nbroadcast (enemy setup 3 v)\nset [@>@>@>@status v] to [alive]\n\nClone at x: [3884] y: [953]\n\nwhen flag clicked\nforever\n    if <(y p) < [400]> then\n        if <((y p) + (10)) < (y)> then\n            if <(monster move) > [0]> then\n                point in direction (90)\n                switch costume to (1 v)\n                set [spike ball pointing v] to [right]\n            else\n                point in direction (-90)\n                switch costume to (2 v)\n                set [spike ball pointing v] to [left]\n            end\n        else\n            set rotation style [all around v]\n            point towards (player v)\n            go to [front v] layer\n            if <(direction) < [0]> then\n                switch costume to (2 v)\n            else\n                switch costume to (1 v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(y p) < ((y) + (100))> and <(y p) > (y)>> then\n        if <<<(x p) < [5560]> and <(x p) > [5120]>> and <(@>@>@>@status) = [alive]>> then\n            wait (0.09) seconds\n            if <(direction) > [0]> then\n                set [spike ball pointing v] to [right]\n                wait (0.05) seconds\n                create clone of (spike ball v)\n                wait (5.1) seconds\n            else\n                set [spike ball pointing v] to [left]\n                wait (0.05) seconds\n                create clone of (spike ball v)\n                wait (5.1) seconds\n            end\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\n@spike ball\n\nwhen I receive [box spawn v]\n\nwhen I start as a clone\nshow\nset [x vel v] to [0]\nset [y vel v] to [0]\nset [d vel v] to [0]\ngo to (moving enemy5 v)\npoint in direction (90)\nturn right (15) degrees\nif <(spike ball pointing) = [right]> then\n    change [x vel v] by (pick random (10) to (13))\nelse\n    change [x vel v] by (pick random (-10) to (-13))\nend\nchange [y vel v] by (10)\nforever\n    if <touching (ground 2 v)?> then\n        if <[1.1] > (Y vel)> then\n            set [y vel v] to ((Y vel) * (-0.7))\n        else\n            set [y vel v] to [1]\n        end\n    end\n    change [y vel v] by (-1)\n    change x by (X vel)\n    change y by (Y vel)\n    change x by (5)\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (3)\n        change [x vel v] by (0.3)\n    end\n    change x by (-10)\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (-3)\n        change [x vel v] by (-0.3)\n    end\n    change x by (5)\n    set [x vel v] to ((X vel) * (0.95))\n    set [d vel v] to ((D vel) * (0.75))\n    turn right (4) degrees\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (1)\n    end\n    turn left (0) degrees\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (-1)\n    end\n    turn right (0) degrees\n    turn right (0) degrees\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (2)\n    end\n    turn left (0) degrees\n    if <not <touching (ground 2 v)?>> then\n        change [d vel v] by (-2)\n    end\n    turn right (0) degrees\n    turn right (D vel) degrees\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    if <touching (ground 2 v)?> then\n        change y by (1)\n    end\n    change y by (-1)\n    if <(@!@!@) = [die]> then\n        delete this clone\n    end\nend\n\nif <<touching (_edge_ v)?> and <(y position) < [-170]>> then\nend\n\nwhen I start as a clone\nforever\n    wait (5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ncreate clone of (_myself_ v)\n\nwhen I receive [box spawn v]\n\nwhen I start as a clone\nforever\n    if <key (right arrow v) pressed?> then\n        change x by (-5)\n    end\n    if <key (left arrow v) pressed?> then\n        change x by (5)\n    end\nend\n\nwhen I receive [reset v]\nset [@!@!@ v] to [die]\n\nwhen I receive [checkpoints? v]\nset [@!@!@ v] to [alive]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n@moving enemy3\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    Clone at x: [5340] y: [12]\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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    if <(@>@>@>@status) = [alive]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition (((monster move) / (3)) + ((x) - (SCROLL X))) ((y) - (SCROLL Y))\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nhide\nforever\n    set [monster move v] to (([sin v] of ((timer) * (100)) ) * (90))\nend\n\nswitch costume to (1 v)\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    set rotation style [all around v]\n    point towards (player v)\n    go to [front v] layer\n    if <(direction) < [0]> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [enemy clone 1 v]\nwait (10) seconds\nshow\nset [@>@>@>@status v] to [alive]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (enemy setup 1 v)\n\nwhen I receive [enemy setup 1 v]\nforever\n    if <<touching (hat shot v)?> or <touching (sword v)?>> then\n        hide\n        set [position of enemy v] to [3]\n        broadcast (enemy clone 1 v)\n        set [@>@>@>@status v] to [dead]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nbroadcast (enemy setup 1 v)\nset [@>@>@>@status v] to [alive]\n\nClone at x: [3884] y: [953]\n\nwhen flag clicked\nforever\n    if <((y p) + (10)) < (y)> then\n        if <(monster move) > [0]> then\n            point in direction (90)\n            switch costume to (1 v)\n        else\n            point in direction (-90)\n            switch costume to (2 v)\n        end\n    else\n        set rotation style [all around v]\n        point towards (player v)\n        go to [front v] layer\n        if <(direction) < [0]> then\n            switch costume to (2 v)\n        else\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\n@shop page\n\nwhen flag clicked\nhide\ngo to [front v] layer\nset drag mode [not draggable v]\n\nwhen I receive [shop open v]\nif <(shop?) = [open]> then\n    switch costume to (1 v)\n    go to x: (180) y: (0)\n    set [x vel v] to [0]\n    show\n    repeat (39)\n        change [x vel v] by (((x position) - ((x position) * (2))) * (0.1))\n        set [x vel v] to ((x vel) * (0.8))\n        change x by (x vel)\n    end\n    change x by (1)\n    switch costume to (2 v)\nend\nforever\n    switch costume to ((info page number) + (2))\nend\n\nwhen I receive [shop close v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [shop open v]\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\n    if <(shop?) = [closed]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\n@checkpoint7\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [7]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\n    go to [back v] layer\nelse\n    hide\n    go to [back v] layer\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [6230] y: [-3]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [checkpoint 7 place x v] to (x)\nset [checkpoint 7 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint5 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [reset v]\nhide\n\n@shop exit\n\nwhen I receive [shop open v]\nif <(shop?) = [open]> then\n    set size to (20) %\n    set [ghost v] effect to (100)\n    wait (0.8) seconds\n    go to [front v] layer\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    switch costume to (costume1 v)\n    show\n    forever\n        go to x: (117) y: (60)\n        go to [front v] layer\n        go [forward v] (1) layers\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (15)\n            if <mouse down?> then\n                set size to ((size) + (((0) - (size)) / (2))) %\n                hide\n                broadcast (shop close v)\n                set [shop? v] to [close]\n                stop [this script v]\n            end\n            set size to ((size) + (((70) - (size)) / (2))) %\n        else\n            go to [front v] layer\n            point in direction (90)\n            set size to ((size) + (((60) - (size)) / (2))) %\n            clear graphic effects\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nchange x by (-10)\n\nchange y by (10)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@moving enemy4\n\nwhen I receive [setup v]\nswitch costume to (1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    Clone at x: [5720] y: [34]\nend\n\nbroadcast (reset v)\nbroadcast (setup v)\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    if <(@>@>@>@status) = [alive]> then\n        show\n    else\n        hide\n    end\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition (((fast monster move) / (1)) + ((x) - (SCROLL X))) ((y) - (SCROLL Y))\n\nset y to (0)\n\nreset timer\n\nwhen flag clicked\nhide\nforever\n    set [fast monster move v] to (([cos v] of ((timer) * (70)) ) * (170))\n    if <(fast monster move) > [20]> then\n        set [fast monster move v] to [20]\n    end\nend\n\nswitch costume to (1 v)\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    set rotation style [all around v]\n    point towards (player v)\n    go to [front v] layer\n    if <(direction) < [0]> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [enemy clone 2 v]\nwait (10) seconds\nshow\nset [@>@>@>@status v] to [alive]\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nbroadcast (enemy setup 2 v)\n\nwhen I receive [enemy setup 2 v]\nforever\n    if <<touching (hat shot v)?> or <touching (sword v)?>> then\n        hide\n        set [position of enemy v] to [4]\n        broadcast (enemy clone 2 v)\n        set [@>@>@>@status v] to [dead]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nbroadcast (enemy setup 2 v)\nset [@>@>@>@status v] to [alive]\n\nClone at x: [3884] y: [953]\n\nwhen flag clicked\nforever\n    if <((y p) + (20)) < (y)> then\n        if <(monster move) > [0]> then\n            point in direction (90)\n            switch costume to (1 v)\n        else\n            point in direction (-90)\n            switch costume to (2 v)\n        end\n    else\n        set rotation style [all around v]\n        point towards (player v)\n        go to [front v] layer\n        if <(direction) < [0]> then\n            switch costume to (2 v)\n        else\n            switch costume to (1 v)\n        end\n    end\nend\n\nwhen I start as a clone\ndelete this clone\n\n@front arrow\n\nwhen I receive [shop open v]\ngo to x: (158) y: (-110)\nforever\n    go to [front v] layer\n    if <<touching (mouse-pointer v)?> and <(info page number) = [0]>> then\n        show\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [1]\n            broadcast (shop page 2 v)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(info page number) = [1]>> then\n        show\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [2]\n            broadcast (shop page 3 v)\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(info page number) = [2]>> then\n        show\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [3]\n            broadcast (shop page 4 v)\n        end\n    end\n    if <(info page number) = [3]> then\n        set [brightness v] effect to (2)\n        hide\n    end\nend\n\nwait (0.1) seconds\n\nmove (10) steps\n\nwhen flag clicked\nhide\n\nwhen I receive [shop close v]\nhide\n\nwhen I receive [shop page 7 v]\nshow\n\nwhen I receive [shop open v]\nset [ghost v] effect to (100)\nset [info page number v] to [0]\nshow\nwait (0.6) seconds\ngo to [front v] layer\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    go to x: (116) y: (-83)\n    go to [front v] layer\n    go [forward v] (10000) layers\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            set size to ((size) + (((1) - (size)) / (2))) %\n        end\n        set size to ((size) + (((50) - (size)) / (2))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((45) - (size)) / (2))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I receive [shop open v]\nforever\n    if <(info page number) > [3]> then\n        hide\n    end\nend\n\n@back arrow\n\nwhen I receive [shop open v]\ngo to x: (-133) y: (-110)\nforever\n    go to [front v] layer\n    if <<(info page number) = [1]> and <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [0]\n            broadcast (shop page one v)\n            wait (0.1) seconds\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(info page number) = [2]>> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [1]\n            broadcast (shop page 2 v)\n            wait (0.1) seconds\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(info page number) = [3]>> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            set [info page number v] to [2]\n            broadcast (shop page 3 v)\n            wait (0.1) seconds\n        end\n    end\n    if <<touching (mouse-pointer v)?> and <(info page number) = [4]>> then\n        set [brightness v] effect to (2)\n        if <mouse down?> then\n            start sound [Button Click SOUND EFFECT Button SOUND MP3 v]\n            repeat (5)\n                change [brightness v] effect by (10)\n            end\n            repeat (5)\n                change [brightness v] effect by (-10)\n            end\n            broadcast (shop page 4 v)\n            set [info page number v] to [3]\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [shop close v]\nhide\nstop [other scripts in sprite v]\n\n\n\nwhen I receive [shop open v]\nforever\n    if <(info page number) > [0]> then\n        show\n    end\n    if <(info page number) < [1]> then\n        hide\n    end\nend\n\nbroadcast (shop page 7 v)\n\nwhen I receive [shop open v]\nforever\n    go to x: (-110) y: (-83)\n    go to [front v] layer\n    go [forward v] (1) layers\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        if <mouse down?> then\n            set size to ((size) + (((1) - (size)) / (2))) %\n        end\n        set size to ((size) + (((50) - (size)) / (2))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((45) - (size)) / (2))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@gemstone winter\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume3 v)\n    Clone at x: [230] y: [950]\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + ((gemstone y) / ([ceiling v] of (3) )))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [///lp x v] to [10]\n\nwhen flag clicked\nset [gemstone y v] to [0]\nforever\n    repeat (10)\n        change [gemstone y v] by (1)\n    end\n    repeat (10)\n        change [gemstone y v] by (-1)\n    end\nend\n\nwhen I receive [splim v]\nset [...stones found... v] to [0]\nforever\n    if <touching (player v)?> then\n        change [...stones found... v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\ndelete all of [relic collected v]\nforever\n    if <touching (player v)?> then\n        add [blue] to [relic collected v]\n        stop [this script v]\n    end\nend\n\nhide list [relic collected v]\n\nshow list [relic collected v]\n\nwhen flag clicked\nswitch costume to (costume2 v)\nclear graphic effects\nshow\nforever\n    if <[relic collected v] contains [blue]?> then\n        switch costume to (costume3 v)\n        start sound [Machine v]\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        forever\n            hide\n        end\n    end\nend\n\n@gemstone spring\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [setup v]\nswitch costume to (costume1 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume3 v)\n    Clone at x: [6300] y: [130]\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    forever\nelse\n    hide\nend\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + ((gemstone y) / ([ceiling v] of (3) )))\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nforever\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [///lp x v] to [10]\n\nwhen flag clicked\nset [gemstone y v] to [0]\nforever\n    repeat (10)\n        change [gemstone y v] by (1)\n    end\n    repeat (10)\n        change [gemstone y v] by (-1)\n    end\nend\n\nwhen I receive [splim v]\nset [...stones found... v] to [0]\nforever\n    if <touching (player v)?> then\n        change [...stones found... v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\ndelete all of [relic collected v]\nforever\n    if <touching (player v)?> then\n        add [pink] to [relic collected v]\n        stop [this script v]\n    end\nend\n\nhide list [relic collected v]\n\nshow list [relic collected v]\n\nwhen flag clicked\nswitch costume to (costume2 v)\nclear graphic effects\nshow\nforever\n    if <[relic collected v] contains [pink]?> then\n        switch costume to (costume3 v)\n        start sound [Machine v]\n        repeat (25)\n            change [ghost v] effect by (4)\n        end\n        forever\n            hide\n        end\n    end\nend\n\n@Gem activation\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (200) %\nif <(costume [number v]) = [1]> then\n    point in direction (pick random (1) to (360))\n    switch costume to (1 v)\n    go to x: (180) y: (180)\n    set [x vel v] to [0]\n    set [y vel v] to [200]\n    show\n    repeat (78)\n        change [x vel v] by (((x position) - ((x position) * (2))) * (0.05))\n        set [x vel v] to ((x vel) * (0.9))\n        change [y vel v] by (((y position) - ((y position) * (2))) * (0.05))\n        set [y vel v] to ((y vel) * (0.8))\n        change y by (y vel)\n        change x by (x vel)\n    end\n    change x by (1)\nelse\n    if <(costume [number v]) = [2]> then\n        point in direction (pick random (1) to (360))\n        switch costume to (2 v)\n        go to x: (-180) y: (180)\n        set [x vel v] to [0]\n        set [y vel v] to [200]\n        show\n        repeat (78)\n            change [x vel v] by (((x position) - ((x position) * (2))) * (0.05))\n            set [x vel v] to ((x vel) * (0.9))\n            change [y vel v] by (((y position) - ((y position) * (2))) * (0.05))\n            set [y vel v] to ((y vel) * (0.8))\n            change y by (y vel)\n            change x by (x vel)\n        end\n        change x by (1)\n    else\n        if <(costume [number v]) = [3]> then\n            point in direction (pick random (1) to (360))\n            switch costume to (3 v)\n            go to x: (-180) y: (-180)\n            set [x vel v] to [0]\n            set [y vel v] to [-200]\n            show\n            repeat (78)\n                change [x vel v] by (((x position) - ((x position) * (2))) * (0.05))\n                set [x vel v] to ((x vel) * (0.9))\n                change [y vel v] by (((y position) - ((y position) * (2))) * (0.05))\n                set [y vel v] to ((y vel) * (0.8))\n                change y by (y vel)\n                change x by (x vel)\n            end\n            change x by (1)\n        else\n            if <(costume [number v]) = [4]> then\n                point in direction (pick random (1) to (360))\n                switch costume to (4 v)\n                go to x: (180) y: (-180)\n                set [x vel v] to [0]\n                set [y vel v] to [-200]\n                show\n                repeat (78)\n                    change [x vel v] by (((x position) - ((x position) * (2))) * (0.05))\n                    set [x vel v] to ((x vel) * (0.9))\n                    change [y vel v] by (((y position) - ((y position) * (2))) * (0.05))\n                    set [y vel v] to ((y vel) * (0.8))\n                    change y by (y vel)\n                    change x by (x vel)\n                end\n                change x by (1)\n            else\n                show\n                point in direction (pick random (1) to (360))\n                repeat (pick random (10) to (13))\n                    move (10) steps\n                end\n                repeat (pick random (3) to (6))\n                    move (7) steps\n                end\n                repeat (pick random (4) to (8))\n                    move (3) steps\n                end\n            end\n        end\n    end\nend\ndelete this clone\n\nwhen I receive [white clone v]\nstart sound [Boom Cloud v]\nswitch costume to (costume2 v)\nrepeat (pick random (7) to (4))\n    create clone of (_myself_ v)\n    wait (pick random (0) to (0)) seconds\nend\n\nwait (2) seconds\n\nwhen I receive [white clone v]\nswitch costume to (costume2 v)\nrepeat (pick random (5) to (9))\n    switch costume to (pick random (7) to (8))\n    wait (pick random (0) to (0.002)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [6]> then\n    repeat (100)\n        change size by (-6)\n    end\nend\n\nwhen [space v] key pressed\n\nwhen I receive [splim v]\nforever\n    if <(length of [relic collected v]) = [4]> then\n        start sound [Teleport v]\n        switch costume to (1 v)\n        create clone of (_myself_ v)\n        next costume\n        wait (0.1) seconds\n        create clone of (_myself_ v)\n        point in direction (90)\n        next costume\n        wait (0.3) seconds\n        create clone of (_myself_ v)\n        next costume\n        wait (0.5) seconds\n        create clone of (_myself_ v)\n        next costume\n        wait (2.1) seconds\n        go to [front v] layer\n        switch costume to (costume1 v)\n        go to x: (0) y: (0)\n        set [x vel v] to [0]\n        set [y vel v] to [300]\n        show\n        repeat (15)\n            switch costume to (costume1 v)\n            change [y vel v] by (((size) - ((size) * (2))) * (0.05))\n            set [y vel v] to ((y vel) * (0.9))\n            turn right ((y vel) / (5)) degrees\n            change size by (y vel)\n            wait (0) seconds\n            switch costume to (costume4 v)\n        end\n        broadcast (white clone v)\n        change x by (1)\n        hide\n        wait (3) seconds\n        show\n        point in direction (90)\n        repeat (150)\n            point in direction (90)\n            set size to (100) %\n            switch costume to (5 v)\n            change [y vel v] by (((size) - ((size) * (1))) * (0.05))\n            set [y vel v] to ((y vel) * (0.8))\n            change size by (y vel)\n        end\n        repeat (10)\n            change size by (-10)\n        end\n        hide\n        broadcast (gem activated v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@tutorio\n\nwhen I receive [splim v]\nset [movable v] to [no]\ngo to [front v] layer\nswitch costume to (costume1 v)\nwait (3.5) seconds\nshow\npoint in direction (90)\nrepeat (10)\n    change size by (10)\nend\nrepeat until <(costume [number v]) = [9]>\n    wait until <<key (any v) pressed?> or <mouse down?>>\n    next costume\n    wait (0.5) seconds\nend\nwait (1) seconds\nrepeat (10)\n    change size by (-10)\nend\nset [movable v] to [yes]\nhide\nbroadcast (fax v)\nstop [this script v]\n\nwhen flag clicked\nhide\nset [movable v] to [no]\n\nwhen I receive [splim v]\nwait (3.5) seconds\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\n@sword\n\nwhen [b v] key pressed\nset [sword thing v] to [0]\nstart sound [Sword Slash Sound Effect v]\nshow\nif <(player direction) = [90]> then\n    point in direction (90)\n    repeat (3)\n        switch costume to (3 v)\n        change [sword thing v] by (3)\n        turn right (sword thing) degrees\n    end\n    repeat (5)\n        switch costume to (4 v)\n        change [sword thing v] by (5)\n        turn right (sword thing) degrees\n    end\n    hide\nelse\n    point in direction (90)\n    repeat (3)\n        switch costume to (5 v)\n        change [sword thing v] by (-3)\n        turn right (sword thing) degrees\n    end\n    repeat (5)\n        switch costume to (2 v)\n        change [sword thing v] by (-5)\n        turn right (sword thing) degrees\n    end\n    hide\nend\n\nswitch costume to (3 v)\npoint in direction (90)\nwait (0) seconds\nrepeat (1)\n    turn right (40) degrees\nend\nswitch costume to (4 v)\nrepeat (4)\n    turn right (20) degrees\nend\nhide\n\nswitch costume to (5 v)\npoint in direction (90)\nwait (0) seconds\nrepeat (1)\n    turn right (-40) degrees\nend\nswitch costume to (2 v)\nrepeat (4)\n    turn right (-20) degrees\nend\n\nrepeat (3)\n    turn right (15) degrees\nend\nrepeat (2)\n    turn right (10) degrees\nend\nrepeat (8)\n    turn right (5) degrees\nend\n\nwhen flag clicked\nhide\nforever\n    go to (player v)\nend\n\n@Checkpoint number\n\nwhen I receive [shop open v]\nif <(shop?) = [open]> then\n    hide\nend\n\nwhen I receive [open setting v]\nhide\n\nwhen I receive [shop close v]\nshow\n\nwhen I receive [setting close v]\nshow\n\nwhen I receive [@shop keeper v]\n\nwhen I receive [research close v]\nshow\n\nwhen I receive [research open v]\nhide\n\nwhen I receive [cloth close v]\nshow\n\nwhen I receive [cloth open v]\nhide\n\nwhen I receive [splim v]\nwait (3.2) seconds\nswitch costume to (costume2 v)\nswitch backdrop to (backdrop1 v)\nset size to (150) %\nshow\nforever\n    go to x: (-204) y: (42)\n    set drag mode [not draggable v]\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (15)\n        set size to ((size) + (((130) - (size)) / (5))) %\n    else\n        go to [front v] layer\n        point in direction (90)\n        set size to ((size) + (((110) - (size)) / (5))) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    switch costume to (check point)\nend\n\nwhen I receive [gem activated v]\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        change [check point v] by (1)\n        wait (0.2) seconds\n    end\n    if <(check point) > [8]> then\n        set [check point v] to [1]\n    end\n    if <(check point) < [1]> then\n        set [check point v] to [8]\n    end\nend\n\n@Backdrop2\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: ((player y) / (10))\n    move (pick random (5) to (5)) steps\nend\n\nwhen flag clicked\nswitch costume to (snow v)\ngo to x: (0) y: (0)\nforever\n    set [ghost v] effect to (10)\n    stamp\nend\n\nwhen flag clicked\nswitch costume to (snow v)\nforever\n    hide\n    wait (pick random (5) to (10)) seconds\n    repeat (3)\n        set [ghost v] effect to (0)\n        stamp\n    end\nend\n\nswitch costume to (rain v)\n\nwhen I receive [reset v]\nset [...ur mom... v] to [apples]\ngo to [front v] layer\nif <(biome music) = [1]> then\n    switch costume to (generating world snow v)\nend\nif <(biome music) = [2]> then\n    switch costume to (generating world berch v)\nend\nif <(biome music) = [3]> then\n    set [...ur mom... v] to [apples]\n    switch costume to (generating world jungle v)\nend\nwait (3) seconds\ngo to [back v] layer\nset [...ur mom... v] to [Bruh]\nbroadcast (...Ur Mom... v)\n\nforever\n    if <(biome music) = [3]> then\nend\n\nwhen I receive [...ur mom... v]\nforever\n    if <(biome music) = [1]> then\n        switch costume to (snow v)\n    end\n    if <(biome music) = [2]> then\n        switch costume to (berch v)\n    end\n    if <(biome music) = [3]> then\n        switch costume to (jungle v)\n    end\n    if <(...Ur mom...) = [apples]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [die v]\nset [...ur mom... v] to [apples]\ngo to [front v] layer\nif <(biome music) = [1]> then\n    switch costume to (generating world snow v)\nend\nif <(biome music) = [2]> then\n    switch costume to (generating world berch v)\nend\nif <(biome music) = [3]> then\n    set [...ur mom... v] to [apples]\n    switch costume to (generating world jungle v)\nend\nwait (3) seconds\ngo to [back v] layer\nset [...ur mom... v] to [Bruh]\nbroadcast (...Ur Mom... v)\n\n@line\n\nwhen I receive [splim v]\nwait (3.3) seconds\nshow\n\nwait (15) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I receive [splim v]\n\nwhen I receive [splim v]\nwait (3.3) seconds\nforever\n    go [forward v] (99) layers\n    go [forward v] (-10) layers\nend\n\nwhen I receive [splim v]\n\nwhen flag clicked\nhide\n\n@arrow\n\nwhen flag clicked\nhide\nforever\n    go [forward v] (9999999999999) layers\nend\n\nwhen flag clicked\nforever\n    set x to (-208)\n    set y to ((-100) + ((SCROLL Y) / (20)))\n    if <(SCROLL Y) > [2000]> then\n        set y to (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    set y to ((-100) + ((SCROLL Y) / (20)))\n    if <(SCROLL Y) > [2000]> then\n        set y to (0)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [splim v]\nwait (3.3) seconds\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [splim v]\nwait (3.3) seconds\nwait (0) seconds\nforever\n    go to [front v] layer\nend\n\nwhen I receive [splim v]\nwait (3.3) seconds\nwait (00) seconds\nforever\n    go to [front v] layer\nend\n\n@checkpoint8\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    if <(check point) = [8]> then\n        switch costume to (costume5 v)\n    else\n        switch costume to (costume2 v)\n    end\n    show\n    go to [back v] layer\nelse\n    hide\n    go to [back v] layer\nend\n\nwhen I receive [setup v]\nswitch costume to (costume2 v)\nhide\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (costume2 v)\n    Clone at x: [4510] y: [910]\nend\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\nset [checkpoint 8 place x v] to (x)\nset [checkpoint 8 place y v] to (y)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nbroadcast (setup v)\nbroadcast (reset v)\n\nwhen I receive [home screen v]\n\nstop [other scripts in sprite v]\nhide\ndelete this clone\n\ngo to [front v] layer\n\nwhen I receive [checkpoint5 v]\nswitch costume to (costume5 v)\n\nwhen flag clicked\n\nwhen I start as a clone\ndelete this clone\n\nwhen I receive [reset v]\nhide\n\n@._.\n\nwhen I receive [splim v]\n\nhide\nclear graphic effects\ngo to [front v] layer\nswitch costume to (costume1 v)\nwait (0) seconds\nshow\nset [brightness v] effect to (-100)\nrepeat (40)\n    change [brightness v] effect by (2.5)\nend\npoint in direction (90)\nrepeat (7)\n    wait (0.5) seconds\n    go to [front v] layer\n    repeat (20)\n        change [brightness v] effect by (-5)\n        go to [front v] layer\n    end\n    next costume\n    repeat (20)\n        change [brightness v] effect by (5)\n        go to [front v] layer\n    end\nend\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (999999999) layers\nend\n\nwhen flag clicked\nwait (0) seconds\nforever\n    go to [front v] layer\n    go [forward v] (999999999) layers\nend\n\n