a normal platformer  (mobile friendly)  #games

Instructions: --------------------------READ-------------------------------\ndifficulty from 1 to 3 is 2\nonly positive comments no hate\nif this get featured I will eat a broom\n-----------------------------------------------------------------\nInstructions \nR to restart\narrow keys to use \nmobile friendly\nR to restart\nSpace to skip \n14  levels everything. 100% possible \n-----------------------------------------------------------------\nI am racing 1k favs and loves so help please\n-----------------------------------------------------------------\n join if u want https://scratch.mit.edu/studios/26916097/\nhttps://scratch.mit.edu/studios/26875294/\n-----------------------------------------------------------------\nif we get 1000 loves and favs I will add 10 more levels\nI made it a bit harder \nI added some self made music which I made in garage band\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (bühnenbild1 v)\n\nwhen I receive [next v]\nnext backdrop\n\n@LAVA\n\nwhen flag clicked\nshow\nforever\n    go to [back v] layer\n    switch costume to (level)\nend\n\n@thumbnail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@i'm watching you!!!2\n\ndefine Lvl Change Detector\nset size to (30) %\nset [level v] to [1]\ngo to [front v] layer\nforever\n    if <<(x position) = [240]> or <(y position) > [240]>> then\n        set x to (-229)\n        set y to (-73)\n        broadcast (Next v)\n        change [level v] by (1)\n    end\nend\n\nwhen flag clicked\nLvl Change Detector\n\nwhen flag clicked\nRun Controls\n\ndefine Run Controls\nswitch costume to (i'm watching you!!! v)\nshow\nset [yv v] to [0]\ngo to x: (-229) y: (-73)\nset [xv v] to [0]\nforever\n    if <touching (lava v)?> then\n        set [yv v] to [0]\n        go to x: (-177) y: (94)\n        broadcast ( You were fryed bylava v)\n        set [xv v] to [0]\n    end\n    if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xv v] by (0.7)\n    end\n    if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [xv v] by (-0.7)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    wall collision\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching (lava v)?> then\n        go to x: (-229) y: (-73)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        start sound [Bonk v]\n    end\nend\n\ndefine wall collision\nrepeat (5)\n    if <touching color (#000000)?> then\n        change y by (1)\n    end\nend\nif <touching color (#000000)?> then\n    change y by (-5)\n    repeat until <not <touching color (#000000)?>>\n        change x by (((-2) * <(Xv) > [0]>) - (-1))\n    end\n    if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        if <(Xv) > [0]> then\n            set [xv v] to [-7]\n        else\n            set [xv v] to [7]\n        end\n        set [yv v] to [15]\n    else\n        set [yv v] to [0]\n        set [xv v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-229) y: (-73)\n    end\nend\n\nwhen flag clicked\nforever\n    start sound [audio5  v]\n    wait (88) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching color (#fa00ff)?> then\n        set [yv v] to [23]\n        play sound [Jump v] until done\n    end\nend\n\n@Skip\n\nwhen [space v] key pressed\nwait (0.3) seconds\nchange [level v] by (1)\nnext backdrop\nforever\n    stop [other scripts in sprite v]\n    if <(level) < [15]> then\n        stop [this script v]\n    end\nend\n\n