Platformer game
@Stage\n\n@player\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-1)\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#ff0000)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#000000)?> then\n        say [You win!] for (2) seconds\n        say [Love and Fav?] for (2) seconds\n        stop [all v]\n    end\n    if <touching color (#b0b0b0)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#5d5d5d)?> then\n        broadcast (respawn v)\n    end\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    play sound [Dance Around v] until done\nend\n\n@Platform\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (costume1 v)\nset size to (number or text) %\nswitch costume to (costume1 v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\n\nwhen flag clicked\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [200]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [d vel v] by (-0.35)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [d vel v] by (0.35)\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\n
You have to get to the black line. Arrow keys to move. Don't touch lava or spikes. Please love and fav.\nMy other platformers: https://scratch.mit.edu/projects/455164782/\nhttps://scratch.mit.edu/projects/520341365/\n\n#games #platformer #Violon18 #360 #player #rotating #round #green #spikes #lava