Basic | A Platformer

Instructions: ==================Basic==============\n----------------------------A platformer-------------------\nControls:\n- Arrow keys\n- WASD\n- Crouch\n- 10 levels\n\nBeware:\n- Spikes\n- Lava\n- All levels are possible\n\nI know it's really small! :P\nExcept for the moon, everything is by me! XD\nThis is my very first project!!\nAs well as my fist platformer!!\n\nI'm really proud of myself right now!\n\nSupport me by leaving a  LIKE  STAR  FOLLOW!\n\nThanks!!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nGot to check this!\nhttps://scratch.mit.edu/projects/872927760

@Stage\n\nwhen flag clicked\nforever\n    play sound [ColBreakz - 50.000 v] until done\nend\n\n@Player\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen flag clicked\ngo to [front v] layer\nset [level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x vel v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x vel v] by (1.5)\n    end\n    set [x vel v] to ((X vel) * (0.85))\n    change x by (X vel)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X vel) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X vel) > [0]> then\n                set [x vel v] to [-10]\n            else\n                set [x vel v] to [10]\n            end\n            set [y vel v] to [15]\n        else\n            set [x vel v] to [0]\n        end\n    end\n    change [y vel v] by (-1)\n    change y by (Y vel)\n    if <touching (ground v)?> then\n        change y by ((Y vel) - ((Y vel) * (2)))\n        set [y vel v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y vel v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level v] by (1)\n    end\n    if <touching (spikes v)?> then\n        start sound [Boing v]\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <touching (lava v)?> then\n            start sound [Boing v]\n            broadcast (Reset v)\n        end\n        if <touching (spikes v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [reset v]\nset [x vel v] to [0]\nset [y vel v] to [0]\ngo to x: (-216) y: (40)\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Ground\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Spikes\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@trail\n\nwhen flag clicked\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (21)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Moon\n\nwhen flag clicked\ngo to [back v] layer\nset size to (100) %\nforever\n    go to x: (214) y: (162)\n    repeat (15)\n        change size by (1)\n    end\n    wait (0.1) seconds\n    repeat (15)\n        change size by (-1)\n    end\nend\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Lava\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Text\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [thumbnail v]\ngo to [back v] layer\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\nbroadcast (thumbnail v)\nshow\n\n