Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\n\nwhen flag clicked\nforever\n    play sound [lalala v] until done\nend\n\n@Sprite1\n\nwhen I receive [next level v]\ngo to x: (-174) y: (31)\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: (-193) y: (-53)\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 (#53ff34)?> then\n        change y by (1)\n        if <touching color (#53ff34)?> then\n            change y by (1)\n            if <touching color (#53ff34)?> then\n                change y by (1)\n                if <touching color (#53ff34)?> then\n                    change y by (1)\n                    if <touching color (#53ff34)?> then\n                        if <touching color (#53ff34)?> 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 (#53ff34)?> 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 (#53ff34)?> then\n        if <key (up arrow v) pressed?> then\n            change [y velocity v] by (15)\n        end\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: (-193) y: (-53)\n    end\n    if <touching color (#ffffff)?> then\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [Vexento - Empty v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen [p v] key pressed\n\nwhen flag clicked\nforever\n    if <<[Costume] = [13]> and <key (p v) pressed?>> then\n        switch costume to (costume18 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (p v) pressed?> then\n        switch costume to (costume18 v)\n    end\nend\n\n@Sprite3\n\n@Sprite4\n\nwhen this sprite clicked\nbroadcast (next level v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (125) %\n    else\n        set size to (100) %\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\nend\n\n