Adventure - A platformer / #games #platformer #all #trending
@Stage\n\n@player\n\nwhen I receive [start game v]\nset [gravity v] to [0]\nforever\n    change y by (gravity)\n    change [gravity v] by (-1)\n    if <touching (ground v)?> then\n        set [gravity v] to [0]\n        if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [gravity v] to [20]\n        end\n    end\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\ndefine Touch Ground\nrepeat until <not <touching (ground v)?>>\n    change y by (1)\n    set [speed y v] to [0]\nend\n\nwhen I receive [green flag clicked v]\nset size to (50) %\nset rotation style [left-right v]\ngo to x: (0) y: (100)\nshow\nset [speed y v] to [0]\nforever\n    change [speed y v] by (-1)\n    change y by (speed y)\n    Touch Ground\n    if <key (a v) pressed?> then\n        Walk (-90) (-4)\n    end\n    if <key (d v) pressed?> then\n        Walk (90) (4)\n    end\n    if <(y position) < [-180]> then\n        go to x: (0) y: (100)\n        set [speed y v] to [0]\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <<(x position) = [237]> or <(x position) > [237]>> then\n        go to x: (-209) y: (-1)\n        broadcast (next level v)\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (-218) y: (10)\n\nwhen I receive [start game v]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        move (-5) steps\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        move (5) steps\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>>> then\n        change x by (3)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>>> then\n        change x by (-3)\n    end\nend\n\nwhen flag clicked\ngo to x: (-218) y: (10)\n\nwhen I receive [start game v]\nforever\n    repeat until <touching color (#ffffff)?>\n        change y by (-5)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <<touching color (#5b8eff)?> or <touching color (#9cdbff)?>> then\n        go to x: (-218) y: (10)\n    end\nend\n\nwhen I receive [switch character, please v]\nnext costume\n\nwhen I receive [start game v]\nshow variable [timer v]\n\n@Ground\n\nwhen flag clicked\nswitch costume to (level 1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@info\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (1) layers\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [out of luck v]\nshow\nswitch costume to (costume2 v)\n\n@xxxxxxx\n\nwhen flag clicked\nshow\ngo to x: (317) y: (71)\n\nwhen this sprite clicked\nhide\nbroadcast (start game v)\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <<[] = [30]> or <[] > [30]>> then\n        broadcast (out of luck v)\n    end\nend\n\nwhen I receive [next level v]\nset [timer v] to [0]\nrepeat until <(timer) = [30]>\n    wait (1) seconds\n    change [timer v] by (1)\nend\nbroadcast (out of luck v)\n\nwhen I receive [start game v]\nset [timer v] to [0]\nrepeat until <(timer) = [30]>\n    wait (1) seconds\n    change [timer v] by (1)\nend\nbroadcast (out of luck v)\n\n@change character\n\nwhen I receive [start game v]\ngo to x: (-183) y: (117)\nshow\n\nwhen this sprite clicked\nbroadcast (switch character, please v)\n\nwhen flag clicked\nforever\n    play sound [Background Music v] until done\nend\n\nwhen [s v] key pressed\nif <(times you skip) < [2]> then\n    broadcast (next level v)\n    change [times you skip v] by (1)\nelse\n    broadcast (out of skips v)\nend\n\n@stopped\n\nwhen flag clicked\nforever\n    set [stopped? v] to (timer)\nend\n\nwhen [timer v] > (stopped?)\nbroadcast (projects done now v)\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@:)\n\nwhen flag clicked\nhide\n\nwhen I receive [projects done now v]\nhide variable [timer v]\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\n\n@out of skips\n\nwhen flag clicked\nset [times you skip v] to [0]\ngo to x: (-67) y: (40)\nset [ghost v] effect to (100)\n\nwhen I receive [out of skips v]\nrepeat (4)\n    change [ghost v] effect by (-25)\n    wait (.1) seconds\nend\nwait (1) seconds\nrepeat (4)\n    change [ghost v] effect by (25)\n    wait (.1) seconds\nend\n\n@snow!\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\nset y to (180)\nset [ghost v] effect to (70)\nforever\n    set size to (pick random (10) to (100)) %\n    go to (random position v)\n    create clone of (_myself_ v)\n    switch costume to (pick random (1) to (3))\n    turn right (pick random (0) to (360)) degrees\n    next costume\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nshow\nrepeat (50)\n    change y by (-2)\n    move (pick random (-1) to (1)) steps\n    turn left (2) degrees\n    change [ghost v] effect by (-1)\nend\nrepeat (50)\n    change y by (-2)\n    move (pick random (-1) to (1)) steps\n    change [ghost v] effect by (2)\n    turn left (2) degrees\nend\ndelete this clone\n\nwhen I receive [projects done now v]\nhide\n\n
1K intro contest Winner gets 30+ follows! https://scratch.mit.edu/projects/510422824/\nUse arrow keys or WAD!\nDon't touch lava spikes and other dangers.\nPLAY PART 2!\nGet This On Trending PLEASE!\nPart 3: GOT SPAMMED REPORTED\nPart 2: GOT SPAMMED REPORTED\n