Sand Platformer||#games||#art 
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\n@blank\n\nwhen I receive [spring  v]\nif <(Level) = [17]> then\n    set volume to (0) %\nend\nplay sound [Jump v] until done\n\nwhen flag clicked\nset volume to (100) %\n\n@PLAYER \n\nwhen I start as a clone\nforever\n    repeat (3)\n        change [color v] effect by (8)\n        change [ghost v] effect by (13)\n        if <(x position) > [270]> then\n            delete this clone\n        end\n    end\n    delete this clone\nend\n\ndefine set up\ngo to [front v] layer\nclear graphic effects\nhide\nset size to (100) %\ngo to x: (-293) y: (-232)\nset [xv v] to [0]\nset [yv v] to [0]\nswitch costume to (costume1 v)\nshow\nif <(Level) = [16]> then\n    broadcast (found  v)\n    stop [other scripts in sprite v]\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\ndefine player-die \nrepeat (10)\n    change [fisheye v] effect by (-10)\n    change [ghost v] effect by (-10)\nend\nset up\n\nwhen I receive [start v]\nwait (0.2) seconds\ngo to x: (-293) y: (-232)\nset size to (80) %\nswitch costume to (costume1 v)\nshow\nset [level v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or > then\n        switch costume to (costume2 v)\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or > then\n        switch costume to (costume3 v)\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((Xv) * (0.91))\n    change x by (Xv)\n    if <<touching (platforms v)?> or <touching (key v)?>> then\n        change y by (1)\n        if <<touching (platforms v)?> or <touching (key v)?>> then\n            change y by (1)\n            if <<touching (platforms v)?> or <touching (key v)?>> then\n                change y by (1)\n                if <<touching (platforms v)?> or <touching (key v)?>> then\n                    change y by (1)\n                    if <<touching (platforms v)?> or <touching (key v)?>> then\n                        change y by (1)\n                        if <<touching (platforms v)?> or <touching (key v)?>> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or > then\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [yv v] by (-1)\n    change y by (Yv)\n    if <<touching (platforms v)?> or <touching (key v)?>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (platforms v)?> or <touching (key v)?>> then\n        if <<key (up arrow v) pressed?> or > then\n            set [yv v] to [13]\n        end\n    end\n    if <(x position) > [166]> then\n        broadcast (next level v)\n        change [level v] by (1)\n        set up\n    end\n    if <key (r v) pressed?> then\n        set up\n    end\n    if <<(y position) < [-266]> or <touching (danger  v)?>> then\n        player-die \n    end\n    if <touching (spring v)?> then\n        set [yv v] to [22]\n        if <<(Level) = [17]> and <touching (spring v)?>> then\n            set [yv v] to [8]\n        end\n    end\n    if <touching (fast v)?> then\n        change [xv v] by (15)\n    end\n    if <touching (spring v)?> then\n        broadcast (spring  v)\n    end\n    if <<(x position) > [-248]> and <(Level) = [16]>> then\n        Hey\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nwait (0.2) seconds\nset up\n\nwhen I receive [start v]\nset [level v] to [1]\nrepeat until <(Level) = [16]>\n    play sound [TheFatRat Jackpot v] until done\nend\n\nwhen I receive [someone just skipped  v]\nset up\n\nwhen I receive [next level v]\n\nwhen I receive [found  v]\nstop all sounds\ngo to x: (-288) y: (-235)\nwait (2) seconds\nsay [yeah ] for (2) seconds\nwait (4) seconds\nglide (1) secs to x: (91) y: (-229)\nhide\nchange [level v] by (1)\n\nwhen I receive [xtop v]\nshow\n\ndefine Hey\ngo to [front v] layer\nclear graphic effects\nhide\nset size to (100) %\ngo to x: (-293) y: (-232)\nset [xv v] to [0]\nset [yv v] to [0]\nswitch costume to (costume1 v)\nshow\n\n@platforms\n\nwhen flag clicked\ngo to x: (-12) y: (-14)\nhide\nset [level v] to [0]\n\nwhen I receive [next level v]\nnext costume\nif <(Level) = [16]> then\n    broadcast (found  v)\n    wait (9.8) seconds\n    switch costume to (costume17 v)\n    forever\n        play sound [TheFatRat - Windfall v] until done\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [someone just skipped  v]\nnext costume\nchange [level v] by (1)\nif <(Level) = [16]> then\n    broadcast (found  v)\n    wait (9.8) seconds\n    broadcast (xtop v)\n    switch costume to (costume17 v)\n    forever\n        play sound [TheFatRat - Windfall v] until done\n    end\nend\n\nwhen I receive [time v]\nhide\n\nwhen flag clicked\n\n@Sprite1\n\nwhen flag clicked\nset [pixelate v] effect to (20)\nhide\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (30) to (50))\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (187) to (193)) y: (pick random (161) to (70))\nglide (pick random (5) to (6)) secs to x: (pick random (-192) to (-196)) y: (pick random (64) to (158))\ndelete this clone\n\nwhen I receive [start v]\ngo to [back v] layer\nset size to (40) %\nhide\nforever\n    wait (pick random (3) to (5)) seconds\n    create clone of (_myself_ v)\nend\n\n@danger \n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [backward v] (1) layers\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [7]> then\n    go to x: (15) y: (-11)\nend\nif <(Level) = [17]> then\n    switch costume to (costume17 v)\nend\n\nwhen I receive [start v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [someone just skipped  v]\nnext costume\nif <(costume [number v]) = [7]> then\n    go to x: (15) y: (-11)\nend\nif <(Level) = [17]> then\n    switch costume to (costume17 v)\nend\n\nwhen I receive [time v]\nhide\n\n@spring\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\nif <(Level) = [16]> then\n    wait (9.8) seconds\n    switch costume to (costume17 v)\nend\n\nwhen I receive [start v]\nshow\nswitch costume to (costume1 v)\n\nwhen I start as a clone\ngo to (random position v)\nwait (1) seconds\ndelete this clone\n\nwhen I receive [someone just skipped  v]\nnext costume\nif <(Level) = [16]> then\n    wait (9.8) seconds\n    switch costume to (costume17 v)\nend\n\nwhen I receive [time v]\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [open v]\nswitch costume to (costume2 v)\nrepeat (27)\n    wait (0.0000001) seconds\n    next costume\nend\nswitch costume to (costume29 v)\nwait (1) seconds\nrepeat (20)\n    change [color v] effect by (3)\n    change [ghost v] effect by (3)\n    change [brightness v] effect by (3)\n    change [ghost v] effect by (3)\nend\nbroadcast (Start v)\nhide\n\n@Sprite4\n\nwhen I receive [play v]\nclear graphic effects\nshow\nswitch costume to (costume1 v)\nforever\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    switch costume to (costume3 v)\n    wait (0.5) seconds\n    if <touching (mouse-pointer v)?> then\n        change [color v] effect by (100)\n        wait (0.5) seconds\n    end\nend\n\nwhen this sprite clicked\nwait (0.5) seconds\nbroadcast (open v)\nswitch backdrop to (backdrop1 v)\nhide\n\nwhen flag clicked\nhide\n\n@key\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nif <(Level) = [15]> then\n    show\n    go to x: (127) y: (21)\n    forever\n        glide (1) secs to x: (-36) y: (25)\n        glide (1) secs to x: (142) y: (23)\n    end\nend\nif <(Level) = [16]> then\n    hide\nend\n\nwhen I receive [someone just skipped  v]\nif <(Level) = [15]> then\n    show\n    go to x: (127) y: (21)\n    forever\n        glide (1) secs to x: (-36) y: (25)\n        glide (1) secs to x: (142) y: (23)\n    end\nend\nif <(Level) = [16]> then\n    hide\nend\n\n@Sprite5\n\nwhen flag clicked\nshow\nset size to (100) %\ngo to x: (221) y: (-173)\nforever\n    change size by (10)\n    wait (0.5) seconds\n    change size by (-10)\n    wait (0.5) seconds\nend\n\nwhen I receive [play v]\nhide\n\nwhen this sprite clicked\nbroadcast (play v)\nhide\n\n@Sprite2\n\nwhen flag clicked\nshow\nset [ghost v] effect to (0)\nswitch costume to (costume2 v)\nrepeat (110)\n    wait (0.001) seconds\n    next costume\nend\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (off v)\n\nwhen flag clicked\nstart sound [TheFatRat:Prelude.mp3 v]\n\nwhen I receive [off v]\nstop all sounds\nbroadcast (play v)\nhide\n\nwhen I receive [play v]\nhide\nstop all sounds\nstop [other scripts in sprite v]\n\n@fast\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [start v]\nshow\n\nwhen I receive [someone just skipped  v]\nnext costume\n\n@Sprite6\n\nwhen flag clicked\nhide\n\nwhen I receive [found  v]\ngo to x: (82) y: (-156)\nshow\nsay [I did not think we would ever find each other ] for (2) seconds\nwait (1) seconds\nsay [thank you ] for (2) seconds\nsay [we got to go and start hiking back to town ] for (2) seconds\nglide (1) secs to x: (263) y: (-154)\nbroadcast (done v)\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\n\nwhen this sprite clicked\nbroadcast (someone just skipped  v)\n\nwhen I receive [found  v]\nhide\n\n
Arrow keys to move avoid Pits, Spikes, and cactus. \n\nif this get popular I will make a Sand Platformer 2\n\npress r to reset \n\n\n\n\nplease remix\n\n\nEnjoy \n\n\n\n