stickman run/platformer
@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (backdrop1 v)\n    wait (40) seconds\n    switch backdrop to (backdrop2 v)\n    wait (30) seconds\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nforever\n    if <touching (level v)?> then\n        set y to (-58)\n    end\nend\n\nwhen flag clicked\ngo to x: (-87) y: (-41)\nforever\n    if <not <touching (level v)?>> then\n        repeat until <touching (level v)?>\n            change y by (gravity)\n            change [gravity v] by (-1)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            set [gravity v] to [12]\n            change y by (10)\n        end\n    end\nend\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    change x by (xv)\n    set [xv v] to ((xv) * (0.9))\nend\n\nwhen flag clicked\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n        wait (0.2) seconds\n        switch costume to (costume2 v)\n        wait (0.2) seconds\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n        wait (0.2) seconds\n        switch costume to (costume4 v)\n        wait (0.2) seconds\n    end\n    change x by (xv)\n    set [xv v] to ((xv) * (0.9))\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        broadcast (Death v)\n        wait (0.1) seconds\n        go to x: (-135) y: (-40)\n    end\nend\n\nwhen flag clicked\nshow\n\nwhen [down arrow v] key pressed\nswitch costume to (costume6 v)\n\nwhen flag clicked\nforever\n    play sound [TheFatRat - Xenogenesis v] until done\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite6 v)?> then\n        go to x: (-87) y: (-41)\n        broadcast (level 2 v)\n        if <[-87] > [-41]> then\n            repeat (3)\n                if <touching (level v)?> then\n                    change y by (10)\n                end\n            end\n        else\n            change [gravity v] by (0)\n            all\n        end\n    end\nend\n\ndefine all\n\nwhen flag clicked\nshow\nforever\n    if <touching (sprite6 v)?> then\n        go to x: (-87) y: (-41)\n        broadcast (level 2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#954c00)?> then\n        repeat until <not <touching color (#954c00)?>>\n            change y by (10)\n        end\n    end\nend\n\nwhen I receive [die v]\ngo to x: (-135) y: (-40)\n\n@Level\n\nwhen flag clicked\nshow\n\n@clouds\n\nwhen flag clicked\nforever\n    wait (4) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (pick random (0) to (10))\nif <(pick random (1) to (2)) = [1]> then\n    go to x: (-300) y: (pick random (0) to (100))\n    repeat until <[270] < (x position)>\n        change x by (2)\n    end\nelse\n    go to x: (300) y: (pick random (0) to (100))\n    repeat until <(x position) < [-290]>\n        change x by (-2)\n    end\nend\ndelete this clone\n\nset size to (pick random (50) to (110)) %\n\nwhen I start as a clone\n\ndelete this clone\n\nwhen I start as a clone\n\ndelete this clone\n\n@Sprite4\n\nwhen backdrop switches to [backdrop1 v]\nshow\nclear graphic effects\nforever\n    repeat (20)\n        change [ghost v] effect by (-15)\n    end\n    wait (2) seconds\n    repeat (20)\n        change [ghost v] effect by (15)\n    end\nend\n\nwhen backdrop switches to [backdrop2 v]\nhide\n\nwhen flag clicked\nshow\n\n@Sprite5\n\nwhen I receive [level 2 v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Sprite6\n\nwhen backdrop switches to [backdrop1 v]\nswitch costume to (costume1 v)\n\nwhen backdrop switches to [backdrop2 v]\nswitch costume to (costume2 v)\n\n@Sprite2\n\nwhen flag clicked\nhide\n\n@notif\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (8) to (15)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Sprite7\n\nwhen flag clicked\nhide\n\n@Sprite3\n\nwhen backdrop switches to [backdrop2 v]\nshow\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nforever\n    go to (sprite1 v)\nend\n\n@Particle Engine\n\ndefine Create Clone (starting x) (starting y) (xvel) (yvel)\nhide\nset size to (pick random (80) to (100)) %\nswitch costume to (costume1 v)\ngo to x: (starting x) y: (starting y)\nset [xvel v] to (xvel)\nset [yvel v] to (yvel)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nrepeat until <touching (_edge_ v)?>\n    change [yvel v] by (-1)\n    change x by (Xvel)\n    change y by (Yvel)\nend\ndelete this clone\n\nwhen I receive [death v]\nInt\n\ndefine Int\nrepeat (25)\n    Create Clone ([x position v] of [player v]) ([y position v] of [player v]) (pick random (-10) to (10)) (pick random (10) to (-10))\nend\n\n
like star and follow if you enjoy!\n\nlets get this on trending again\n\nthe new game is out check it out https://scratch.mit.edu/projects/631319302/