Leaf Clicker | A Clicker #all #games #art #platformer #trending
@Stage\n\nwhen flag clicked\nset volume to (100) %\nswitch backdrop to (1 v)\nset [frame \(bg\) v] to [0]\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (5)) until done\nend\n\nwhen flag clicked\nset [cloud stats v] to [closed]\nset [shop v] to [closed]\nforever\n    if <<(Cloud Stats) = [open]> or <(Shop) = [open]>> then\n        switch backdrop to (plain v)\n    else\n        broadcast (BG v)\n    end\nend\n\nwhen I receive [bg v]\nchange [frame \(bg\) v] by (0.35)\nswitch backdrop to ((1) + ([floor v] of ((frame \(BG\)) mod (13)) ))\n\n@Blank\n\n@Blank2\n\n@Blank3\n\n@Click This!\n\nwhen flag clicked\ngo to [front v] layer\nshow\nset [plants v] to [0]\nset [earnings per click v] to [1]\nset [earnings per second v] to [0]\nset [lag v] to [on]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [size v] to (((Size) * (.2)) + (((105) - (size)) / (4)))\n        if <mouse down?> then\n            change [plants v] by (Earnings per click)\n            start sound [Click Effect v]\n            wait until <not <mouse down?>>\n            broadcast (Click v)\n        end\n    else\n        set [size v] to (((Size) * (.7)) + (((90) - (size)) / (4)))\n    end\n    change size by (Size)\nend\n\nwhen I receive [shop v]\nhide\n\nwhen I receive [close shop v]\nset size to (50) %\nshow\n\nwhen I receive [cloud stats  v]\nhide\n\nwhen I receive [close cloud stats v]\nset size to (50) %\nshow\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [plants v] by (Earnings per second)\nend\n\nwhen flag clicked\nforever\n    if <key (l v) pressed?> then\n        if <(Lag) = [on]> then\n            set [lag v] to [off]\n        else\n            if <(Lag) = [off]> then\n                set [lag v] to [on]\n            end\n        end\n        wait until <not <key (l v) pressed?>>\n    end\nend\n\n@Buttons\n\nwhen flag clicked\nshow\npoint in direction (90)\nset [shop v] to [closed]\ngo to x: (0) y: (0)\nclear graphic effects\nbroadcast (Start v)\n\nwhen I start as a clone\nforever\n    if <(_Clone ID) = [shop]> then\n        switch costume to (shop v)\n        if <touching (mouse-pointer v)?> then\n            set [_size v] to (((_Size) * (.2)) + (((105) - (size)) / (4)))\n            if <mouse down?> then\n                set [shop v] to [open]\n                broadcast (Shop v)\n                repeat (10)\n                    change x by (-20)\n                    turn left (2) degrees\n                    change [ghost v] effect by (5)\n                    turn right (1) degrees\n                end\n                wait until <(Shop) = [closed]>\n                repeat (10)\n                    change x by (13.5)\n                    turn right (2) degrees\n                    change [ghost v] effect by (-5)\n                    turn left (1) degrees\n                end\n            end\n        else\n            set [_size v] to (((_Size) * (.7)) + (((100) - (size)) / (4)))\n        end\n        change size by (_Size)\n    end\nend\n\nwhen I receive [start v]\nshow\ngo to x: (-175) y: (-145)\nswitch costume to (shop v)\nset [_clone id v] to [shop]\ncreate clone of (_myself_ v)\ngo to x: (195) y: (-140)\nswitch costume to (cloud button v)\nset [_clone id v] to [cloud]\ncreate clone of (_myself_ v)\nswitch costume to ( v)\nhide\n\nwhen I start as a clone\nforever\n    if <(_Clone ID) = [cloud]> then\n        switch costume to (cloud button v)\n        if <touching (mouse-pointer v)?> then\n            set [_size v] to (((_Size) * (.2)) + (((105) - (size)) / (4)))\n            if <mouse down?> then\n                set [cloud stats v] to [open]\n                broadcast (Cloud Stats  v)\n                repeat (10)\n                    change x by (13)\n                    turn right (5) degrees\n                    change [ghost v] effect by (5)\n                    turn left (1) degrees\n                end\n                wait until <(Cloud Stats) = [closed]>\n                repeat (10)\n                    change x by (-13)\n                    turn left (5) degrees\n                    change [ghost v] effect by (-5)\n                    turn right (1) degrees\n                end\n            end\n        else\n            set [_size v] to (((_Size) * (.7)) + (((90) - (size)) / (4)))\n        end\n        change size by (_Size)\n    end\nend\n\nwhen I receive [shop v]\nforever\n    if <(_Clone ID) = [cloud]> then\n        switch costume to (cloud button v)\n        repeat (10)\n            change x by (13)\n            turn right (5) degrees\n            change [ghost v] effect by (5)\n            turn left (1) degrees\n        end\n        wait until <(Shop) = [closed]>\n        repeat (10)\n            change x by (-13)\n            turn left (5) degrees\n            change [ghost v] effect by (-5)\n            turn right (1) degrees\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [cloud stats  v]\nforever\n    if <(_Clone ID) = [shop]> then\n        switch costume to (shop v)\n        repeat (10)\n            change x by (-20)\n            turn left (2) degrees\n            change [ghost v] effect by (5)\n            turn right (1) degrees\n        end\n        wait until <(Cloud Stats) = [closed]>\n        repeat (10)\n            change x by (13.5)\n            turn right (2) degrees\n            change [ghost v] effect by (-5)\n            turn left (1) degrees\n        end\n        stop [this script v]\n    end\nend\n\n@Shop_Menu\n\ndefine Create Items\nswitch costume to (item 1 v)\nrepeat (12)\n    create clone of (_myself_ v)\n    next costume\n    change [clone_id v] by (1)\nend\n\nwhen I receive [shop v]\nset [1 v] to [10]\nset [2 v] to [95]\nset [3 v] to [950]\nset [4 v] to [9000]\nset [5 v] to [90000]\nset [6 v] to [150000]\nset [7 v] to [1000000]\nset [8 v] to [50000]\nset [9 v] to [500000]\nset [10 v] to [1000000]\nset [11 v] to [50000000]\nset [12 v] to [1000000000]\nset [clone_id v] to [1]\nhide\ngo to x: (0) y: (0)\nwait (0.1) seconds\nCreate Items\ngo [backward v] (12) layers\nswitch costume to (menu v)\nshow\nset size to (100) %\n\nwhen I start as a clone\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set [_size v] to (((_Size) * (.2)) + (((105) - (size)) / (4)))\n        if <mouse down?> then\n            change [ghost v] effect by (25)\n            wait until <not <mouse down?>>\n            clear graphic effects\n        end\n    else\n        set [_size v] to (((_Size) * (.7)) + (((90) - (size)) / (4)))\n    end\n    change size by (_Size)\nend\n\nwhen I start as a clone\nshow\nforever\n    go to x: (-30) y: ((((costume [number v]) * (-110)) + ((0) - (Scroll Y))) + (380))\n    if <<(y position) > [200]> or <(y position) < [-1000]>> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [close shop v]\nhide\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        if <(Clone_ID) = [1]> then\n            if <<(Plants) > (1)> or <(Plants) = (1)>> then\n                change [earnings per click v] by (1)\n                change [plants v] by ((1) * (-1))\n                broadcast (Purchased v)\n            else\n                broadcast (Not enough plants v)\n            end\n        else\n            if <(Clone_ID) = [2]> then\n                if <<(Plants) > (2)> or <(Plants) = (2)>> then\n                    change [earnings per click v] by (10)\n                    change [plants v] by ((2) * (-1))\n                    broadcast (Purchased v)\n                else\n                    broadcast (Not enough plants v)\n                end\n            else\n                if <(Clone_ID) = [3]> then\n                    if <<(Plants) > (3)> or <(Plants) = (3)>> then\n                        change [earnings per click v] by (100)\n                        change [plants v] by ((3) * (-1))\n                        broadcast (Purchased v)\n                    else\n                        broadcast (Not enough plants v)\n                    end\n                else\n                    if <(Clone_ID) = [4]> then\n                        if <<(Plants) > (4)> or <(Plants) = (4)>> then\n                            change [earnings per click v] by (500)\n                            change [plants v] by ((4) * (-1))\n                            broadcast (Purchased v)\n                        else\n                            broadcast (Not enough plants v)\n                        end\n                    else\n                        if <(Clone_ID) = [5]> then\n                            if <<(Plants) > (5)> or <(Plants) = (5)>> then\n                                change [earnings per click v] by (1000)\n                                change [plants v] by ((5) * (-1))\n                                broadcast (Purchased v)\n                            else\n                                broadcast (Not enough plants v)\n                            end\n                        else\n                            if <(Clone_ID) = [6]> then\n                                if <<(Plants) > (6)> or <(Plants) = (6)>> then\n                                    change [earnings per click v] by (50000)\n                                    change [plants v] by ((6) * (-1))\n                                    broadcast (Purchased v)\n                                else\n                                    broadcast (Not enough plants v)\n                                end\n                            else\n                                if <(Clone_ID) = [7]> then\n                                    if <<(Plants) > (7)> or <(Plants) = (7)>> then\n                                        change [earnings per click v] by (500000)\n                                        change [plants v] by ((7) * (-1))\n                                        broadcast (Purchased v)\n                                    else\n                                        broadcast (Not enough plants v)\n                                    end\n                                else\n                                    if <(Clone_ID) = [8]> then\n                                        if <<(Plants) > (8)> or <(Plants) = (8)>> then\n                                            change [earnings per second v] by (10000)\n                                            change [plants v] by ((8) * (-1))\n                                            broadcast (Purchased v)\n                                        else\n                                            broadcast (Not enough plants v)\n                                        end\n                                    else\n                                        if <(Clone_ID) = [9]> then\n                                            if <<(Plants) > (9)> or <(Plants) = (9)>> then\n                                                change [earnings per second v] by (100000)\n                                                change [plants v] by ((9) * (-1))\n                                                broadcast (Purchased v)\n                                            else\n                                                broadcast (Not enough plants v)\n                                            end\n                                        else\n                                            if <(Clone_ID) = [10]> then\n                                                if <<(Plants) > (10)> or <(Plants) = (10)>> then\n                                                    change [earnings per second v] by (500000)\n                                                    change [plants v] by ((10) * (-1))\n                                                    broadcast (Purchased v)\n                                                else\n                                                    broadcast (Not enough plants v)\n                                                end\n                                            else\n                                                if <(Clone_ID) = [11]> then\n                                                    if <<(Plants) > (11)> or <(Plants) = (11)>> then\n                                                        change [earnings per second v] by (1000000)\n                                                        change [plants v] by ((11) * (-1))\n                                                        broadcast (Purchased v)\n                                                    else\n                                                        broadcast (Not enough plants v)\n                                                    end\n                                                else\n                                                    if <(Clone_ID) = [12]> then\n                                                        if <<(Plants) > (12)> or <(Plants) = (12)>> then\n                                                            change [earnings per click v] by (50000000)\n                                                            change [plants v] by ((12) * (-1))\n                                                            broadcast (Purchased v)\n                                                        else\n                                                            broadcast (Not enough plants v)\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(Clone_ID) = [1]> then\n            say [» Hibiscus]\n        else\n            if <(Clone_ID) = [2]> then\n                say [» Sunflower]\n            else\n                if <(Clone_ID) = [3]> then\n                    say [» Birch Tree]\n                else\n                    if <(Clone_ID) = [4]> then\n                        say [» Poplar Tree]\n                    else\n                        if <(Clone_ID) = [5]> then\n                            say [» Fertilizer]\n                        else\n                            if <(Clone_ID) = [6]> then\n                                say [» Palm Tree]\n                            else\n                                if <(Clone_ID) = [7]> then\n                                    say [» 1 Normal Worker]\n                                else\n                                    if <(Clone_ID) = [8]> then\n                                        say [» 100 Normal Workers]\n                                    else\n                                        if <(Clone_ID) = [9]> then\n                                            say [» 1 Silver Worker]\n                                        else\n                                            if <(Clone_ID) = [10]> then\n                                                say [» 100 Silver Workers]\n                                            else\n                                                if <(Clone_ID) = [11]> then\n                                                    say [» 1 Gold Worker]\n                                                else\n                                                    if <(Clone_ID) = [12]> then\n                                                        say [» 100 Gold Workers]\n                                                    else\n                                                        say []\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    else\n        say []\n    end\nend\n\n@Scroll\n\nwhen I receive [shop v]\nset [scroll y v] to [0]\nshow\ngo to x: (-222) y: (150)\nforever\n    go to [front v] layer\n    wait until <<touching (mouse-pointer v)?> and <mouse down?>>\n    repeat until <not <mouse down?>>\n        go to x: (-222) y: (mouse y)\n        if <(y position) > [150]> then\n            set y to (150)\n        end\n        if <(y position) < [-150]> then\n            set y to (-150)\n        end\n        set [scroll y v] to (((y position) - (150)) * (3.3))\n    end\nend\n\nwhen I receive [close shop v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nhide\n\n@Text\n\ndefine Instant Type || Font [Nunito]  Write: (text) At x: (x) y (y) Size: (s) Colour (c) Brightness (b) Spacing: (sp)\nset [text v] to (text)\ngo to [front v] layer\nhide\nswitch costume to (0 v)\nset size to (s) %\ngo to x: (x) y: (y)\nset [color v] effect to (c)\nset [brightness v] effect to (b)\nset [index v] to [1]\nrepeat (length of (text))\n    create clone of (_myself_ v)\n    change x by ((s) * (sp))\n    change [index v] by (1)\nend\n\nwhen flag clicked\nforever\n    broadcast (Delete L v)\n    Instant Type || Font [Nunito]  Write: (join [:] (Plants)) At x: [-145] y [150] Size: [100] Colour [0] Brightness [-100] Spacing: [0.2]\nend\n\nwhen I receive [delete l v]\ndelete this clone\n\nwhen I start as a clone\nshow\nswitch costume to (letter (Index) of (Text))\n\nwhen flag clicked\nset [text v] to [ ]\n\nwhen I receive [close shop v]\nforever\n    broadcast (Delete L v)\n    Instant Type || Font [Nunito]  Write: (join [:] (Plants)) At x: [-145] y [150] Size: [100] Colour [0] Brightness [-100] Spacing: [0.2]\nend\n\nwhen I receive [shop v]\nstop [other scripts in sprite v]\nbroadcast (Delete L v)\n\nwhen I receive [cloud stats  v]\nstop [other scripts in sprite v]\nrepeat (25)\n    broadcast (Delete L v)\n    broadcast (Cloud Text v)\nend\n\nwhen I receive [close cloud stats v]\nforever\n    broadcast (Delete L v)\n    Instant Type || Font [Nunito]  Write: (join [:] (Plants)) At x: [-145] y [150] Size: [100] Colour [0] Brightness [-100] Spacing: [0.2]\nend\n\nwhen I receive [cloud text v]\nInstant Type || Font [Nunito]  Write: (☁ MostPlants) At x: [-217] y [65] Size: [80] Colour [0] Brightness [-100] Spacing: [0.2]\nInstant Type || Font [Nunito]  Write: (join [By: ] (MostPlantsPlayerDisplay)) At x: [-217] y [30] Size: [80] Colour [0] Brightness [-100] Spacing: [0.2]\nInstant Type || Font [Nunito]  Write: (☁ World Clicks) At x: [-217] y [-55] Size: [80] Colour [0] Brightness [-100] Spacing: [0.2]\nInstant Type || Font [Nunito]  Write: (Earnings per click) At x: [-18] y [-101] Size: [80] Colour [0] Brightness [-100] Spacing: [0.2]\nInstant Type || Font [Nunito]  Write: (Earnings per second) At x: [-33] y [-144] Size: [80] Colour [0] Brightness [-100] Spacing: [0.2]\n\n@Close Button\n\nwhen I receive [shop v]\nshow\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set [_size v] to (((_Size) * (.2)) + (((105) - (size)) / (4)))\n        set [ghost v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            hide\n            broadcast (Close Shop v)\n            set [shop v] to [closed]\n            clear graphic effects\n        end\n    else\n        clear graphic effects\n        set [_size v] to (((_Size) * (.7)) + (((90) - (size)) / (4)))\n    end\n    change size by (_Size)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [cloud stats  v]\nshow\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set [_size v] to (((_Size) * (.2)) + (((105) - (size)) / (4)))\n        set [ghost v] effect to (25)\n        if <mouse down?> then\n            wait until <not <mouse down?>>\n            hide\n            broadcast (Close Cloud Stats v)\n            set [cloud stats v] to [closed]\n            clear graphic effects\n        end\n    else\n        clear graphic effects\n        set [_size v] to (((_Size) * (.7)) + (((90) - (size)) / (4)))\n    end\n    change size by (_Size)\nend\n\n@Purchased\n\nwhen I receive [purchased v]\nbroadcast (PT v)\n\nwhen flag clicked\nset [purchase v] to [no]\nshow\ngo to [front v] layer\nswitch costume to (position hack v)\ngo to x: (0) y: (-200)\nset [ghost v] effect to (100)\n\nwhen I receive [not enough plants v]\nbroadcast (NT v)\n\nwhen I receive [pt v]\nshow\ngo to [front v] layer\nswitch costume to (purchased! v)\nrepeat (10)\n    change y by (5)\n    change [ghost v] effect by (-10)\nend\nwait (1.5) seconds\nrepeat (10)\n    change y by (-5)\n    change [ghost v] effect by (10)\nend\nset [purchase v] to [no]\nswitch costume to (position hack v)\ngo to x: (0) y: (-200)\nhide\n\nwhen I receive [nt v]\nshow\ngo to [front v] layer\nswitch costume to (not enough plants! v)\nrepeat (10)\n    change y by (5)\n    change [ghost v] effect by (-10)\nend\nwait (1.5) seconds\nrepeat (10)\n    change y by (-5)\n    change [ghost v] effect by (10)\nend\nset [purchase v] to [no]\nswitch costume to (position hack v)\ngo to x: (0) y: (-200)\nhide\n\n@Clicker clone2\n\nwhen I start as a clone\nchange [clones2 v] by (1)\nset [clone v] to [1]\nset [xv v] to (pick random (-15) to (15))\nrepeat until <[3] < ([abs v] of (xv) )>\n    set [xv v] to (pick random (-15) to (15))\nend\nset [yv v] to (pick random (15) to (17.0))\ngo to (clicker v)\nset [clicker clone2: x v] to (x position)\nset [clicker clone2: y v] to (y position)\nshow\nset [dir v] to [90]\nrepeat until <(Clicker clone2: y) < [-210]>\n    change [dir v] by (((xv) / ([abs v] of (xv) )) * (8))\n    set size to (1000000000) %\n    change [yv v] by (-1)\n    set [xv v] to ((xv) * (0.95))\n    point in direction (dir)\n    go to x: (Clicker clone2: x) y: (Clicker clone2: y)\n    change [clicker clone2: x v] by (xv)\n    change [clicker clone2: y v] by (yv)\n    set size to (200) %\nend\nchange [clones2 v] by (-1)\ndelete this clone\n\nwhen flag clicked\nswitch costume to (leaf1 v)\nset [clone v] to [0]\nhide\n\nwhen I receive [click v]\nif <(Lag) = [on]> then\n    if <(clone) = [0]> then\n        switch costume to (join [Leaf] (pick random (1) to (2)))\n        create clone of (_myself_ v)\n    end\nelse\n    delete this clone\nend\n\n@Cloud_Menu\n\nwhen I receive [cloud stats  v]\nset [ghost v] effect to (80)\nwait (0.1) seconds\nshow\nrepeat (10)\n    change [ghost v] effect by (-8)\nend\ngo to x: (0) y: (0)\ngo to [front v] layer\nforever\n    change [color v] effect by (0.5)\nend\n\nwhen I receive [close cloud stats v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nhide\n\n@Cloud Highscore\n\ndefine Encode (string)\nAdd Characters\nset [~i v] to [1]\nset [☁ mostplantsplayer v] to []\nset [mostplantsplayerdisplay v] to (username)\nrepeat (length of (username))\n    set [☁ mostplantsplayer v] to (join (☁ MostPlantsPlayer) (item # of (letter (~i) of (username)) in [characters v]))\n    change [~i v] by (1)\nend\n\ndefine Decode\nAdd Characters\nset [~i v] to [1]\nset [decode v] to []\nrepeat ((length of (☁ MostPlantsPlayer)) / (2))\n    set [decode v] to (join (Decode) (item (join (letter (~i) of (☁ MostPlantsPlayer)) (letter ((~i) + (1)) of (☁ MostPlantsPlayer))) of [characters v]))\n    set [mostplantsplayerdisplay v] to (Decode)\n    change [~i v] by (2)\nend\n\ndefine Add Characters\nset [char v] to [abcdefghijklmnopqrstuvwxyz1234567890-_/?!@#$%^&*\(\)]\ndelete all of [characters v]\nrepeat (9)\n    add [] to [characters v]\nend\nset [~i v] to [1]\nrepeat (length of (char))\n    add (letter (~i) of (char)) to [characters v]\n    change [~i v] by (1)\nend\nadd [] to [characters v]\nadd [] to [characters v]\n\nwhen flag clicked\nforever\n    broadcast (Encode v)\nend\n\nwhen I receive [click v]\nchange [☁ world clicks v] by (1)\n\nwhen I receive [encode v]\nif <(☁ MostPlants) < (Plants)> then\n    set [☁ mostplants v] to (Plants)\n    Decode\n    Encode (username)\nend\n\n@TN\n\n@Sprite1\n\nwhen flag clicked\nshow\ngo to [front v] layer\nswitch costume to (position hack v)\ngo to x: (20) y: (-200)\nset [ghost v] effect to (100)\nforever\n    wait (pick random (10) to (20)) seconds\n    show\n    go to [front v] layer\n    switch costume to (costume1 v)\n    repeat (10)\n        change y by (8)\n        change [ghost v] effect by (-9)\n    end\n    wait (3) seconds\n    repeat (10)\n        change y by (-5)\n        change [ghost v] effect by (10)\n    end\n    switch costume to (position hack v)\n    go to x: (20) y: (-200)\n    hide\nend\n\n
------------❤️ and ⭐️ this project for more games---------Pro Tip:\nClick, click and click  ( XD )\n\nInstructions:\n❯❯ Click and get more plants\n❯❯ Once you get enough plants, go to the shop and \n     trade plants for power-ups\n❯❯ Get the high score and get a free shoutout on my \n     profile!\n❯❯ Love, Fav and follow for more games!\n\nGoals:\n100 views   \n500 views    \n1000 views   \n2000 views   \n5000 views  \n\n50 loves    \n100 loves    \n200 loves    \n500 loves\n\n50 favs      \n100 favs     \n200 favs     \n500 favs