✨ LEAP - Platformer ✨

Instructions: How to make something like this: https://www.youtube.com/watch?v=AF351Zpo-lw\nPress the green flag to start.\nClick the up arrow or space bar to jump\nClick the right arrow to go right\nClick the left arrow to go left\nAdding more levels soon!!!\nAll levels are possible.\nPlease like and star!\nThis game has over 200 blocks!

@Stage\n\n@Sprite1\n\nwhen flag clicked\nshow variable [level v]\nforever\n    if <(Level) = [31]> then\n        hide variable [level v]\n    end\nend\n\nwhen flag clicked\ngo to x: (305) y: (-198)\nset [speed x v] to [0]\nset [speed y v] to [0]\n\nwhen flag clicked\ngo to x: (323) y: (-195)\nset [speed x v] to [0]\nset [speed y v] to [0]\n\nwhen flag clicked\nforever\n    if <touching (portal v)?> then\n        broadcast (Next Level v)\n        go to x: (330) y: (-195)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen I receive [bug v]\ngo to x: (285) y: (-198)\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nMusic\nforever\n    if <key (left arrow v) pressed?> then\n        change [speed x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [speed x v] by (1)\n    end\n    change x by (speed x)\n    if <touching (sprite2 v)?> then\n        change x by ((speed x) * (-1))\n        set [speed x v] to [0]\n    else\n        set [speed x v] to ((speed x) * (.8))\n    end\n    change y by (speed y)\n    if <touching (sprite2 v)?> then\n        change y by ((speed y) * (-1))\n        set [speed y v] to [0]\n        if <(lock) = [0]> then\n            if <key (space v) pressed?> then\n                set [speed y v] to [10]\n                set [lock v] to [1]\n            else\n                if <key (up arrow v) pressed?> then\n                    set [speed y v] to [10]\n                    set [lock v] to [1]\n                end\n            end\n        end\n    else\n        change [speed y v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen I receive [reset v]\ngo to x: (309) y: (-198)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nstart sound [\[MP3DOWNLOAD v]\n\nwhen I receive [skip v]\ngo to x: (309) y: (-198)\n\nwhen flag clicked\nset [spritecolor v] to [0]\nforever\n    set [color v] effect to (SpriteColor)\nend\n\n@Sprite2\n\ndefine Next Level\nnext costume\nwait (0.1) seconds\nchange [level v] by (1)\n\nwhen I receive [next level v]\nNext Level\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\nbroadcast (Bug v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [skip v]\nnext costume\nchange [level v] by (1)\n\n@Portal\n\nwhen I receive [start v]\nwait (0.5) seconds\nshow\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen flag clicked\nshow\nwait (5) seconds\nbroadcast (Next Intro v)\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [next intro v]\nshow\n\nwhen I receive [startbutton v]\nbroadcast (Start v)\nhide\n\n@Sprite5\n\nwhen flag clicked\nhide\nwait (5.1) seconds\nshow\n\nwhen this sprite clicked\nbroadcast (Startbutton v)\nhide\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    show\nend\n\nwhen this sprite clicked\nbroadcast (Reset v)\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nforever\n    show\nend\n\nwhen this sprite clicked\nbroadcast (skip v)\n\n