GRASSLAND - A PLATFORMER 

Instructions: ⭐️SUP  GUYS THIS IS @GAYANINDU_P WITH⭐️\n \n           \n           ⭐️ "GRASSLAND - A PLATFORMER⭐️\n\n\n                           ❤️GAME INFO❤️\n\n✳️CAN WE GET THIS GAME ON TRENDING !!!!!!!   AFTER 1 DAY AND 20 HOURS OF WORK, I SNAPED SOME BLOCKS AND MADE IT. HOPE U GUYS LIKE IT. IF YOU LEAVE A ❤️ AND A ⭐️. IF U CAN PROPOSE THIS GAME TO BE FEATURED. HERE IS THE STUDIO LINK.\n\nhttps://scratch.mit.edu/studios/28715018/\n\n                 ⭐️GAME INSTRUCTIONS⭐️\n\n✳️ARROW KEYS OR W,A,S,D KEYS TO MOVE\n( I  WILL BE ADDING MOBILE CONTROLS LATER)\n✳️AVOID SPIKES, EXPLOSIVES AND STUFF\n✳️AVOID LAVA\n✳️AVOID WATER\n✳️COLLECT COINS\n✳️PRESS P TO PAUSE. ( PRESS P AGAIN TO UNPAUSE)\n✳️CAN ADJUST VOLUMES TOO.\n\n\n                ✅✅✅✅MORE UPDATES COMING SOON!!!!!!✅✅✅✅✅✅\n\n⭐️MORE ITEMS\n⭐️GAME PLAY RECORDING WITH MAIN MENU\n⭐️AND MANY MORE (MAYBE PART 2)\n\n❇️COMMENT YOUR TIME AND THE SCORE ON THE COMMENT SECTION.\n\n✳️IF U WANT TO ADVERTISE DON'T COME HERE......\n✳️IF U WANT JOIN MY FAN CLUB AND @FAZAH_CHAMP 'S ONE CONTACT ME ON MY PROFILE.\n\n\n.STAY TUNED FOR MORE GAMES.......\n\nSO PEACE OUT STAY COOOL STAY SAFE. \n\nFOLLOW ME FOR AWESOME GAMES..\n\n:D

@Stage\n\nwhen flag clicked\nset volume to (100) %\nforever\n    set [sound v] to (volume)\nend\n\nwhen flag clicked\nplay sound (pick random (1) to (6)) until done\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@PLAYER\n\nwhen flag clicked\nwait (2.5) seconds\nif <(paused???) = [FALSE]> then\n    SAY : (join (join (join [HI!!!!!] [    ]) (username)) [  WELLCOME TO THE GRASSLAN - A PLATFORMER]) WITH DUDRATION [0] IN BETWEEN\nend\n\ndefine SAY : (text) WITH DUDRATION (duration) IN BETWEEN\nset [# v] to [0]\nset [text v] to []\nrepeat (length of (text))\n    change [# v] by (1)\n    say (join (TEXT) (letter (#) of (text)))\n    set [text v] to (join (TEXT) (letter (#) of (text)))\n    wait (duration) seconds\nend\nsay []\n\ndefine game on\nshow\nset size to (100) %\ngo to x: (-207) y: (-18)\nset [x pos v] to [0]\nset [y pos v] to [0]\nforever\n    if <(paused???) = [FALSE]> then\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <mouse down?>> then\n            point in direction (90)\n            change [x pos v] by (0.7)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <mouse down?>> then\n            point in direction (-90)\n            change [x pos v] by (-0.7)\n        end\n        change x by (X POS)\n        set [x pos v] to ((X POS) * (0.9))\n        if <<touching (greenland platform v)?> or <touching (items v)?>> then\n            change y by (0.5)\n            if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                change y by (0.5)\n                if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                    change y by (0.5)\n                    if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                        change y by (0.5)\n                        if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                            change y by (0.5)\n                            if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                                change y by (0.5)\n                                if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                                    change y by (0.5)\n                                    if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                                        change y by (0.5)\n                                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n                                            if <[0] < (X POS)> then\n                                                set [x pos v] to [-7]\n                                            else\n                                                set [x pos v] to [7]\n                                            end\n                                            set [y pos v] to [10]\n                                        else\n                                            set [x pos v] to ((X POS) * (-1.3))\n                                            change x by (X POS)\n                                            set [x pos v] to [0]\n                                            change x by ((X POS) / (5))\n                                        end\n                                        change y by (-4)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y pos v] by (-0.5)\n        change y by (Y POS)\n        if <<touching (greenland platform v)?> or <touching (items v)?>> then\n            set [y pos v] to ((Y POS) * (-0.25))\n            change y by (Y POS)\n            if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                change y by (Y POS)\n                if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                    change y by (Y POS)\n                    if <<touching (greenland platform v)?> or <touching (items v)?>> then\n                        change y by (Y POS)\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <<<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <mouse down?>> and <<touching (greenland platform v)?> or <touching (items v)?>>> then\n            set [y pos v] to [10]\n        end\n        change y by (1)\n        if <<<<<touching (danger v)?> or <touching (water v)?>> or <touching (lava v)?>> or <touching (saws v)?>> or <touching (saws2 v)?>> then\n            if <touching (water v)?> then\n                start sound [Splash v]\n            end\n            if <touching (lava v)?> then\n                start sound [Oops v]\n            end\n            if <touching (danger v)?> then\n                start sound [Pew v]\n            end\n            if <touching (saws v)?> then\n                start sound [SAW HIT v]\n            end\n            if <touching (saws2 v)?> then\n                start sound [SAW HIT v]\n            end\n            hide\n            RESET\n        end\n        if <touching (level line v)?> then\n            broadcast (NEXT LEVEL v)\n            NEXT LEVEL\n        end\n        if <touching (boink v)?> then\n            start sound [Big Boing v]\n            set [y pos v] to [14]\n        end\n        if <touching (enemy v)?> then\n            RESET\n            broadcast (RESET ENEMY v)\n        end\n        if <touching (victory v)?> then\n            start sound [Win v]\n            broadcast (you are home!!!!!!! v)\n        end\n    end\nend\n\ndefine RESET\nif <(paused???) = [FALSE]> then\n    show\n    go to x: (-207) y: (-18)\nend\n\ndefine NEXT LEVEL\nif <(paused???) = [FALSE]> then\n    go to x: (-207) y: (-18)\nend\n\ndefine PLAYER BODY\nif <(paused???) = [FALSE]> then\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <mouse down?>> then\n        switch costume to (up v)\n    else\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <mouse down?>> then\n            switch costume to (right v)\n        else\n            if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <mouse down?>> then\n                switch costume to (right v)\n            else\n                if <<<<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (a v) pressed?> and <key (w v) pressed?>>> or <mouse down?>> then\n                    switch costume to (up left v)\n                else\n                    if <<<<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (d v) pressed?> and <key (w v) pressed?>>> or <mouse down?>> then\n                        switch costume to (up right v)\n                    else\n                        if <not <key (any v) pressed?>> then\n                            switch costume to (player v)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(paused???) = [FALSE]> then\n    switch costume to (trail v)\n    repeat (50)\n        change [ghost v] effect by (10)\n        change size by (-5)\n    end\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        PLAYER BODY\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nset [level v] to [1]\nwait (2) seconds\nif <(paused???) = [FALSE]> then\n    game on\nend\n\nwhen [r v] key pressed\nif <(paused???) = [FALSE]> then\n    broadcast (restart v)\n    RESET\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nwhen flag clicked\nset [☁ time : v] to [0]\nset [☁ time : v] to [0]\nset [☁ time : v] to [0]\nchange [☁ viewers v] by (1)\n\n@GREENLAND PLATFORM\n\nwhen I receive [next level v]\nchange [level v] by (1)\nif <(paused???) = [FALSE]> then\n    next costume\nend\n\nwhen flag clicked\nif <(paused???) = [FALSE]> then\n    set [level v] to [1]\n    switch costume to (platform v)\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@DANGER\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nif <(paused???) = [FALSE]> then\n    switch costume to (spike7 v)\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@LEVEL LINE\n\nwhen flag clicked\nhide\nforever\n    if <(paused???) = [FALSE]> then\n        go to [back v] layer\n        repeat (10)\n            change [ghost v] effect by (10)\n            show\n        end\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@PAUSE\n\nwhen flag clicked\nset [paused??? v] to [FALSE]\n\nwhen I receive [grassland v]\n\nwhen [p v] key pressed\nhide variable [sound v]\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to [front v] layer\n        hide\n    end\n    if <(paused???) = [TRUE]> then\n        show\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(paused???) = [FALSE]> then\n        if <key (p v) pressed?> then\n            set [paused??? v] to [TRUE]\n            wait until <not <key (p v) pressed?>>\n        end\n    else\n        if <(paused???) = [TRUE]> then\n            if <key (p v) pressed?> then\n                set [paused??? v] to [FALSE]\n                wait until <not <key (p v) pressed?>>\n            end\n        end\n    end\nend\n\n@SOUND\n\nwhen I receive [grassland v]\n\nwhen flag clicked\nset [paused??? v] to [FALSE]\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    if <(paused???) = [TRUE]> then\n        show variable [sound v]\n        go to [front v] layer\n        show\n        go to [front v] layer\n    else\n        go to [front v] layer\n        hide\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nset volume to (100) %\n\n@CAP\n\nwhen flag clicked\nwait (2.5) seconds\ngo to [front v] layer\nforever\n    if <(paused???) = [FALSE]> then\n        go to (player v)\n        point in direction ([direction v] of [player v])\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@water\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to [back v] layer\n        if <([costume # v] of [greenland platform v]) = [4]> then\n            switch costume to (water v)\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [6]> then\n                switch costume to (water2 v)\n                show\n            else\n                if <([costume # v] of [greenland platform v]) = [11]> then\n                    switch costume to (water2 v)\n                    show\n                else\n                    if <([costume # v] of [greenland platform v]) = [14]> then\n                        switch costume to (water2 v)\n                        show\n                    else\n                        if <([costume # v] of [greenland platform v]) = [19]> then\n                            switch costume to (water2 v)\n                            show\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to x: (36) y: ([sin v] of ((X POS) * (10)) )\n        change [x pos v] by (3)\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@SUN\n\nwhen flag clicked\nset size to (100) %\nforever\n    if <(paused???) = [FALSE]> then\n        go to [back v] layer\n        repeat (50)\n            change size by (0.6)\n        end\n        repeat (50)\n            change size by (-0.6)\n        end\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@GRASSLAND TB\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to [front v] layer\n        go to x: (0) y: (0)\n        repeat (10)\n            go to [front v] layer\n            show\n        end\n        wait (2) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n        broadcast (GRASSLAND v)\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\n@lava\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to x: (36) y: ([sin v] of ((X POS) * (10)) )\n        change [x pos v] by (3)\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nwhen flag clicked\nforever\n    if <(paused???) = [FALSE]> then\n        go to [back v] layer\n        if <([costume # v] of [greenland platform v]) = [8]> then\n            switch costume to (water v)\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [10]> then\n                switch costume to (water v)\n                show\n            else\n                if <([costume # v] of [greenland platform v]) = [15]> then\n                    switch costume to (water v)\n                    show\n                else\n                    if <([costume # v] of [greenland platform v]) = [18]> then\n                        switch costume to (water v)\n                        show\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\n@BOINK\n\nwhen flag clicked\nhide\nset size to (100) %\nforever\n    go to [back v] layer\n    if <(paused???) = [FALSE]> then\n        if <touching (player v)?> then\n            repeat (3)\n                next costume\n            end\n        else\n            repeat until <(costume [number v]) = [1]>\n                switch costume to ((costume [number v]) - (1))\n            end\n        end\n    end\nend\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nwhen flag clicked\nforever\n    if <([costume # v] of [greenland platform v]) = [2]> then\n        go to x: (-129) y: (-70)\n        go to [back v] layer\n        show\n    else\n        if <([costume # v] of [greenland platform v]) = [18]> then\n            go to x: (-140) y: (-98)\n            go to [back v] layer\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [9]> then\n                go to x: (138) y: (-78)\n                go to [back v] layer\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\n@TEXT\n\nwhen flag clicked\nswitch costume to (n1 v)\nshow\n\nwhen I receive [next level v]\nif <(paused???) = [FALSE]> then\n    next costume\n    show\nend\n\nhide\n\nwhen I receive [reduce sound v]\nchange volume by (-1)\n\nwhen I receive [increase sound v]\nchange volume by (1)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@VOLUME DOWN\n\nwhen I receive [sound v]\nforever\n    if <(paused???) = [TRUE]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nbroadcast (REDUCE SOUND v)\n\nwhen [p v] key pressed\nbroadcast (SOUND v)\nhide\n\nwhen flag clicked\nhide\n\n@VOLUME UP\n\nwhen I receive [sound v]\nforever\n    if <(paused???) = [TRUE]> then\n        go to [front v] layer\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nbroadcast (INCREASE SOUND v)\nchange volume by (1)\n\nwhen [p v] key pressed\nhide\n\nwhen flag clicked\nhide variable [sound v]\n\nwhen flag clicked\nhide\n\n@SAWS\n\nwhen flag clicked\nhide\nforever\n    if <(paused???) = [FALSE]> then\n        turn right (15) degrees\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <([costume # v] of [greenland platform v]) = [2]> then\n        go to [back v] layer\n        go to x: (37) y: (12)\n        show\n    else\n        if <([costume # v] of [greenland platform v]) = [3]> then\n            go to [back v] layer\n            go to x: (158) y: (-76)\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [12]> then\n                go to [back v] layer\n                go to x: (59) y: (-99)\n                show\n            else\n                if <([costume # v] of [greenland platform v]) = [13]> then\n                    go to [back v] layer\n                    go to x: (-7) y: (71)\n                    show\n                else\n                    if <([costume # v] of [greenland platform v]) = [17]> then\n                        go to x: (-6) y: (-79)\n                        show\n                        go to [back v] layer\n                    else\n                        if <([costume # v] of [greenland platform v]) = [15]> then\n                            hide\n                            go to [back v] layer\n                            go to x: (-72) y: (-197)\n                            hide\n                        else\n                            hide\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@SAWS2\n\nwhen I receive [next level v]\nforever\n    if <([costume # v] of [greenland platform v]) = [5]> then\n        go to [back v] layer\n        go to x: (-49) y: (68)\n        show\n    else\n        if <([costume # v] of [greenland platform v]) = [7]> then\n            go to [back v] layer\n            go to x: (15) y: (-81)\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [11]> then\n                go to [back v] layer\n                go to x: (18) y: (-40)\n                show\n            else\n                if <([costume # v] of [greenland platform v]) = [13]> then\n                    go to [back v] layer\n                    go to x: (19) y: (-22)\n                    show\n                else\n                    if <([costume # v] of [greenland platform v]) = [15]> then\n                        go to [back v] layer\n                        go to x: (126) y: (-186)\n                        hide\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    if <(paused???) = [FALSE]> then\n        turn right (15) degrees\n    end\nend\n\n@CLOUDS\n\nwhen I start as a clone\ngo to [back v] layer\nset size to (pick random (60) to (100)) %\nset [ghost v] effect to (pick random (30) to (60))\nforever\n    go to [back v] layer\n    change x by (2)\n    if <(x position) > [230]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\nclear graphic effects\nset [ghost v] effect to (100)\nshow\nforever\n    go to [back v] layer\n    go to (random position v)\n    set x to (-270)\n    if <(y position) > [0]> then\n        set y to (pick random (80) to (180))\n    end\n    create clone of (_myself_ v)\n    wait (pick random (1) to (3)) seconds\nend\n\n@items\n\nwhen flag clicked\nif <(paused???) = [FALSE]> then\n    forever\n        if <([costume # v] of [greenland platform v]) = [14]> then\n            switch costume to (bridge v)\n            go to [back v] layer\n            go to x: (-89) y: (-96)\n            show\n        else\n            if <([costume # v] of [greenland platform v]) = [21]> then\n                switch costume to (open v)\n                go to [back v] layer\n                go to x: (-89) y: (-96)\n                show\n            else\n                hide\n            end\n        end\n    end\nend\n\nwhen I receive [you are home!!!!!!! v]\nswitch costume to (closed house v)\nstop [other scripts in sprite v]\n\n@victory\n\nwhen flag clicked\nhide\nif <(paused???) = [FALSE]> then\n    forever\n        if <([costume # v] of [greenland platform v]) = [21]> then\n            go to [back v] layer\n            go to x: (103) y: (-20)\n            show\n        else\n            hide\n        end\n    end\nend\n\nwhen I receive [you are home!!!!!!! v]\nhide\nstop [other scripts in sprite v]\n\n@BLANK\n\nwhen flag clicked\nset [☁ time : v] to [0]\nhide variable [☁ time : v]\nhide variable [☁ money v]\nwait (2.5) seconds\nshow variable [☁ money v]\nshow variable [☁ time : v]\n\nwhen flag clicked\nwait (2.5) seconds\nforever\n    if <(paused???) = [FALSE]> then\n        wait (1) seconds\n        change [☁ time : v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [greenland platform v]) = [21]> then\n        stop [other scripts in sprite v]\n    end\nend\n\n@ASSETS FOR U\n\n@CLOUD VARIABLES\n\ndefine encodeUsername (username)\nset [tempusername v] to []\nset [i v] to [1]\nrepeat (length of (username))\n    set [check v] to (item # of (letter (I) of (username)) in [char_list v])\n    if <(length of (Check)) = [1]> then\n        set [check v] to (join [0] (Check))\n    end\n    set [tempusername v] to (join (tempUsername) (Check))\n    change [i v] by (1)\nend\nset [☁ username v] to (tempUsername)\n\ndefine DecodeNumberToUsername (number)\nset [tempusername v] to []\nset [i v] to [1]\nrepeat ((length of (number)) / (2))\n    set [tempusername v] to (join (tempUsername) (item (join (letter (I) of (number)) (letter ((I) + (1)) of (number))) of [char_list v]))\n    change [i v] by (2)\nend\nset [☁ username v] to (tempUsername)\n\nwhen flag clicked\nencodeUsername (username)\nDecodeNumberToUsername (☁ USERNAME)\n\nwhen I receive [start v]\nDecodeNumberToUsername (☁ USERNAME)\n\nwhen flag clicked\nhide variable [username v]\n\nshow variable [username v]\n\n@COIN\n\nwhen I start as a clone\nswitch costume to (1 v)\nchange x by (20)\nforever\n    next costume\n    wait (.1) seconds\nend\n\nwhen I receive [next level v]\nshow\nwait until <(my variable) = [100]>\n\nwhen flag clicked\nswitch costume to (1 v)\nset [☁ money v] to [0]\nset size to (50) %\ngo to [front v] layer\nshow\nforever\n    if <(paused???) = [FALSE]> then\n        set [my variable v] to [1000]\n        next costume\n        wait (.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Coin v]\n        change [☁ money v] by (100)\n        hide\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ money v] by (100)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nwait (2.5) seconds\ngo to [front v] layer\nif <(LEVEL) = [1]> then\n    go to x: (-158) y: (-70)\nend\n\n@COIN2\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Coin v]\n        change [☁ money v] by (100)\n        hide\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ money v] by (100)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nchange x by (20)\nforever\n    if <(paused???) = [FALSE]> then\n        next costume\n        wait (.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\nshow\nwait until <(my variable) = [100]>\n\nwhen I receive [next level v]\nrepeat until <touching (player v)?>\n    if <([costume # v] of [greenland platform v]) = [19]> then\n        go to x: (-192) y: (-99)\n        show\n    else\n        hide\n    end\nend\n\n@COIN3\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Coin v]\n        change [☁ money v] by (100)\n        hide\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ money v] by (100)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nchange x by (20)\nforever\n    if <(paused???) = [FALSE]> then\n        next costume\n        wait (.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\nshow\nwait until <(my variable) = [100]>\n\nwhen I receive [next level v]\nrepeat until <touching (player v)?>\n    if <([costume # v] of [greenland platform v]) = [19]> then\n        go to x: (5) y: (-34)\n        show\n    else\n        hide\n    end\nend\n\n@COIN4\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        start sound [Coin v]\n        change [☁ money v] by (100)\n        hide\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        change [☁ money v] by (100)\n        wait until <not <touching (player v)?>>\n    end\nend\n\nwhen flag clicked\nswitch costume to (1 v)\nchange x by (20)\nforever\n    if <(paused???) = [FALSE]> then\n        next costume\n        wait (.1) seconds\n    end\nend\n\nwhen I receive [next level v]\nshow\nwait until <(my variable) = [100]>\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        delete this clone\n    end\nend\n\nwhen I receive [next level v]\nrepeat until <touching (player v)?>\n    if <([costume # v] of [greenland platform v]) = [19]> then\n        go to x: (197) y: (-105)\n        show\n    else\n        hide\n    end\nend\n\n@Love and fave reminder\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nwait (20) seconds\nrepeat (2)\n    switch costume to (costume1 v)\n    go to x: (-100) y: (105)\n    show\n    go to [front v] layer\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@detector\n\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-100)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (100)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nchange [clicks v] by (1000000)\nbroadcast (Message v)\nshow\ngo to [front v] layer\ngo to x: (-1) y: (-11)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n