Sketch– A Platformer (Finished)

Instructions: WAD, Arrow Keys, or mobile controls- Move \nM- Mute U- Unmute\nR- Restart  S- Skip\n\nPeople, people, it's coal. Not poop lol.\n\nAll levels are 100% possible. \nReport any bugs or glitches.\n                 \n                                       Credits\n=============================================\nMusic: All I want For Christmas Is You- Mariah Carey\n@SullyBully for intro, modified by @DeViilz\n@DeViilz for trees (the good ones lol), presents, and TB.\n@iiKryptox for last level design (irl friend).\n@-GenZ- for all other art, coding, and idea.\n\n                                           Log\n=============================================\nReleased December 13, 2019 :D\nLoved by @noodlebot743\nLoved by @-TheGreenNinja-\nLoved by @BirdNani\nLoved by @CapAnimation\nLoved by @54329  \nLoved by @IgniteSpark\nLoved by @_Electric_\nLoved by @Hydreox\nLoved and favorited  by @PegasusHT\nLoved by @sharkyshar\nLoved and favorited by @dn_scrtch\nLoved and favorited by @MJM3\nLoved by @-ABIC-\nLoved and favorited by @diggerboy12\nLoved and favorited by @-LilWolfy-\nLoved by @C9M09B\nDecember 14, 2019: Top loved! (already geez).\nFavorited by @White_Lord\nLoved by @KingKey3\nLoved and favorited by @-Parjos-\nLoved by @Good-Website\nLoved by @starriberri\nLoved and favorited by @eunice0913\nLoved and favorited by @Twin138956Scratch\nLoved by @-Infitnite- (@Cicada_19).\n#7 on trending!\nLoved by @theworldsdumb0\nLoved by @SaltyCreeper67\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#platformers #Christmas #mobile #yeet #babyyoda

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Iron Fire v] until done\nend\n\nwhen I receive [next level v]\nnext backdrop\n\nif <(backdrop [number v]) = [11]> then\n    broadcast (end game v)\nend\n\n@Sprite1\n\nset size to (150) %\n\nforever\n\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\nend\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    go to (sprite2 v)\n    next costume\n    wait (0) seconds\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <<(direction) = [90]> and <key (up arrow v) pressed?>> then\n        point in direction (90)\n        set rotation style [all around v]\n        repeat (12)\n            go to (sprite2 v)\n            turn right (30) degrees\n        end\n        point in direction (90)\n        set rotation style [left-right v]\n    end\n    if <<(direction) = [-90]> and <key (up arrow v) pressed?>> then\n        point in direction (-90)\n        set rotation style [all around v]\n        repeat (12)\n            go to (sprite2 v)\n            turn left (30) degrees\n        end\n        point in direction (-90)\n        set rotation style [left-right v]\n    end\nend\n\nturn right (30) degrees\n\nturn right (30) degrees\n\n@Sprite3\n\nwhen flag clicked\n\nwhen I receive [begin v]\nset rotation style [left-right v]\nshow\nforever\n    if <not <key (up arrow v) pressed?>> then\n        if <([direction v] of [sprite1 v]) = [90]> then\n            change x by (((([x position v] of [sprite1 v]) - (x position)) - (33)) / (5))\n            change y by (((([y position v] of [sprite1 v]) - (y position)) + (33)) / (5))\n            point in direction (-90)\n        end\n        if <([direction v] of [sprite1 v]) = [-90]> then\n            change x by (((([x position v] of [sprite1 v]) - (x position)) - (-33)) / (5))\n            change y by (((([y position v] of [sprite1 v]) - (y position)) + (33)) / (5))\n            point in direction (90)\n        end\n    end\n    if <<([direction v] of [sprite1 v]) = [-90]> and <key (up arrow v) pressed?>> then\n        repeat (25)\n            change x by (((([x position v] of [sprite1 v]) - (x position)) - (-33)) / (5))\n            change y by (((([y position v] of [sprite1 v]) - (y position)) + (33)) / (5))\n            point in direction (90)\n        end\n    end\n    if <<([direction v] of [sprite1 v]) = [90]> and <key (up arrow v) pressed?>> then\n        repeat (25)\n            change x by (((([x position v] of [sprite1 v]) - (x position)) - (33)) / (5))\n            change y by (((([y position v] of [sprite1 v]) - (y position)) + (33)) / (5))\n            point in direction (-90)\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nhide\ngo to x: (-235) y: (-65)\nset [xv v] to [0]\nset [yv v] to [0]\nshow\nforever\n    set [ghost v] effect to (100)\n    change [yv v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-0.5)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (0.5)\n    end\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 (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [10]\n    end\n    change y by (0.5)\n    if <[235] < (x position)> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-230) y: (-65)\n        broadcast (next level v)\n    end\n    if <touching color (#ff9300)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-230) y: (-65)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [backdrop2 v]\n\nwhen backdrop switches to [backdrop3 v]\n\nshow\ngo to x: (215) y: (-88)\nbroadcast (attack v)\n\nhide\n\n@Sprite7\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (0) y: (0)\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nstop [all v]\n\nhide\n\nclear graphic effects\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nclear graphic effects\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nbroadcast (begin v)\n\n@Sprite5\n\nwhen flag clicked\n\nwhen I receive [attack v]\n\nwhen I start as a clone\n\nhide\nforever\n    go to (sprite4 v)\nend\n\nrepeat until <(backdrop [name v]) = [backdrop3]>\n    repeat (pick random (1) to (10))\n        create clone of (_myself_ v)\n    end\n    wait (pick random (2) to (3)) seconds\nend\n\npoint towards (sprite1 v)\nshow\nrepeat (pick random (10) to (100))\n    move (10) steps\n    turn right (pick random (-10) to (10)) degrees\n    if <<touching (_edge_ v)?> or <touching (sprite2 v)?>> then\n        delete this clone\n    end\nend\ndelete this clone\n\n