Biomes || A 360°  Platformer

Instructions: >>Welcome to BIomes my first 360°  platformer\n>>Arrow keys<<\n>>Mobile<<\n>>Like and Fav<<\n  Should I make more platformers comment yes or no

@Stage\n\nwhen I receive [flag clicked v]\nswitch backdrop to (1 v)\nforever\n    if <(level) = [3]> then\n        switch backdrop to (2 v)\n    end\n    if <(level) = [4]> then\n        switch backdrop to (3 v)\n    end\n    if <(level) = [6]> then\n        switch backdrop to (4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Sunshine v] until done\nend\n\n@platform\n\nwhen I receive [flag clicked v]\ngo to [front v] layer\nshow\nbroadcast (Respawn v)\nSet size to [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.3)\n    end\n    if <<key (left arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> then\n        change [d vel v] by (0.3)\n    end\n    set [d vel v] to ((D vel) * (0.8))\n    turn right (D vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (-1)\n                        if <touching (player v)?> then\n                            change y by (4)\n                            turn right ((D vel) * (-1)) degrees\n                            set [d vel v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y vel)\n    if <touching (player v)?> then\n        change y by ((Y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\ndefine Set size to (size)\nswitch costume to (size v)\nset size to (size) %\nswitch costume to (1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-14) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\n\nwhen flag clicked\nbroadcast (Flag Clicked v)\n\nwhen flag clicked\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\nwhen I receive [new level v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nnext costume\nbroadcast (Respawn v)\n\nwhen flag clicked\n\nchange [level v] by (1)\n\nwhen I receive [flag clicked v]\nif <(costume [number v]) = [6]> then\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\n\nwhen I receive [flag clicked v]\nshow\nforever\n    if <not <key (any v) pressed?>> then\n        switch costume to (costume v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume3 v)\n    end\n    if <key (up arrow v) pressed?> then\n        switch costume to (cosutme4 v)\n    end\n    if  then\n        switch costume to (costume5 v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (costume6 v)\n    end\nend\n\nwhen I receive [flag clicked v]\nforever\n    change y by (-5)\n    if <touching color (#9c8e8e)?> then\n        set [y vel v] to [-20]\n        play sound [boing v] until done\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#800000)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#ff6666)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#55d600)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#00ff5e)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#affbff)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#d6d6d6)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#00f0e4)?> then\n        change [d vel v] by (0.8)\n        change [y vel v] by (0.8)\n    end\n    if <touching color (#ffe154)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#fdd308)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#aaaaaa)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#cecece)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#ff5454)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#fc0808)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#ffad00)?> then\n        broadcast (Respawn v)\n        play sound [crunch v] until done\n    end\n    if <touching color (#5500ff)?> then\n        broadcast (new level v)\n        change [level v] by (1)\n    end\n    change y by (5)\nend\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nchange [level v] by (1)\n\n@Thumbnail\n\nwhen [timer v] > (0)\ngo to [front v] layer\nset [color v] effect to (0)\nshow\nset [color v] effect to (0)\n\nwhen flag clicked\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nforever\n    reset timer\nend\n\n@Flash\n\nwhen flag clicked\nhide\n\nwhen I receive [respawn v]\ngo to [front v] layer\nshow\nset [ghost v] effect to (0)\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n