SUMMER | A PLATFORMER
@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\n\nwhen I receive [début jeu v]\nswitch backdrop to (2 v)\n\n@Cube\n\nwhen flag clicked\ngo to x: (0) y: (-220)\nstart sound [Musique intro v]\nset [brightness v] effect to (0)\nset [ghost v] effect to (100)\nset size to (200) %\nset [intro glissement v] to [23]\nwait (0.5) seconds\nrepeat (40)\n    change [ghost v] effect by (-5)\n    change y by (Intro glissement)\n    set [intro glissement v] to ((Intro glissement) * (0.9))\nend\nwait (4) seconds\nbroadcast (message1 v)\nrepeat (40)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    change y by (Intro glissement)\n    set [intro glissement v] to ((Intro glissement) / (0.8))\nend\nbroadcast (Début jeu v)\n\n@Charlesmagnus\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nset size to (30) %\nwait (2.8) seconds\ngo to (cube v)\nshow\nrepeat (6)\n    wait (0) seconds\n    next costume\nend\nwait (0.6) seconds\nrepeat (8)\n    wait (0) seconds\n    next costume\nend\n\nwhen I receive [message1 v]\nrepeat (40)\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    go to (cube v)\n    wait (0) seconds\nend\n\n@Ballon Physique\n\nhide variable [y v]\nhide variable [x v]\n\nwhen flag clicked\nhide\n\nset [y v] to [17]\n\nwhen I receive [début jeu v]\nset [ghost v] effect to (100)\nforever\n    if <<(y position) < [-178]> or <touching (dangers v)?>> then\n        broadcast (Mort v)\n        start sound [Oops v]\n        wait (0.2) seconds\n        go to x: (-220) y: (0)\n        set [x v] to [0]\n        set [y v] to [0]\n        set [z v] to [0]\n    end\n    if <(x position) > [238]> then\n        if <not <([costume # v] of [plateformes v]) = [16]>> then\n            broadcast (Suivant v)\n            go to x: (-220) y: (0)\n        end\n    end\nend\n\nwhen I receive [début jeu v]\nset [ghost v] effect to (100)\nswitch costume to (1 v)\nshow\ngo to x: (-177) y: (0)\nset [y v] to [0]\nset [x v] to [0]\nforever\n    change [y v] by (-1)\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.88))\n    change x by (x)\n    if <touching (plateformes v)?> then\n        change y by (1)\n    end\n    if <touching (plateformes v)?> then\n        change y by (1)\n    end\n    if <touching (plateformes v)?> then\n        change y by (1)\n    end\n    if <touching (plateformes v)?> then\n        change y by (1)\n    end\n    if <touching (plateformes v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<(mouse y) > (y position)> and <mouse down?>> or <key (up arrow v) pressed?>> then\n            if <(x) > [0]> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n            set [y v] to [9]\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (plateformes v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<(mouse y) > (y position)> and <mouse down?>> or <key (up arrow v) pressed?>> and <touching (plateformes v)?>> then\n        start sound [Jump v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <touching (eau v)?> then\n        set [y v] to [-3]\n        set [x v] to ((x) * (0.92))\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [y v] to [4]\n        end\n    end\nend\n\nwhen I receive [début jeu v]\nbroadcast (NON EAU v)\nforever\n    if <touching (eau v)?> then\n        broadcast (EAU v)\n        wait until <not <touching (eau v)?>>\n    else\n        broadcast (NON EAU v)\n        wait until <touching (eau v)?>\n    end\nend\n\n@Ballon Apparence\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nshow\nswitch costume to (1 v)\nset [z v] to [0]\nforever\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [z v] by (-13)\n    else\n        if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n            change [z v] by (13)\n        end\n    end\n    set [z v] to ((z) * (0.78))\n    turn right (z) degrees\nend\n\nwhen I receive [début jeu v]\nforever\n    if <touching (plateformes v)?> then\n        if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n            if <(pick random (1) to (5)) = [1]> then\n                broadcast (SABLE DROIT v)\n                wait (0) seconds\n            end\n        else\n            if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n                if <(pick random (1) to (5)) = [1]> then\n                    broadcast (SABLE GAUCHE v)\n                    wait (0) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [mort v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change [brightness v] effect by (-5)\nend\nclear graphic effects\n\nwhen I receive [début jeu v]\nforever\n    go to (ballon physique v)\nend\n\nwhen I receive [mort v]\nforever\n    go to (ballon physique v)\nend\n\nwhen I receive [début jeu v]\nforever\n    wait until <touching (eau v)?>\n    start sound [son plongeon v]\n    wait (1) seconds\n    wait until <not <touching (eau v)?>>\nend\n\nwhen I receive [eau v]\nset [ghost v] effect to (40)\n\nwhen I receive [non eau v]\nset [ghost v] effect to (0)\n\n@Sable Projection\n\nwhen flag clicked\nhide\n\nwhen I receive [sable droit v]\nswitch costume to (pick random (1) to (3))\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nclear graphic effects\ngo to (ballon apparence v)\nif <(costume [number v]) < [4]> then\n    change x by (7)\n    change y by (-3)\n    point in direction (pick random (30) to (75))\nelse\n    change x by (-7)\n    change y by (-3)\n    point in direction (pick random (-30) to (-75))\nend\nwait (pick random (0) to (0.25)) seconds\nmove (8) steps\nchange y by (0)\nwait (0) seconds\nmove (7) steps\nchange y by (-1)\nwait (0) seconds\nmove (6) steps\nchange y by (-2)\nwait (0) seconds\nmove (5) steps\nchange y by (-3)\nwait (0) seconds\nmove (4) steps\nchange y by (-4)\nset [ghost v] effect to (25)\nwait (0) seconds\nmove (3) steps\nchange y by (-5)\nset [ghost v] effect to (50)\nwait (0) seconds\nmove (2) steps\nchange y by (-6)\nset [ghost v] effect to (75)\nwait (0) seconds\nmove (1) steps\nchange y by (-7)\ndelete this clone\n\nwhen I receive [sable gauche v]\nswitch costume to (pick random (4) to (6))\ncreate clone of (_myself_ v)\n\n@Plateformes\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [début jeu v]\nshow\nforever\n    play sound [musique-libre-de-droits-fredji-happy-life v] until done\n    wait (2) seconds\nend\n\nwhen I receive [suivant v]\nif <not <(costume [number v]) = [16]>> then\n    next costume\nend\n\n@Dangers\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to ([costume # v] of [plateformes v])\nend\n\n@Eau\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nshow\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    switch costume to ([costume # v] of [plateformes v])\nend\n\nwhen I receive [début jeu v]\nwait until <([costume # v] of [plateformes v]) = [7]>\nset [ghost v] effect to (40)\nforever\n    repeat (20)\n        change [ghost v] effect by (1)\n    end\n    repeat (20)\n        change [ghost v] effect by (-1)\n    end\nend\n\nwait (0) seconds\n\nwait (0) seconds\n\n@Plateformes2\n\nwhen flag clicked\ngo to [back v] layer\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [début jeu v]\nset [ghost v] effect to (30)\nshow\nforever\n    switch costume to ([costume # v] of [plateformes v])\nend\n\n@Minia\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Nuages\n\nwhen flag clicked\nhide\n\nwhen I receive [début jeu v]\nforever\n    wait (pick random (5) to (13)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (pick random (30) to (60))\ngo to [back v] layer\nset size to (pick random (120) to (180)) %\ngo to x: (300) y: (pick random (50) to (150))\nshow\nglide (pick random (7) to (10)) secs to x: (-300) y: (y position)\ndelete this clone\n\n
---------------[SUMMER | A PLATFORMER]-----------------\nFleches du clavier ou souris pour se déplacer! N'oubliez pas de mettre un coeur et une étoile si vous avez aimé! :)\n\nArrows keys or mouse to move! Don't forget to love an fav if you liked my project! :)\n\nJe suis actuellemnt en vacances donc il m'est assez compliqué et occasionnel de sortir des projets pendant les deux semaines qui vont suivre. Bonnes vacances a vous aussi! :D