Stranded - A platformer (mobile)
@Stage\n\n@baccground\n\nwhen flag clicked\nif <(level) = [5]> then\n\nwhen flag clicked\ngo to [back v] layer\nset [level v] to [1]\nforever\n    switch costume to (level)\nend\n\nif <[] = [1]> then\n\n@level\n\nwhen I receive [next level v]\ncreate clone of (_myself_ v)\ngo to x: (240) y: (0)\nrepeat (35)\n    change x by ((x position) / (-4))\nend\n\nwhen I start as a clone\nchange x by (-1)\nrepeat (35)\n    change x by ((x position) / (3))\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nset [level v] to [1]\nswitch costume to (1 v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nnext costume\nchange [level v] by (1)\n\nif <(costume [number v]) = [7]> then\n    broadcast (you win v)\nend\n\nnext costume\n\nwhen flag clicked\nforever\n    if <(level) = [15]> then\n        broadcast (slislide v)\n    end\nend\n\nwhen [s v] key pressed\n\nchange [level v] by (1)\nnext costume\ncreate clone of (_myself_ v)\ngo to x: (240) y: (0)\nrepeat (35)\n    change x by ((x position) / (-4))\nend\n\nforever\n\nwhen I receive [next level v]\n\nbroadcast (loyehmoyeh v)\n\n@??????\n\n@Boulder\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        hide\n        broadcast (Game Over! v)\n    end\nend\n\nwhen flag clicked\nif <(level) = [5]> then\n    hide\nend\n\ngo to x: (-141) y: (165)\n\nwhen I receive [start demo v]\nset size to (75) %\nshow\ngo to [front v] layer\n\ngo to x: (-150) y: (111)\n\ncreate clone of (_myself_ v)\nstart sound [Large Cowbell v]\n\nwhen flag clicked\nhide\nforever\n    create clone of (boulder v)\n    wait (pick random (0) to (0.5)) seconds\nend\n\nwhen I receive [game over! v]\nhide\nstop [other scripts in sprite v]\n\nturn right (15) degrees\n\nbroadcast (Game Over! v)\n\nif <touching (level v)?> then\n\n\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (3))\nshow\ngo to x: (pick random (-240) to (240)) y: (230)\nforever\n    forever\n        repeat until \n            set [fall v] to [0]\n            wait (0) seconds\n            repeat (40)\n                change [fall v] by (0.3)\n                change y by ((0) - ((fall) * (fall)))\n            end\n        end\n        wait (0) seconds\n    end\nend\n\nswitch costume to (costume3 v)\n\nhide\ndelete this clone\n\nwhen flag clicked\nforever\n    play sound [Waterflame - Endgame.mp2 v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching color (#000000)?> then\n        broadcast (rock particle v)\n    end\nend\n\nchange y by (-7)\n\n@ character\n\nwhen flag clicked\nforever\n    if <<touching color (#6dacba)?> or <touching color (#5f9eab)?>> then\n        if <<color (#ffae00) is touching (#6dacba)?> or <color (#ffae00) is touching (#5f9eab)?>> then\n            change [yv v] by (0.07)\n        else\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            set [yv v] to ((Yv) * (0.9))\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [4]\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            change [yv v] by (0.3)\n        end\n        if <key (down arrow v) pressed?> then\n            change [yv v] by (-0.3)\n        end\n        if <key (left arrow v) pressed?> then\n            point in direction (-90)\n            change [xv v] by (-0.3)\n        end\n        if <key (right arrow v) pressed?> then\n            point in direction (90)\n            change [xv v] by (0.3)\n        end\n    end\nend\n\ngo to x: (0) y: (200)\nshow\n\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nset [yv v] to [5]\n\nset [yv v] to [-1]\n\nset [yv v] to [-5]\n\nwhen I receive [next level v]\nset [yv v] to [0]\nset [xv v] to [0]\ngo to x: (-200) y: (0)\nset [ghost v] effect to (0)\n\nwhen flag clicked\ngo to [front v] layer\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nforever\n    set size to (100) %\n    show\n    set rotation style [all around v]\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 (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> 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 [10]\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 (level v)?> then\n        if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n            set [yv v] to [14]\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 (level v)?> 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 <(y position) < [-170]> then\n        go to x: (-200) y: (0)\n    end\n    if <<touching (spikes v)?> or <touching (boulder v)?>> then\n        repeat (10)\n            change size by (-10)\n            turn right (5) degrees\n        end\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set size to (100) %\n        set [ghost v] effect to (0)\n        go to x: (-200) y: (0)\n        point in direction (90)\n    end\n    if <touching (are  v)?> then\n        set [yv v] to [20]\n    end\nend\n\nif  then\nend\n\nwhen flag clicked\nwait (1) seconds\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n    if <<touching ( crocodile v)?> or <touching (kid! v)?>> then\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (spikes v)?> then\n        change [yv v] by (1.3)\n    end\nend\n\nwhen flag clicked\nbroadcast (bright up v)\nbroadcast (mainmenu v)\n\nwhen flag clicked\nif <(level) = [5]> then\n    go to x: (-141) y: (165)\nend\n\nforever\n\ngo to x: (-200) y: (-99)\n\nwhen flag clicked\n\nwhen I receive [slislide v]\nset [xv v] to [10]\n\n@water\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [forward v] (3) layers\nforever\n    set x to ((([sin v] of ((timer) * (100)) ) * (5)) - (40))\n    change x by (((400) - (y position)) * (.1))\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nset size to (100) %\nswitch costume to (1 v)\nset [ghost v] effect to (50)\ngo [backward v] (1) layers\nset x to (0)\npoint in direction (90)\nforever\n    set y to ((([sin v] of ((timer) * (200)) ) * (5)) - (0))\n    change y by (((0) - (y position)) * (2))\n    point in direction ((([sin v] of ((timer) * (400)) ) * (1)) - (-60))\n    turn right (((300) - (y position)) * (.1)) degrees\nend\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\ngo to [front v] layer\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen I receive [loyehmoyeh v]\n\n@portal\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\nforever\n    if <touching ( character v)?> then\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [loyehmoyeh v]\n\n@Sprite1\n\nwhen I receive [end intro v]\n\ngo to x: (0) y: (70)\npoint in direction (90)\nswitch costume to (color-switch_logo v)\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nset [id v] to [3]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(id) = [3]> then\n\nwhen flag clicked\nset [ghost v] effect to (60)\nset size to (100) %\nhide\nswitch costume to (costume1 v)\ngo to x: (0) y: (-70)\nset [zoom v] to [0]\nforever\n    change [zoom v] by (8)\n    change size by (([sin v] of (zoom) ) / (2))\nend\n\nshow\nshow\n\nwhen flag clicked\nforever\n    go to ( character v)\nend\n\nwhen flag clicked\nforever\n    if <(level) = [5]> then\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(level) = [10]> then\n        hide\n    end\nend\n\nshow\n\n@spikes\n\nwhen flag clicked\ngo [forward v] (3) layers\nforever\n    switch costume to (level)\nend\n\nwhen flag clicked\n\nwhen I receive [loyehmoyeh v]\n\n@Sprite2\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Thumb\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    start sound [Vexento - Crystal Child.mp3 v]\nend\n\nshow\n\nforever\n    go to [front v] layer\nend\n\n
Remix and add yer levels and Ill check it out\nFollow @CapAnimation\nCheck this out \nhttps://scratch.mit.edu/projects/330721596/\nUse the arrow keys to move\nEscape >:)\nits pretty straightforward really :3\nHave fun\nFeatures such as water, torches, and falling rocks\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n   \nyou came aaaaaall the way down here :P