Outer World - A Platformer #games #all

Instructions: #56 on Trending!!!\nOuter World by @Lakersboy0\nYour rocket ship just crashed on a mysterious planet. Quick! get to the crash site to fix your rocket ship!\nOther Games: \nIf you want to know this took around 8 hours\nBugs fixed!\nLets try to get to 100 likes for pt. 2!\nCheck out my other games and animations:\nhttps://scratch.mit.edu/projects/739307505/\nhttps://scratch.mit.edu/projects/720942665/\nhttps://scratch.mit.edu/projects/738286705/\nhttps://scratch.mit.edu/projects/735811606/\nhttps://scratch.mit.edu/projects/744117408/\nYou're allowed to advertise on my games, my studios, and my profile (f4f is allowed) \nIt is really easy and short I know!\nEnjoy!!!

@Stage\n\n@Ground\n\nwhen I receive [play! v]\nforever\n    switch costume to (The Level)\nend\n\n@Spikes\n\nwhen I receive [play! v]\nforever\n    switch costume to (The Level)\nend\n\n@Player\n\nwhen I start as a clone\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 velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen I receive [goo v]\nbroadcast (Reset v)\n\nwhen I receive [play! v]\nset [the level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X velocity) * (0.85))\n    change x by (X velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y velocity)\n    if <touching (ground v)?> then\n        change y by ((Y velocity) - ((Y velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> 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 (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity 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 [the level v] by (1)\n    end\n    if <<touching (acid v)?> or <touching (spikes v)?>> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n        start sound [Wood Tap v]\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n        \n            broadcast (Reset v)\n        end\n    end\nend\n\n@Thumb\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n@Sky\n\nwhen flag clicked\nhide\nforever\n    wait (1e-05) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (pick random (-240) to (240)) y: (180)\nrepeat until <(y position) = [-180]>\n    change y by (-1)\n    change y by (-1)\n    change y by (-1)\n    change y by (-1)\nend\ndelete this clone\n\n@Acid\n\nwhen I receive [play! v]\nforever\n    set [magma v] to [0]\n    repeat (5)\n        change [magma v] by (0.5)\n    end\n    repeat (10)\n        change [magma v] by (-0.5)\n    end\n    repeat (5)\n        change [magma v] by (0.5)\n    end\nend\n\nwhen I receive [play! v]\nforever\n    set y to (Magma)\n    switch costume to (The Level)\nend\n\nwhen flag clicked\nforever\n    play sound [Dion Timmer - Shiawase v] until done\nend\n\n@Thing\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (151) y: (180)\nforever\n    wait (pick random (7) to (10)) seconds\n    show\n    glide (1) secs to x: (151) y: (155)\n    wait (3) seconds\n    glide (1) secs to x: (151) y: (180)\n    hide\nend\n\n@Skip\n\nwhen flag clicked\nhide\nwait (0.01) seconds\ngo to [front v] layer\nshow\nforever\n    point in direction ((([sin v] of ((timer) * (100)) ) * (2.5)) + (90))\nend\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <mouse down?>>\n        broadcast (goo v)\n        change [the level v] by (1)\n    end\nend\n\nwhen I receive [ending v]\ngo to [back v] layer\nhide\n\nwhen flag clicked\nbroadcast (PLAY! v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (20)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\nset [the level v] to [0]\n\nwhen flag clicked\nforever\n    if <(The Level) = [12]> then\n        broadcast (ending v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [play! v]\ngo to [front v] layer\nchange [ghost v] effect by (100)\nshow\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\n\nwhen flag clicked\nhide\n\n