the life platformer

Instructions: HI, it's mi first game \n\narrows to moove\npls love and fav\n--------------------------------\nSalut toi c'est mon premier jeu\nutilise les fleches pour bouger\nLe jeu est aussi mobile friendly\nsi tu as aimé n'hésite pas à liker\n

@Stage\n\n@perso\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    play sound [Exlo - Free v] until done\nend\n\nwhen flag clicked\nset [numero v] to [0]\nset volume to (100) %\nwait (3) seconds\ngo to x: (-203) y: (158)\nshow\nclear graphic effects\nswitch backdrop to (backdrop1 v)\nforever\n    if <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [gauche v] by (1)\n        switch costume to (2a v)\n    else\n        if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n            change [gauche v] by (-1)\n            switch costume to (1a v)\n        end\n    end\n    set [gauche v] to ((gauche) * (0.9))\n    change x by (gauche)\n    if <touching (platform v)?> then\n        change y by (1)\n        if <touching (platform v)?> then\n            change y by (1)\n            if <touching (platform v)?> then\n                change y by (1)\n                if <touching (platform v)?> then\n                    change y by (1)\n                end\n                if <touching (platform v)?> then\n                    change y by (1)\n                end\n            end\n        end\n    end\n    if <touching (platform v)?> then\n        change x by ((gauche) * (-1))\n        change y by (-5)\n        if <key (up arrow v) pressed?> then\n            if <(gauche) > [0]> then\n                set [gauche v] to [-5]\n            else\n                set [gauche v] to [5]\n            end\n            set [droite v] to [10]\n        else\n            set [droite v] to [0]\n        end\n    end\n    change [droite v] by (-1)\n    change y by (droite)\n    if <touching (platform v)?> then\n        change y by ((droite) * (-1))\n        set [droite v] to [0]\n    end\n    change y by (-1)\n    if <touching (platform v)?> then\n        if <<key (up arrow v) pressed?> or <<(y position) < (mouse y)> and <mouse down?>>> then\n            switch costume to (6a v)\n            set [droite v] to [15]\n        end\n    end\n    change y by (1)\n    if <<touching (spikes v)?> or <(y position) < [-170]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0) seconds\n        end\n        go to x: (-203) y: (158)\n        repeat (10)\n            change [ghost v] effect by (-10)\n            wait (0) seconds\n        end\n    end\n    if <(x position) > [240]> then\n        go to x: (-203) y: (158)\n        broadcast (vite v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> then\n        switch costume to (4a v)\n    end\n    if <<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> then\n        switch costume to (5a v)\n    end\nend\n\n@platform\n\nwhen flag clicked\nset size to (90) %\nhide\n\nwhen I receive [vite v]\nnext costume\n\nwhen flag clicked\nswitch costume to (level 1 v)\nwait (3) seconds\nshow\nforever\n    go to [front v] layer\nend\n\nwait (1) seconds\n\n@spikes\n\nwhen I receive [vite v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@platform2\n\nwhen flag clicked\nset size to (90) %\nhide\n\nwhen I receive [vite v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\nwait (3) seconds\nshow\nforever\n    go to [front v] layer\nend\n\nwait (1) seconds\n\n