Stunt Red 2 | A Mobile Friendly Platformer #Games #All #Trending

Instructions: STUNT RED 2 \n\nR for restart\n\nOMG 12th on #trending games !!!! TYSM . ALSO PLEASE LIKE, FAVE, AND FOLLOW FOR PART - 3 AND FOR OTHER GAMES AND ANIMATIONS.

@Stage\n\nwhen flag clicked\nplay sound [Vexento-Pollen.mp3 v] until done\n\n@Player\n\nwhen flag clicked\nset [player: x velocity v] to [0]\nset [player: y velocity v] to [0]\nset [animation v] to [0]\ngo to x: (-200) y: (0)\nforever\n    set [ghost v] effect to (0)\n    switch costume to (1 v)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [player: x velocity v] by (-0.8)\n        switch costume to (2 v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [player: x velocity v] by (0.8)\n        switch costume to (3 v)\n    end\n    set [player: x velocity v] to ((Player: x velocity) * (0.9))\n    change x by (round (Player: x velocity))\n    if <touching (ground v)?> then\n        change y by (1)\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            if <touching (ground v)?> then\n                change y by (1)\n            end\n            if <touching (ground v)?> then\n                change y by (1)\n                if <touching (ground v)?> then\n                    change y by (1)\n                    if <touching (ground v)?> then\n                        change y by (-6)\n                        change x by (round ((Player: x velocity) * (-1)))\n                    end\n                end\n            end\n            set [player: x velocity v] to [0]\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        change y by (-1)\n        if <touching (ground v)?> then\n            set [player: y velocity v] to [12]\n        end\n        change y by (1)\n    end\n    change [player: y velocity v] by (-1)\n    change y by (Player: y velocity)\n    if <touching (ground v)?> then\n        change y by ((Player: y velocity) * (-1))\n        set [player: y velocity v] to [0]\n    end\n    if <<touching (danger v)?> or <touching (lava3 v)?>> then\n        start sound [recording3 v]\n        set [animation v] to [0]\n        repeat (4)\n            create clone of (_myself_ v)\n            change [ghost v] effect by (10)\n        end\n        repeat (6)\n            change [ghost v] effect by (10)\n        end\n        wait until <(Animation) = [4]>\n        set [player: x velocity v] to [0]\n        set [player: y velocity v] to [0]\n        set [animation v] to [0]\n        go to x: (-200) y: (0)\n    end\n    if <(x position) > [240]> then\n        broadcast (Next v) and wait\n    end\nend\n\nwhen I start as a clone\nswitch costume to (4 v)\npoint in direction (pick random (-45) to (45))\nchange y by (10)\nrepeat (14)\n    move (3) steps\nend\nchange [animation v] by (1)\ndelete this clone\n\nwhen I receive [next v]\nset [player: x velocity v] to [0]\nset [player: y velocity v] to [0]\nset [animation v] to [0]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-200) y: (0)\n    end\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next v]\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nrepeat (2)\n    go to [front v] layer\nend\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\n\n