8Ball - Platformer

Instructions: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~Hey, Hey, Hey!\nThis is my first platformer EVER please don't judge\nALSO I VERY MUCH SUGGEST FULLSCREEN!\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nNext! please if you haven't already uh... ❤️+⭐️+Follicle\n(HA you thought i was gonna say follow) I mean you can if you want.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nIf you are reading this... I DO NOT TOLERATE ADVERTISING!!!!! pleaaaaase DONT!

@Stage\n\nwhen flag clicked\nforever\n    play sound [Fluorescent start music v] until done\nend\n\nwhen I receive [1 v]\nstart sound [Ding Sound Effect v]\n\nwhen flag clicked\nwait until <(lives) = [0]>\nstart sound [8-bit-game-explosion-sound-effect.mp3 v]\n\nwhen I receive [coin v]\nstart sound [coin v]\n\n@Sprite1\n\nwhen flag clicked\npoint in direction (90)\nset [my variable v] to [90]\nforever\n    turn right (((my variable) - (direction)) / (5)) degrees\n    if <(my variable) = [270]> then\n        point in direction (0)\n        set [my variable v] to [90]\n    end\n    if <(my variable) = [-270]> then\n        point in direction (0)\n        set [my variable v] to [-90]\n    end\n    if <((round ((direction) / (2))) * (2)) = [-178]> then\n        point in direction (180)\n        set [my variable v] to [180]\n    end\nend\n\nwhen flag clicked\nset [score v] to [0]\nswitch costume to (costume2 v)\nforever\n    if  then\n        switch costume to (costume1 v)\n        change [my variable v] by (90)\n        change [score v] by (1)\n        broadcast (1 v)\n        repeat (20)\n    end\n    if <key (up arrow v) pressed?> then\nend\n\nwait until <touching (sprite2 v)?>\n\nchange [my variable v] by (-90)\nwait until \n\nbroadcast (1 v)\n\nwhen I receive [1 v]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset drag mode [not draggable v]\n\n@Sprite2\n\nwhen flag clicked\nshow\nclear graphic effects\nset [lives v] to [5]\nswitch costume to (costume1 v)\nset [xv v] to [0]\nset [yv v] to [0]\ngo to x: (-60) y: (-60)\nforever\n    change [xv v] by (0.3)\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (-5)\n                            change x by ((Xv) * (-1))\n                            if <key (up arrow v) pressed?> then\n                                set [yv v] to [8]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [8]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\nend\n\nif <key (right arrow v) pressed?> then\n    change [xv v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    change [xv v] by (-1)\nend\n\nwhen I receive [1 v]\nset [eyiwldhf v] to [0]\nrepeat (20)\n    change x by (((-60) - (x position)) / (3))\n    change y by (((-50) - (y position)) / (3))\nend\n\nchange y by (((-60) - (x position)) / (3))\n\nwhen flag clicked\nshow list [leaderboard v]\nhide variable [score v]\nhide variable [☁ highscore v]\nforever\n    if <((round ((x position) / (5))) * (5)) = [65]> then\n        set [eyiwldhf v] to [1]\n        broadcast (2 v)\n    end\n    if <touching color (#ff6464)?> then\n        set [xv v] to [-5]\n        create clone of (_myself_ v)\n        change [lives v] by (-1)\n    end\n    if <(lives) < [1]> then\n        create clone of (_myself_ v)\n        broadcast (end v)\n        hide\n        if <(score) > (letter (1) of (☁ Highscore))> then\n            set [☁ highscore v] to (join (join (username) [: ]) (score))\n        end\n        if <(score) > (letter (length of (item (1) of [leaderboard v])) of (item (1) of [leaderboard v]))> then\n            insert (join (join (username) [: ]) (score)) at (1) of [leaderboard v] \n        end\n        if <<(score) > (letter (length of (item (2) of [leaderboard v])) of (item (2) of [leaderboard v]))> and <[] > (score)>> then\n            insert (join (join (username) [: ]) (score)) at (2) of [leaderboard v] \n        end\n        if <<(score) > (letter (length of (item (3) of [leaderboard v])) of (item (3) of [leaderboard v]))> and <((letter (length of (item (2) of [leaderboard v])) of (item (2) of [leaderboard v])) + ((length of (username)) + (2))) > (score)>> then\n            insert (join (join (username) [: ]) (score)) at (3) of [leaderboard v] \n        end\n    end\nend\n\nset [yv v] to [8]\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (4)\n    change [ghost v] effect by (25)\n    change size by (2)\nend\ndelete this clone\n\nwait (0) seconds\n\nshow variable [☁ highscore v]\nshow variable [score v]\nhide list [leaderboard v]\n\nwhen flag clicked\nadd [0] to [leaderboard v]\nadd [0] to [leaderboard v]\nadd [0] to [leaderboard v]\n\nwhen flag clicked\nforever\n    if <touching color (#ffc000)?> then\n        broadcast (coin v)\n        change [score v] by (1)\n        wait (0.1) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <(length of [leaderboard v]) > [3]> then\n        delete (length of [leaderboard v]) of [leaderboard v]\n    end\n    if <(length of [leaderboard v]) > [4]> then\n        delete ((length of [leaderboard v]) - (1)) of [leaderboard v]\n    end\nend\n\ninsert (join (join (username) [: ]) (score)) at (2) of [leaderboard v] \n\nset [score v] to [160]\n\ndelete all of [leaderboard v]\n\nset [score v] to [163]\n\nset [score v] to [0]\nset [☁ highscore v] to [0]\ndelete all of [leaderboard v]\nadd [0] to [leaderboard v]\nadd [0] to [leaderboard v]\nadd [0] to [leaderboard v]\n\nwait (0) seconds\n\nrepeat ((length of (item (1) of [leaderboard v])) - ((length of (username)) + (2)))\n\n@Sprite3\n\nwhen flag clicked\nforever\n    if <(eyiwldhf) = [1]> then\nend\n\ndefine generate (clones)\nhide\ngo to x: (-29) y: (-77)\nrepeat (clones)\n    change x by (pick random (12) to (48))\n    set x to ((round ((x position) / (12))) * (12))\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\ngo to [back v] layer\nshow\nrepeat until <(eyiwldhf) = [1]>\n    change y by (((-65) - (y position)) / (4))\nend\nif <touching color (#000000)?> then\n    change x by (12)\nend\ndelete this clone\n\nwhen I receive [2 v]\ngenerate (pick random (1) to (3))\n\n@Sprite4\n\nwhen I receive [end v]\nforever\n    change y by (((-250) - (y position)) / (20))\nend\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    wait (0.2) seconds\n    next costume\nend\n\n@Sprite5\n\nwhen flag clicked\ngo to x: (-50) y: (50)\nforever\n    erase all\n    set [digit v] to [0]\n    set [place value v] to [0]\n    repeat (10)\n        go to x: (((-70) - (place value)) + ((length of (score)) * (10))) y: (50)\n        go to [front v] layer\n        switch costume to ([abs v] of (letter ((length of (score)) - (digit)) of (score)) )\n        change [digit v] by (1)\n        change [place value v] by (10)\n        if <((length of (score)) * (10)) < (place value)> then\n            hide\n        else\n            show\n            stamp\n        end\n    end\nend\n\ngo to x: ((-60) + ((length of (score)) * (10))) y: (50)\ngo to [front v] layer\nswitch costume to ([abs v] of (letter ((length of (score)) - (1)) of (score)) )\nstamp\n\nif <(score) < [0]> then\nelse\nend\n\nset [score v] to [100]\n\nwait (0.9) seconds\n\n@Sprite6\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n