Lava Escape -A Platformer #Platformer                                  
@Stage\n\n@Player\n\nwhen flag clicked\nshow\ngo to x: (-169) y: (-78)\nset [vel y v] to [0]\nset [vel x v] to [0]\nforever\n    if <(play/pause) = [play]> then\n        gravedad [-1] saltar [15] movimiento horizontal [1.2] fricción [0.8] rampa [8]\n    end\nend\n\nwhen I receive [pl v]\ngo to x: (-169) y: (-78)\n\nwhen I receive [nl v]\ngo to x: (-169) y: (-78)\n\ndefine gravedad (gravedad y) saltar (saltar) movimiento horizontal (movimiento horizontal) fricción (fricción) rampa (rampa)\nchange [vel y v] by (gravedad y)\nchange y by (vel y)\nif <touching (level v)?> then\n    repeat until <not <touching (level v)?>>\n        change y by ((([abs v] of (vel y) ) / (vel y)) * (-1))\n    end\n    set [vel y v] to (<<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(([abs v] of (vel y) ) / (vel y)) = [-1]>> * (saltar))\nend\nset [vel x v] to (((vel x) + ((<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> * ((movimiento horizontal) * (-1))) + (<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> * (movimiento horizontal)))) * (fricción))\nchange x by (vel x)\nset [rampa \(objeto que sube\) v] to [0]\nrepeat until <<(rampa \(objeto que sube\)) = ((rampa) * (-1))> or <not <touching (level v)?>>>\n    change y by (1)\n    change [rampa \(objeto que sube\) v] by (-1)\nend\nif <touching (level v)?> then\n    change y by (rampa \(objeto que sube\))\n    repeat until <not <touching (level v)?>>\n        change x by ((([abs v] of (vel x) ) / (vel x)) * (-1))\n    end\nend\nif <not <([costume # v] of [level v]) = [12]>> then\n    if <(x position) > [236]> then\n        broadcast (NL v)\n        go to x: (-169) y: (-78)\n    end\nend\nif <touching (lava v)?> then\n    broadcast (RL v)\n    go to x: (-169) y: (-78)\nend\nif <(y position) < [-176]> then\n    broadcast (RL v)\n    go to x: (-169) y: (-78)\nend\n\n@Level\n\nwhen I receive [nl v]\nnext costume\n\nwhen flag clicked\nshow\ngo to x: (16) y: (12)\nswitch costume to (1 v)\n\nwhen I receive [pl v]\nswitch costume to ((costume [number v]) - (1))\n\n@Lava\n\nwhen flag clicked\nshow\ngo to x: (-559) y: (9)\ngo to x: (-559) y: (9)\nforever\n    if <not <([costume # v] of [level v]) = [12]>> then\n        if <(play/pause) = [play]> then\n            if <not <(x position) = [-91]>> then\n                change x by (2.5)\n                go to [back v] layer\n            end\n            if <(x position) = [-91]> then\n                go to x: (-559) y: (9)\n                if <not <(x position) = [-91]>> then\n                    change x by (2.5)\n                    go to [back v] layer\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [nl v]\ngo to x: (-559) y: (9)\n\nwhen I receive [rl v]\ngo to x: (-559) y: (9)\n\nwhen I receive [pl v]\ngo to x: (-559) y: (9)\n\n@Play/pause\n\nwhen flag clicked\ngo to x: (-188) y: (161)\nset [y v] to [nor]\nswitch costume to (play v)\nforever\n    go to [front v] layer\n    if <(costume [number v]) = [1]> then\n        set [play/pause v] to [pause]\n    end\n    if <(costume [number v]) = [2]> then\n        set [play/pause v] to [play]\n    end\n    if <touching (mouse-pointer v)?> then\n        set size to (40) %\n        set [ghost v] effect to (25)\n    else\n        set size to (30) %\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        if <(costume [name v]) = [pause]> then\n            set [reader v] to [Play]\n        end\n        if <(costume [name v]) = [play]> then\n            set [reader v] to [Stop]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [my variable v] to [Not]\n    else\n        set [my variable v] to []\n    end\nend\n\n@PL\n\nwhen flag clicked\ngo to x: (-222) y: (161)\nswitch costume to (play v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set size to (40) %\n        set [ghost v] effect to (25)\n    else\n        set size to (30) %\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <([costume # v] of [level v]) = [1]>> then\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (PL v)\n            wait (0.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [reader v] to [Previous Level]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [my variable 2 v] to [Not]\n    else\n        set [my variable 2 v] to []\n    end\nend\n\n@NL\n\nwhen flag clicked\ngo to x: (-152) y: (160)\nswitch costume to (play v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        set size to (40) %\n        set [ghost v] effect to (25)\n    else\n        set size to (30) %\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <([costume # v] of [level v]) = [12]>> then\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (NL v)\n            wait (0.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set [reader v] to [Next Level]\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [my variable 3 v] to [Not]\n    else\n        set [my variable 3 v] to []\n    end\nend\n\n@Love,fave,follow\n\nwhen flag clicked\nforever\n    show\n    if <touching (mouse-pointer v)?> then\n        go to x: (171) y: (-89)\n    else\n        go to x: (171) y: (-167)\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Reader\n\nwhen flag clicked\nforever\n    set size to (10) %\n    if <(Reader) = [Play]> then\n        Go to "mouse pointer"\n        switch costume to (play v)\n        show\n    end\n    if <(Reader) = [Stop]> then\n        Go to "mouse pointer"\n        switch costume to (stop v)\n        show\n    end\n    if <(Reader) = [Previous Level]> then\n        Go to "mouse pointer"\n        switch costume to (previous level v)\n        show\n    end\n    if <(Reader) = [Next Level]> then\n        Go to "mouse pointer"\n        switch costume to (skip level v)\n        show\n    end\nend\n\ndefine Go to "mouse pointer"\ngo to (mouse-pointer v)\nchange y by (-40)\nchange x by (10)\n\nwhen flag clicked\nforever\n    if <<<(my variable) = [Not]> and <(my variable 2) = [Not]>> and <(my variable 3) = [Not]>> then\n        hide\n    else\n        show\n    end\nend\n\n
Hi again, I'm abuelomateo and welcome to a new game called "Lava escape". It is a platformer in wich  you have to escape from lava across a pipe. And complete the 11 levels to escape from the lava. This is project 100% code by me and 100% art by me and 100% idea by me.\n\n        Instructions are very easy...\n\n...Arow keys or WASD or mobile to move and...\n\n...¡ESCAPE FROM LAVA! Go, Go, Go GOOO!