1 Min - BlockFormer PLATFORMER

Instructions: Dis is an EASY platformer that you should complete in 1 MINUET! Believe me, you'll make it. BEGINNERS can make it too. \n\nMusic is Radioactive Cats?\nAlso mobile friendly\n\n#Games #Platformer #Blocks #ScratchCat #MobileFriendly

@Stage\n\n@Player\n\ndefine Platformer engine\nif on edge, bounce\nchange [y v] by (-0.5)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    change [x v] by (-1)\n    broadcast (message1 v)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    change [x v] by (1)\n    broadcast (message1 v)\nend\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <touching (blocks - ground v)?> then\n    change y by (1)\n    if <touching (blocks - ground v)?> then\n        change y by (1)\n        if <touching (blocks - ground v)?> then\n            change y by (1)\n            if <touching (blocks - ground v)?> then\n                change y by (1)\n                if <touching (blocks - ground v)?> then\n                    change y by (1)\n                    if <touching (blocks - ground v)?> then\n                        change y by (1)\n                        if <touching (blocks - ground v)?> then\n                            change y by (-6)\n                            change x by ((x) * (-1))\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                set [y v] to [10]\n                                if <(x) > [0]> then\n                                    set [x v] to [-10]\n                                else\n                                    set [x v] to [10]\n                                end\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange y by (y)\nif <touching (blocks - ground v)?> then\n    change y by ((y) * (-1))\n    set [y v] to [0]\nend\nchange y by (-0.5)\nif <<touching (blocks - ground v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    set [y v] to [10]\nend\nchange y by (0.5)\nif <touching (blocks - death v)?> then\n    go to x: (X Spawn) y: (Y Spawn)\nend\nif <touching (blocks - bounce v)?> then\n    set [y v] to [10]\nend\nif <(x position) > [200]> then\n    go to x: (X Spawn) y: (Y Spawn)\n    change [level v] by (1)\nend\n\nwhen flag clicked\npoint in direction (90)\nset size to (80) %\nset [y spawn v] to [-72]\nset [x spawn v] to [-202]\ngo to x: (X Spawn) y: (Y Spawn)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    Platformer engine\n    point in direction (90)\nend\n\nGround\n\ndefine Ground\n\nwhen I receive [message1 v]\nwait (.1) seconds\nnext costume\n\n@Blocks - Ground\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (Level)\nend\n\ndefine You Win!\n\ndefine Love\n\ndefine Fav\n\nFav\n\nLove\n\nYou Win!\n\ndefine Dat way to start again -->\n\nDat way to start again -->\n\n@Blocks - Death\n\nwhen flag clicked\nset [level v] to [1]\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\n@Blocks - Bounce\n\nwhen flag clicked\nset [level v] to [1]\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\ndefine Bounce\n\nBounce\n\n@Sprite1\n\ndefine 1 Min - Blockformer\n\n1 Min - Blockformer\n\nwhen flag clicked\nhide\nforever\n    play sound [Warrior Cats  Radioactive v] until done\nend\n\n