Forest | A Platformer

Instructions: Part 2 :\nhttps://scratch.mit.edu/projects/393963394\nPart 3 :\nhttps://scratch.mit.edu/projects/398203635\nSalut ! Bienvenue dans ce platformer !\n Utiliser les fléches directionnelles pour bouger. \n18 level, tous sont possibles !\nPas de pub svp ! \nEnjoy !\nHello ! Welcome to this platformer! \nUse the arrow keys to move.\n 18 level, all are possible! \nNo add plz !\nEnjoy!\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-214) y: (-90)\nforever\n    if <key (right arrow v) pressed?> then\n        change [x velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching color (#2dc600)?> then\n        change y by (1)\n        if <touching color (#2dc600)?> then\n            change y by (1)\n            if <touching color (#2dc600)?> then\n                change y by (1)\n                if <touching color (#2dc600)?> then\n                    change y by (1)\n                    if <touching color (#2dc600)?> then\n                        if <touching color (#2dc600)?> then\n                            change x by ((x velocity) * (-1))\n                            change x by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(x velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [10]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching color (#2dc600)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#2dc600)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-214) y: (-90)\n        broadcast (next v)\n    end\n    if <touching color (#b8b8b8)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-214) y: (-90)\n    end\n    if <touching color (#969696)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-214) y: (-90)\n    end\n    if <touching color (#ff0000)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-205) y: (-78)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    play sound [Marshmello - Alone  v] until done\nend\n\nhide\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (-0) y: (-0)\n\nwhen I receive [next v]\nnext costume\n\n@Sprite3\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\n