Lava- a platformer game  

Instructions: Dαrknєѕѕ— α Plαtfσrmєr\n=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋\nInstructions:\n• Mobile: Click and drag to move\n• PC: WASD or ←↑→\n=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋=≋\n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (2 v)\n    if <<(lvl) = [6]> or <<(lvl) = [7]> or <(lvl) = [8]>>> then\n        switch backdrop to (3 v)\n    end\nend\n\n@Blank\n\n@TN\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Player\n\nrepeat (5)\n    switch costume to (costume 2 v)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nStart\nforever\n    create clone of (_myself_ v)\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        create clone of (_myself_ v)\n        change [x v] by (1)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        create clone of (_myself_ v)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (ground v)?> then\n        change y by (1)\n        if <touching (ground v)?> then\n            change y by (1)\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (1)\n                        if <touching (ground v)?> then\n                            change x by ((X) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-7]\n                                else\n                                    set [x v] to [7]\n                                end\n                                set [y v] to [14]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <touching (ground v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [y v] to [15]\n            point in direction ((Y) * (0.5))\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (ground v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    hide variable [x v]\n    if <(x position) > [230]> then\n        change [lvl v] by (1)\n        set [y v] to [0]\n        set [x v] to [0]\n        go to x: (-190) y: (0)\n    end\n    if <<<touching (lava v)?> or <(y position) < [-170]>> or <touching (spikes v)?>> then\n        go to x: (-190) y: (40)\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [19]\n    end\nend\n\ndefine Start\nset [lvl v] to [1]\nset [x v] to [0]\nset [y v] to [0]\nset size to (40) %\ngo to x: (-190) y: (50)\nset drag mode [not draggable v]\n\nwhen I receive [blabla v]\ngo to x: (-190) y: (40)\n\nwhen flag clicked\nforever\n    switch costume to (normal v)\n    if <<<mouse down?> and <(y position) < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (up v)\n    end\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left v)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (up-right v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (up-left v)\n    end\nend\n\nwhen I start as a clone\nhide\n\nwhen flag clicked\nforever\n    play sound [  v] until done\nend\n\n@trampoline\n\nwhen flag clicked\nforever\n    switch costume to (lvl)\nend\n\n@Ground\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (lvl)\nend\n\n@Skip\n\nwhen flag clicked\ngo to [front v] layer\nset size to (60) %\ngo to x: (-200) y: (-152)\nforever\n    if <(lvl) = [11]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen this sprite clicked\nchange [lvl v] by (1)\nbroadcast (Blabla v)\n\n@cloud\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nshow\nset [ghost v] effect to (50)\nset [random v] to (pick random (1) to (2))\nif <(Random) = [1]> then\n    go to x: (-240) y: (pick random (120) to (160))\n    repeat until <[230] < (x position)>\n        change x by (3)\n    end\nelse\n    go to x: (240) y: (pick random (120) to (160))\n    repeat until <(x position) < [-230]>\n        change x by (-3)\n    end\nend\nrepeat (5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    hide\n    create clone of (_myself_ v)\n    set [ghost v] effect to (50)\n    wait (pick random (2) to (3)) seconds\nend\n\n@Spikes\n\nwhen flag clicked\nforever\n    show\n    go to [back v] layer\n    switch costume to (lvl)\n    if <<(lvl) = [3]> and <not <(username) = [-Morni-]>>> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@ \n\nwhen flag clicked\nforever\n    go to [back v] layer\n    show\n    switch costume to (3 v)\n    if <(lvl) = [10]> then\n        switch costume to (1 v)\n    end\n    if <(lvl) = [11]> then\n        switch costume to (2 v)\n    end\nend\n\n@words\n\nwhen flag clicked\nshow\nforever\n    switch costume to (lvl)\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    show\n    switch costume to (lvl)\n    set y to (([sin v] of ((timer) * (100)) ) * (10))\nend\n\n