⨠ Paris || A platformer

Instructions:                       ⨠ Paris || A platfomer\n\n                                      EN\n\nArrows keys to move and mobile friendly !\n\n\n                                    FR\n\nUtilise les flèches directionelles pour bouger et jouable sur mobile !\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (tour eifflel v)\n\nwhen I receive [next level v]\nnext backdrop\n\nwhen flag clicked\nforever\n    play sound [demi-lovato-confident-ballerina-leap v] until done\nend\n\n@Player\n\nwhen flag clicked\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (0)\nforever\n    change [y v] by (-1)\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        switch costume to (costume2 v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (niveaux v)?> then\n        gravité\n        if <touching (niveaux v)?> then\n            change y by (-6)\n            x\n            if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                set [y v] to [13]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-7]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <touching (niveaux v)?> then\n        y\n        if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [15]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\ndefine gravité\nrepeat (6)\n    if <touching (niveaux v)?> then\n        change y by (1)\n    end\nend\n\ndefine x\nrepeat until <not <touching (niveaux v)?>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine y\nrepeat until <not <touching (niveaux v)?>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [237]> then\n        broadcast (Next level v)\n        go to x: (-223) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (spikes v)?> or <touching (niveaux v)?>> then\n        go to x: (-223) y: (-100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (niveaux v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen flag clicked\nset [level v] to [1]\nshow\ngo to x: (-218) y: (-90)\n\nwhen I receive [someone pressed skip button v]\ngo to x: (-218) y: (-106)\n\nwhen flag clicked\nforever\n    if <(y position) < [-145]> then\n        go to x: (-223) y: (-100)\n    end\nend\n\nhide\n\n@Niveaux\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (Stop skip v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\n@spikes\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\nwhen I receive [next level v]\nnext costume\n\nhide\n\n@Sprite1\n\nwhen flag clicked\nshow\n\nhide\n\nwhen this sprite clicked\nbroadcast (Next level v)\n\nwhen I receive [stop skip v]\nhide\n\n@Sprite2\n\nwhen flag clicked\nchange [ghost v] effect by (100)\n\nclear graphic effects\n\n