MORE LEVELS! Platformer-Plant version

Instructions: Arrow keys to move.\n\nType the highest number of levels you made through!\n\nPLATFORMERS are soo hard eeeeeeeeeeek so\nThank you @Onourbookshelf for the codeee!\nIt picks random levels?\nWORKING ON MOBILE  CONTROLS!

@Stage\n\n@Hitbox\n\nwhen flag clicked\ngo to x: (-200) y: (-97)\npoint in direction (90)\nset rotation style [left-right v]\nset [x v] to [0]\nset [my variable v] to [0]\nforever\n    change [my variable v] by (-1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        fast\n        if <touching (levels v)?> then\n            change y by (-6)\n            xcoll\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                set [my variable v] to [12]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-8]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (my variable)\n    if <touching (levels v)?> then\n        ycoll\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(my variable) < [0]>> then\n            set [my variable v] to [14]\n        else\n            set [my variable v] to [0]\n        end\n    end\nend\n\ndefine fast\nrepeat (6)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <touching (levels v)?>>\n    if <(my variable) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\ndefine xcoll\nrepeat until <not <touching (levels v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    if <(x position) = [244]> then\n        go to x: (-200) y: (-97)\n        change [level v] by (1)\n    end\n    if <touching (sprite1 v)?> then\n        go to x: (-200) y: (-97)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@New Piskel (7) (1)\n\nwhen flag clicked\nforever\n    if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n        if <(costume [number v]) = [6]> then\n            switch costume to (new piskel \(7\) \(1\)3 v)\n        else\n            next costume\n        end\n        wait (0.05) seconds\n    else\n        switch costume to (new piskel \(7\) \(1\) v)\n    end\nend\n\nwhen flag clicked\nforever\n    go to (hitbox v)\nend\n\nwhen flag clicked\nforever\n    if <not <([abs v] of (my variable) ) = [0]>> then\n        switch costume to (new piskel \(7\) \(1\)2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\nend\n\nwhen I receive [right v]\npoint in direction (90)\n\nwhen I receive [left v]\npoint in direction (-90)\n\nwhen I receive [up v]\nchange y by (-90)\n\nwhen I receive [up v]\nchange y by (90)\n\n@New Piskel (7) (5)\n\n@New Piskel (7) (4)\n\n@New Piskel (7) (3)\n\n@New Piskel (7) (2)\n\n@Levels\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Levels2\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (arrow1-b v)\ngo to x: (-212) y: (135)\nshow\n\nwhen this sprite clicked\nbroadcast (left v)\n\n@Sprite4\n\nwhen flag clicked\nswitch costume to (arrow1-b v)\ngo to x: (208) y: (127)\nshow\n\nwhen this sprite clicked\nbroadcast (right v)\n\n@Sprite5\n\nwhen flag clicked\nswitch costume to (arrow1-b v)\ngo to x: (-10) y: (175)\nshow\n\nwhen this sprite clicked\nbroadcast (up v)\n\n@Sprite6\n\nwhen flag clicked\nswitch costume to (arrow1-b v)\ngo to x: (-5) y: (78)\nshow\n\nwhen this sprite clicked\nbroadcast (down v)\n\n