-Pixel Platformer-

Instructions: Ty for all the loves!! <33 And also thanks to everyone for almost 500 followers! :"DD\n\n\nPLEASE NOTE THAT THERE IS ONLY 3 LEVELS SO FAR!\n\n             **MORE WILL BE COMING SOON**\n-Welcome to Pixel Platformer-\nCOLLECT coins\nCOLLECT keys\nAVOID birds\nAVOID frogs\nGet to the treasure chest, but make sure you've collected the key for it!\nUse the up, down, left, and right keys to move about. \n

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [nextlevel v]\nnext backdrop\n\nwhen flag clicked\nforever\n    play sound [Risk v] until done\nend\n\nwhen I receive [gameoverr v]\nswitch backdrop to (backdrop4 v)\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (45) y: (-117)\nforever\n    glide (1) secs to x: (45) y: (-172)\n    glide (1) secs to x: (45) y: (-117)\nend\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite5\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\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 x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\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    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen I receive [dieeffectt v]\nrepeat (10)\n    wait (0.02) seconds\n    change [ghost v] effect by (25)\nend\nrepeat (10)\n    wait (0.02) seconds\n    change [ghost v] effect by (-25)\nend\n\nwhen flag clicked\ngo to x: (-200) y: (-152)\n\nwhen I receive [dieeffectt v]\nglide (0.2) secs to x: (-200) y: (-152)\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (-200) y: (-152)\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (-200) y: (-152)\n\nwhen flag clicked\nforever\n    if <touching (sprite7 v)?> then\n        wait (0.5) seconds\n        broadcast (DieEffectt v)\n        broadcast (LoseALife v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite16 v)?> then\n        wait (0.5) seconds\n        broadcast (DieEffectt v)\n        broadcast (LoseALife v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite15 v)?> then\n        wait (0.5) seconds\n        broadcast (DieEffectt v)\n        broadcast (LoseALife v)\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-200) y: (-152)\n\nwhen flag clicked\nforever\n    if <touching (sprite19 v)?> then\n        wait (0.5) seconds\n        broadcast (DieEffectt v)\n        broadcast (LoseALife v)\n    end\nend\n\nwhen backdrop switches to [backdrop4 v]\ngo to x: (-200) y: (-152)\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Sprite6\n\n@Sprite7\n\nwhen flag clicked\ngo to x: (-209) y: (-31)\nforever\n    glide (1.5) secs to x: (-77) y: (-31)\n    glide (1.5) secs to x: (-209) y: (-31)\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (81) y: (12)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite2\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume1 v)\n\nwhen I receive [openchest v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [2]> and <touching (sprite5 v)?>> then\n        wait (0.5) seconds\n        broadcast (NextLevel v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop3 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (58) y: (12)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\n@Sprite8\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (-161) y: (-117)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite9\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop1 v]\ngo to x: (-181) y: (-118)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite10\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [losealife v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (gameoverr v)\n        hide\n    end\nend\n\n@Sprite11\n\n@Sprite12\n\nwhen flag clicked\nshow\nforever\n    if <touching (sprite5 v)?> then\n        broadcast (OpenChest v)\n        repeat (10)\n            wait (0.02) seconds\n            change [ghost v] effect by (25)\n        end\n        clear graphic effects\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\n@Sprite13\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen flag clicked\ngo to x: (-8) y: (-26)\nforever\n    glide (1) secs to x: (121) y: (-26)\n    glide (1) secs to x: (-8) y: (-26)\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite14\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen flag clicked\nshow\nforever\n    if <touching (sprite5 v)?> then\n        broadcast (OpenChest v)\n        repeat (10)\n            wait (0.02) seconds\n            change [ghost v] effect by (25)\n        end\n        clear graphic effects\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite15\n\nwhen flag clicked\ngo to x: (208) y: (-20)\nforever\n    glide (1.5) secs to x: (208) y: (-134)\n    glide (1.5) secs to x: (208) y: (-20)\nend\n\nglide (1.5) secs to x: (-77) y: (-31)\nglide (1.5) secs to x: (-209) y: (-31)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite16\n\nwhen flag clicked\ngo to x: (-23) y: (-113)\nforever\n    glide (1) secs to x: (-23) y: (-59)\n    glide (1) secs to x: (-23) y: (-113)\nend\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite17\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nshow\nforever\n    if <touching (sprite5 v)?> then\n        broadcast (OpenChest v)\n        repeat (10)\n            wait (0.02) seconds\n            change [ghost v] effect by (25)\n        end\n        clear graphic effects\n        hide\n    end\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-172) y: (70)\nforever\n    glide (1) secs to x: (105) y: (70)\n    glide (1) secs to x: (-172) y: (70)\nend\n\n@Sprite18\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\ngo to x: (-8) y: (-26)\nforever\n    glide (1) secs to x: (121) y: (-26)\n    glide (1) secs to x: (-8) y: (-26)\nend\n\nwhen backdrop switches to [backdrop3 v]\ngo to x: (-172) y: (52)\nforever\n    glide (1) secs to x: (101) y: (52)\n    glide (1) secs to x: (-172) y: (52)\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Sprite19\n\nwhen flag clicked\ngo to x: (-50) y: (-156)\nforever\n    glide (1) secs to x: (-50) y: (-42)\n    glide (1) secs to x: (-50) y: (-156)\nend\n\nglide (1.5) secs to x: (-77) y: (-31)\nglide (1.5) secs to x: (-209) y: (-31)\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen backdrop switches to [backdrop3 v]\nshow\n\ngo to x: (208) y: (-20)\nforever\n    glide (1.5) secs to x: (208) y: (-134)\n    glide (1.5) secs to x: (208) y: (-20)\nend\n\nwhen backdrop switches to [backdrop4 v]\nhide\n\n@Sprite20\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (42) y: (-113)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite21\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    wait (0.05) seconds\n    next costume\nend\n\nwhen backdrop switches to [backdrop2 v]\ngo to x: (67) y: (-112)\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        hide\n        play sound [Boop v] until done\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop3 v]\nhide\n\n@Sprite22\n\n@Sprite23\n\n@Sprite24\n\n@Sprite25\n\n@costume1\n\nwhen flag clicked\nforever\n    hide\nend\n\n@Sprite26\n\n