Desert || A platformer 3
@Stage\n\nwhen flag clicked\nset [song v] to [1]\nforever\n    if <(song) = [1]> then\n        play sound [Sunlight v] until done\n    end\nend\n\n@Player\n\nwhen I receive [next level v]\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nshow\ngo to x: (-200) y: (0)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#fff830)?> then\n        change y by (1)\n        if <touching color (#fffd30)?> then\n            change y by (1)\n            if <touching color (#fffd30)?> then\n                change y by (1)\n                if <touching color (#fffd30)?> then\n                    change y by (1)\n                    if <touching color (#fffd30)?> then\n                        change y by (1)\n                        if <touching color (#fffd30)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> 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 [12]\n                            else\n                                set [xv 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 color (#87f6ff)?> then\n        if <<<mouse down?> and <((y position) + (50)) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            change [yv v] by (0.5)\n        end\n    end\n    if <touching color (#87f6ff)?> then\n        if <<<mouse down?> and <((y position) + (50)) > (mouse y)>> or <key (down arrow v) pressed?>> then\n            change [yv v] by (-1)\n        end\n    end\n    if <touching color (#fffd30)?> then\n        if <<<mouse down?> and <((y position) + (50)) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    set [yv v] to ((Yv) * (0.99))\n    change y by (Yv)\n    if <touching color (#fffd30)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        broadcast (next level v)\n    end\n    if <touching color (#ff00a5)?> then\n        start sound [Teleport two v]\n        broadcast (next level v)\n        stop all sounds\n        start sound [Dun Dun Dunnn v]\n        set [song v] to [0]\n    end\n    if <(y position) < [-170]> then\n        go to x: (-200) y: (0)\n    end\n    if <touching color (#b8b8b8)?> then\n        go to x: (-200) y: (0)\n    end\n    if <touching color (#0002ff)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#87f6ff)?> then\n        change [yv v] by (1)\n        if <touching color (#87f6ff)?> then\n            change [yv v] by (0.5)\n        end\n    end\nend\n\nwhen I receive [lp v]\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<touching color (#ffffff)?> and <<touching color (#ffe645)?> and <<touching color (#cac9c3)?> and <touching color (#878477)?>>>> then\n        broadcast (next level v)\n        play sound [Collect v] until done\n        stop [this script v]\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    if <<(costume [number v]) = [6]> or <(costume [number v]) = [9]>> then\n        go to [front v] layer\n    else\n        broadcast (lp v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@Clouds\n\nwhen flag clicked\nset [ghost v] effect to (35)\ngo to [back v] layer\nshow\ngo to x: (-66) y: (90)\nforever\n    glide (25) secs to x: (356) y: (90)\n    go to x: (-365) y: (90)\nend\n\nwhen I receive [game start v]\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    forever\n        repeat (10)\n            go to [back v] layer\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n
Welcome to Desert || A platformer third part!\nIn part 2, you found your home but forgot your keys.\nNow you must find your keys...\nPART 1: https://scratch.mit.edu/projects/321724674\nPART 2: https://scratch.mit.edu/projects/322246456\nPART 4: https://scratch.mit.edu/projects/326282236\n\n\n\nMove with arrow keys or use your finger in mobile.\nUp arrow to jump.\nBlue is bouncy.\nLight blue is water. (You can swim!)\nYou can't see where you are in tunnels.\n\n\n#95 on trending guys!\n\n\n\n\n\n\n|Nothing to see here...|\n\n\n\n\n\n\n\n\n\nDude why are you still here?