Lava - A Platformer (first remix)

Instructions: FULLSCREEN & PC RECOMMENDED\n--------------------------------------------------------------\nTHANK YOU GUYS 2000 VIEWS!!!!!!!!!!!!!!!!!!!\n--------------------------------------------------------------\nHi, I'm back with another platformer\nkinda sucks but yeah\nW, A, S, D, arrow keys, or mobile to move\n\n\n\n\n\n

@Stage\n\n@blank\n\n@Player\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (costume1 v)\nset rotation style [left-right v]\ngo to x: (-180) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [15]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        point in direction (-90)\n        change [x v] by (-0.8)\n        create clone of (_myself_ v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (0.8)\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    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) * (-1))\n        if <<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (ground v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (ground v)?>> then\n        set [y v] to [15]\n        create clone of (_myself_ v)\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\n    if <(x position) > [205]> then\n        change [level v] by (1)\n        broadcast (next level v)\n        go to x: (-180) y: (-50)\n        set [y v] to [15]\n    end\n    if <touching (water/spikes v)?> then\n        go to x: (-180) y: (-50)\n        set [y v] to [15]\n    end\n    if <touching (trampoline v)?> then\n        set [y v] to [17]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (costume2 v)\nrepeat (10)\n    change size by (-10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [skin v]\nswitch costume to (special v)\n\n@Ground\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Text\n\nwhen flag clicked\ngo to x: (0) y: (119)\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Water/Spikes\n\nwhen flag clicked\ngo to x: (36) y: (38)\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    repeat (5)\n        change y by (2)\n        wait (0.05) seconds\n    end\n    repeat (5)\n        change y by (-2)\n        wait (0.05) seconds\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Trampoline\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-123) y: (-68)\n\nwhen I receive [next level v]\nnext costume\n\n@Follow Thingy\n\nwhen flag clicked\nhide\ngo to x: (-6) y: (105)\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    wait (pick random (15) to (20)) seconds\n    switch costume to (reminder v)\n    go to x: (0) y: (105)\n    show\n    go to [front v] layer\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (3)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\n@Thumb\n\nwhen flag clicked\nshow\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Detector\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nset [actions \(love/fave\) v] to [0]\nforever\n    set [touching v] to [none]\n    Detect [love] at [-201] [-220]\n    Detect [fave] at [-201] [-220]\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [love]>\n    wait (0.2) seconds\n    if <(touching) = [love]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <(touching) = [fave]>\n    wait (0.2) seconds\n    if <(touching) = [fave]> then\n        change [actions \(love/fave\) v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Actions \(love/fave\)) = [2]> then\n        broadcast (Skin v)\n    end\nend\n\n@volume \n\nwhen flag clicked\nset [ghost v] effect to (25)\nbroadcast (false v)\ngo to x: (-220) y: (154)\nswitch costume to (3 v)\nset volume to (100) %\nrepeat until <key (enter v) pressed?>\n    play sound (pick random (1) to (8)) until done\nend\n\nwhen [enter v] key pressed\nstop all sounds\nplay sound [22 - Chaoz Japan v] until done\n\nmove (10) steps\n\nwhen this sprite clicked\n\nwhen I receive [false v]\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nset [pitch v] effect to ((-1) / ())\nset volume to (0) %\nswitch costume to (mute v)\nwait (.01) seconds\nbroadcast (true v)\n\nwhen I receive [true v]\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nset [pitch v] effect to (0)\nset volume to (100) %\nswitch costume to (3 v)\nwait (.01) seconds\nbroadcast (false v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n