E.T. Platformer 

Instructions:                  ✔A new concept of platformer=D✔\n----------------------------Use the arrow--------------------------\n--------------------Like Favorite and follow !--------------------\n\n                   ✔Un nouveau concept de jeu  ✔\n------------------------Utilise les flèches--------------------------\n--------------Like, met en favoris et suis moi !----------------

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\n\n@Thumbnail\n\nwhen flag clicked\nchange [☁ nombres de parties v] by (1)\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost effect v] to [0]\nset [ghost v] effect to (Ghost effect)\nwait (2) seconds\nrepeat until <(Ghost effect) = [100]>\n    change [ghost effect v] by (10)\n    set [ghost v] effect to (Ghost effect)\nend\nhide\nset [ghost v] effect to (0)\nbroadcast (Green flag v)\n\nwait (1) seconds\n\n@Plateforme\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (size hack v)\nset size to (number or text) %\nswitch costume to (niveau 1 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]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [green flag v]\ngo to [front v] layer\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [300]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        change [d vel v] by (0.2)\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 <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [d vel v] to [0]\nset [y vel v] to [0]\nstop all sounds\nplay sound [Sunshine v] until done\n\nwhen I receive [win v]\nstop [other scripts in sprite v]\nplay sound [Sunshine v] until done\n\nwhen flag clicked\nforever\n    if <(lvl) = [1]> then\n        switch costume to (niveau 1 v)\n    else\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [lvl2 v]\nswitch costume to (niveau 2 v)\nset [d vel v] to [0]\nset [y vel v] to [0]\nbroadcast (respawn v)\n\nwhen flag clicked\nforever\n    switch backdrop to (lvl)\nend\n\nwhen I receive [lvl2 v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\n\nwhen [a v] key pressed\nshow variable [☁ nombres de parties v]\nwait until <not <key (a v) pressed?>>\nhide variable [☁ nombres de parties v]\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\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\nset [lvl v] to [1]\nforever\n    change y by (-5)\n    if <touching color (#ffb703)?> then\n        set [y vel v] to [-20]\n    end\n    if <(Touche pic ?) = [1]> then\n        broadcast (respawn v)\n        change [☁ nombre total de morts v] by (1)\n        wait until <not <(Touche pic ?) = [1]>>\n    end\n    if <touching color (#a4a4a4)?> then\n        broadcast (respawn v)\n    end\n    if <touching color (#1f7600)?> then\n        broadcast (Win v)\n        stop [other scripts in sprite v]\n    end\n    change y by (5)\nend\n\nwhen I receive [green flag v]\nshow\n\nif <touching (vortex v)?> then\n    broadcast (lvl2 v)\n    set [lvl v] to [2]\nend\n\n@Vortex\n\nwhen I receive [green flag v]\nhide\nforever\n    play sound [dr-dre-still-dre-piano-solo v] until done\nend\n\nif <touching (player v)?> then\n\nwhen I receive [green flag v]\nset size to (300) %\nshow\nforever\n    go to x: ([x position v] of [plateforme v]) y: ([y position v] of [plateforme v])\n    point in direction ([direction v] of [plateforme v])\nend\n\nwhen I receive [lvl2 v]\nswitch costume to (2 v)\n\n@detector\n\nwhen flag clicked\nhide\nset [favorite v] to [0]\nset [love v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(Love) = [1]> and <(Favorite) = [1]>>\nwait (1) seconds\nbroadcast (Message v)\nshow\ngo to [front v] layer\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [love v] to [0]\n    switch costume to (3 v)\n    forever\n        set [loved? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [love v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (3 v)\n    set [favorite v] to [0]\n    forever\n        set [favorite? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [favorite v] to [1]\n        end\n    end\nend\n\n@player2\n\nwhen flag clicked\nforever\n    go to (player v)\n    set [ghost v] effect to (100)\n    if <<touching color (#d6b900)?> or <touching color (#f7d700)?>> then\n        set [touche pic ? v] to [1]\n    else\n        set [touche pic ? v] to [0]\n    end\n    if <<touching (vortex v)?> and <(lvl) = [1]>> then\n        broadcast (lvl2 v)\n        set [lvl v] to [2]\n    end\nend\n\n