Taco Panda -Platformer-

Instructions: #4 games trending!! :D\nInstructions\nWAD/Arrow Keys to Move/Jump\nFurther instructions in game.\nIn main menu, choose an option.\nTo show support leave a love and fave!\nminer 2 out now! https://scratch.mit.edu/projects/490344698/\ntop loved!! :D\ncredits:\n@thecactusmaster and @KilluaXlikesGon for some coding and art, check out the original\n@coltroc for the helmet and pickaxe\n@glizzygobbler765 for lava art\nmusic: unlimited\ncooltext.com for the logo

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [back v]\nnext backdrop\n\n@Sprite1\n\nwhen flag clicked\nswitch costume to (costume20 v)\nset rotation style [left-right v]\nshow\nset size to (100) %\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-227) y: (-90)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n        change x by (3)\n        if <touching (level v)?> then\n            change x by (-3)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n        change x by (-3)\n        if <touching (level v)?> then\n            change x by (3)\n        end\n    end\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                start sound [Jump v]\n                                set [yv v] to [10]\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 (level v)?> then\n        change y by ((yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [Jump v]\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <(y position) < [-170]> then\n        broadcast (die v)\n    end\nend\n\nwhen I receive [delete clones v]\ngo to x: (-227) y: (-90)\n\nwhen I receive [die v]\ngo to x: (-227) y: (-90)\n\nwhen I receive [another pixel v]\n\nwhen I receive [another spawn 2 v]\ngo to x: (36) y: (-139)\n\nwhen flag clicked\nforever\n    play sound [Radioactive.mp3 v] until done\n    wait (1) seconds\nend\n\nwhen I receive [win v]\nswitch costume to (costume20 v)\n\nnext costume\n\nwhen I receive [another spawn v]\ngo to x: (-227) y: (-90)\n\nwhen backdrop switches to [backdrop10 v]\n\n@Level\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-4) y: (-6)\n\nwhen I receive [hide v]\nset [ghost v] effect to (100)\n\nwhen I receive [show v]\nclear graphic effects\nnext costume\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [10]> then\n        broadcast (Another Spawn v)\n        wait until \n    else\n        if <(costume [number v]) = [10]> then\n            broadcast (Slime v)\n        else\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Another Spawn 2 v)\n        wait until \n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [20]> then\n        broadcast (Win v)\n        wait until \n    end\nend\n\n@Blocks\n\ndefine Render\nset [a v] to [0]\nset [b v] to [0]\nset [orbx v] to [0]\nset [orby v] to [0]\ngo to x: (-232) y: (-177)\nshow\nerase all\nrepeat (23)\n    repeat (50)\n        switch costume to (render v)\n        if <touching color (#7f7f7f)?> then\n            switch costume to (dirt block v)\n            stamp\n        else\n            if <touching color (#006622)?> then\n                switch costume to (grass block v)\n                stamp\n            else\n                if <touching color (#001966)?> then\n                    switch costume to (pixel v)\n                    create clone of (_myself_ v)\n                else\n                    if <touching color (#660000)?> then\n                        switch costume to (bad block v)\n                        create clone of (_myself_ v)\n                    else\n                        if <touching color (#cc7700)?> then\n                            switch costume to (stone block v)\n                            stamp\n                        else\n                            if <touching color (#7f00ff)?> then\n                                switch costume to (sand block v)\n                                stamp\n                            else\n                                if <touching color (#ffd499)?> then\n                                    switch costume to (snow block v)\n                                    stamp\n                                else\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change x by (16)\n    end\n    set x to (-232)\n    change y by (16)\nend\nbroadcast (hide v)\nhide\n\nwhen flag clicked\nRender\n\nwhen I receive [delete clones v]\ndelete this clone\n\nwhen I receive [reset tiles v]\nRender\n\ndefine Next Level\nbroadcast (Delete clones v)\nbroadcast (show v)\nbroadcast (Reset Tiles v)\nbroadcast (Another Pixel v)\nbroadcast (Start Level v)\nbroadcast (back v)\n\nwhen I start as a clone\nif <(costume [number v]) = [5]> then\n    wait until <touching (sprite1 v)?>\n    Next Level\nend\nif <(costume [number v]) = [4]> then\n    switch costume to (bad block v)\n    forever\n        wait until <touching (sprite1 v)?>\n        broadcast (die v)\n    end\nend\n\n@creeper_2\n\nwhen flag clicked\nhide\nset size to (7) %\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (die v)\n    end\nend\n\nwhen backdrop switches to [backdrop11 v]\ngo to x: (-153) y: (-92)\nshow\nrepeat until <(backdrop [name v]) = [backdrop12]>\n    glide (1.2) secs to x: (-153) y: (103)\n    wait (0.5) seconds\n    glide (1.2) secs to x: (-153) y: (-92)\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [backdrop10 v]\ngo to x: (-29) y: (-92)\nshow\nrepeat until <(backdrop [name v]) = [backdrop11]>\n    glide (1.2) secs to x: (-146) y: (-92)\n    wait (0.5) seconds\n    glide (1.2) secs to x: (-29) y: (-92)\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [backdrop12 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nhide\n\n