Desert - A platformer #all #games #music #animations #stories #platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound (song) until done\nend\n\nwhen [space v] key pressed\nstop all sounds\nchange [song v] by (1)\n\nwhen flag clicked\nset [song v] to [1]\n\nstop [this script v]\n\n@Спрайт 2\n\nwhen flag clicked\nhide\n\n@Player\n\nwhen flag clicked\nshow\nset [level # v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [0]>>> then\n        change [x v] by (-1.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [0]>>> then\n        change [x v] by (1.5)\n    end\n    set [x v] to ((X) * (0.85))\n    change x by (X)\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (1)\n    end\n    if <touching (level v)?> then\n        change y by (-4)\n        change x by ((X) * (-1))\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            if <(X) > [0]> then\n                set [x v] to [-10]\n            else\n                set [x v] to [10]\n            end\n            set [y v] to [15]\n        else\n            set [x v] to [0]\n        end\n    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <touching (level v)?> then\n        change y by ((Y) - ((Y) * (2)))\n        set [y v] to [0]\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [0]>>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (level v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level # v] by (1)\n    end\n    if <(y position) < [-170]> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    end\n    if <touching (spikes v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [0]>>> then\n            switch costume to (crouch v)\n            if <<not <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [0]>>>> and <touching (level v)?>> then\n                switch costume to (crouch v)\n            end\n        else\n            switch costume to (player v)\n        end\n        if <touching (water v)?> then\n            broadcast (Reset v)\n        end\n    end\n    if <(y position) < [-170]> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    end\n    if <touching (спрайт 1 v)?> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [0]>>> then\n            switch costume to (crouch v)\n            if <<not <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(mouse y) < [0]>>>> and <touching (level v)?>> then\n                switch costume to (crouch v)\n            end\n        else\n            switch costume to (player v)\n        end\n        if <touching (water v)?> then\n            broadcast (Reset v)\n        end\n    end\nend\n\nwhen I start as a clone\nstart sound [Hurt v]\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-216) y: (40)\n\nwhen [v v] key pressed\nchange [level # v] by (1)\ngo to x: (-216) y: (40)\nwait until <not <key (v v) pressed?>>\n\n@Level\n\nwhen flag clicked\nshow\nforever\n    switch costume to (LEVEL #)\n    go to x: (0) y: (0)\n    go to [front v] layer\nend\n\nset [level # v] to [98098098]\n\nhide\n\n@Spikes\n\nwhen flag clicked\nshow\nforever\n    switch costume to (LEVEL #)\nend\n\nhide\n\n@Player Trail\n\nwhen flag clicked\nshow\nforever\n    point in direction ([direction v] of [player v])\n    switch costume to ([costume name v] of [player v])\n    go to x: ([x position v] of [player v]) y: ([y position v] of [player v])\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [scroll v]\nhide\ndelete this clone\n\n@Спрайт 1\n\nwhen flag clicked\nforever\n    show\n    switch costume to (LEVEL #)\nend\n\n
Use WASD or arrows to move .\nDon't touch lava and cactuses.\nMobile friendly .\nLove fave and follow if you enjoy.\nUse space to change music