online platformer battle 7 players #Games

Instructions: arrows keys for move\n1 to attack\n2 in air to special attack\n4 to shoot\n3 to show the healt table\nT to chat\ngive me your feedback in comment

@Stage\n\nwhen flag clicked\nset [pixelate v] effect to (0)\nforever\n    if <(current [hour v]) > [3]> then\n        if <(current [hour v]) > [6]> then\n            if <(current [hour v]) > [8]> then\n                if <(current [hour v]) > [11]> then\n                    if <(current [hour v]) > [14]> then\n                        if <(current [hour v]) > [18]> then\n                            if <(current [hour v]) > [21]> then\n                                if <(current [hour v]) > [23]> then\n                                    switch backdrop to (arrière plan2 v)\n                                else\n                                    switch backdrop to (arrière plan1 v)\n                                end\n                            else\n                                switch backdrop to (arrière plan6 v)\n                            end\n                        else\n                            switch backdrop to (arrière plan8 v)\n                        end\n                    else\n                        switch backdrop to (arrière plan5 v)\n                    end\n                else\n                    switch backdrop to (arrière plan7 v)\n                end\n            else\n                switch backdrop to (arrière plan4 v)\n            end\n        else\n            switch backdrop to (arrière plan3 v)\n        end\n    else\n        switch backdrop to (arrière plan2 v)\n    end\nend\n\n@player\n\nwhen flag clicked\nswitch costume to (costume1 \(1\) v)\nset [ghost v] effect to (100)\npoint in direction (90)\nforever\n    set [vie v] to [100]\n    set [kills v] to [0]\nend\n\npoint in direction ((orientation) + (12))\n\nwhen I receive [singleplayer v]\nwait (1) seconds\nstop [other scripts in sprite v]\n\nwhen I receive [multiplayer v]\nwait (1) seconds\nstop [other scripts in sprite v]\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [c bon v]\nshow\nswitch costume to (costume2 v)\nwait (1) seconds\nhide\n\nwhen I receive [c bon v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [stop v]\nshow\nswitch costume to (costume3 v)\n\nwhen I receive [pas possible v]\nshow\nswitch costume to (costume5 v)\nwait (3) seconds\nhide\n\nwhen I receive [salle pleine v]\nshow\nset [mon player v] to [0]\nswitch costume to (costume4 v)\nbroadcast (C bon v)\nwait (5) seconds\nhide\n\nstop [all v]\n\nwhen I receive [mort v]\nbroadcast (Respawn v)\n\nshow\nswitch costume to (costume6 v)\nstop [all v]\n\nwhen I receive [multiplayer v]\nswitch costume to (costume1 v)\nshow\n\nbroadcast (multiplayer v)\n\n@TERRAIN\n\ngo to x: (SCROLL x) y: (SCROLL y)\n\nwhen I receive [c bon v]\nswitch costume to (costume3 v)\ngo to x: (-100) y: (800)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <not <(Mon player) = [0]>> then\n        change [y v] by (1)\n        if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> and <not <(blocage) = [1]>>> then\n            change [x v] by (-1)\n        else\n            if <<<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> and <not <(blocage) = [1]>>> then\n                change [x v] by (1)\n            end\n        end\n        if <color (#b7f9ff) is touching (#000000)?> then\n            set [x v] to ((x) * (0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999))\n        else\n            set [x v] to ((x) * (0.85))\n        end\n        change x by (x)\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 (-1)\n                            if <touching (player v)?> then\n                                change y by (-1)\n                                if <touching (player v)?> then\n                                    change y by (6)\n                                    change x by ((x) * (-1.85))\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (y)\n        if <touching (player v)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        change y by (1)\n        if <<<touching (player v)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>>> and <not <(blocage) = [1]>>> then\n            set [y v] to [-17]\n        end\n        change y by (-1)\n    else\n        if <key (up arrow v) pressed?> then\n            change y by (-10)\n        end\n        if <key (down arrow v) pressed?> then\n            change y by (10)\n        end\n        if <key (right arrow v) pressed?> then\n            change x by (-10)\n        end\n        if <key (left arrow v) pressed?> then\n            change x by (10)\n        end\n    end\n    set [z1 v] to (y)\nend\n\nwhen flag clicked\nforever\n    if <not <(Mon player) = [0]>> then\n        if <[1160] < (y position)> then\n            set [vie v] to [0]\n            respawn\n        end\n    end\nend\n\ndefine respawn\nif <(mode S/M) = [1]> then\n    wait (1) seconds\n    set [vie v] to [100]\n    go to x: (-100) y: (800)\n    set [x v] to [0]\n    set [y v] to [0]\nend\nif <(mode S/M) = [2]> then\n    wait (1) seconds\n    set [vie v] to [100]\n    go to x: (0) y: (-50)\n    set [x v] to [0]\n    set [y v] to [0]\nend\n\nwhen I receive [pad v]\nrepeat (10)\n    set [y v] to [-35]\nend\n\nwhen flag clicked\nset [mode s/m v] to [0]\ndelete all of [admin v]\nadd [l_ecureuil] to [admin v]\nadd [Armibule] to [admin v]\nadd [maDU59_] to [admin v]\nadd [Gogetto59] to [admin v]\nadd [Aystorm] to [admin v]\nadd [alexraichu] to [admin v]\nadd [Tabourettable] to [admin v]\nadd [Maheem1001] to [admin v]\nadd [emma97888] to [admin v]\nadd [Sagovacha] to [admin v]\nadd [Zachalink] to [admin v]\n\nif <[admin v] contains (username)?> then\n    if <key (down arrow v) pressed?> then\n        set [y v] to [-8]\n    end\n    if <key (1 v) pressed?> then\n        set [y v] to [-1]\n    end\nend\n\nwhen I receive [respawn v]\nrespawn\n\nwhen flag clicked\nwait until <not <(vie) = [0]>>\nforever\n    if <(vie) = [0]> then\n        respawn\n        wait until <not <(vie) = [0]>>\n    end\nend\n\nwhen flag clicked\nforever\n    set [j v] to [0]\n    if <not <(☁ 1) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 2) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 3) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 4) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 5) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 6) = [0]>> then\n        change [j v] by (1)\n    end\n    if <not <(☁ 7) = [0]>> then\n        change [j v] by (1)\n    end\n    set [joueurs en ligne v] to (j)\nend\n\nwhen I receive [singleplayer v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (-50)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (1)\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> and <not <(blocage) = [1]>>> then\n        change [x v] by (-1)\n    else\n        if <<<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> and <not <(blocage) = [1]>>> then\n            change [x v] by (1)\n        end\n    end\n    if <color (#b7f9ff) is touching (#000000)?> then\n        set [x v] to ((x) * (0.99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999))\n    else\n        set [x v] to ((x) * (0.85))\n    end\n    change x by (x)\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 (-1)\n                        if <touching (player v)?> then\n                            change y by (-1)\n                            if <touching (player v)?> then\n                                change y by (6)\n                                change x by ((x) * (-1.85))\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching (player v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\n    if <<<touching (player v)?> and <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>>> and <not <(blocage) = [1]>>> then\n        set [y v] to [-17]\n    end\n    change y by (-1)\n    set [z1 v] to (y)\nend\n\nwhen I start as a clone\n\nwhen I receive [singleplayer v]\n\nforever\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (sprite9 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (1)\nend\n\n@Sprite2\n\nwhen flag clicked\nshow list [admin v]\nhide\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (20)\nforever\n    wait (pick random (1) to (10)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to x: (-240) y: (pick random (180) to (-50))\nset [ghost v] effect to (pick random (10) to (25))\nset size to (pick random (60) to (100)) %\nrepeat (52)\n    change x by (10)\nend\ndelete this clone\n\nwhen [t v] key pressed\n\nwhen [t v] key pressed\n\nwhen flag clicked\nset [dis v] to [0]\nshow list [commande v]\n\nset [dis v] to [0]\nask [1,2,3...] and wait\nshow list [commande v]\nif <(answer) = [1]> then\n    set [dis v] to [1]\nelse\n    if <(answer) = [2]> then\n        set [dis v] to [2]\n    else\n        if <(answer) = [3]> then\n            set [dis v] to [3]\n        else\n            if <(answer) = [4]> then\n                set [dis v] to [4]\n            else\n                if <(answer) = [5]> then\n                    set [dis v] to [5]\n                else\n                    if <(answer) = [6]> then\n                        set [dis v] to [6]\n                    else\n                        if <(answer) = [7]> then\n                            set [dis v] to [7]\n                        else\n                            set [dis v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nshow list [commande v]\nwait (30) seconds\nshow list [commande v]\nset [dis v] to [0]\n\nwhen I receive [double click détecté v]\n\nset [dis v] to [0]\nask [1,2,3...] and wait\nshow list [commande v]\nif <(answer) = [1]> then\n    set [dis v] to [1]\nelse\n    if <(answer) = [2]> then\n        set [dis v] to [2]\n    else\n        if <(answer) = [3]> then\n            set [dis v] to [3]\n        else\n            if <(answer) = [4]> then\n                set [dis v] to [4]\n            else\n                if <(answer) = [5]> then\n                    set [dis v] to [5]\n                else\n                    if <(answer) = [6]> then\n                        set [dis v] to [6]\n                    else\n                        if <(answer) = [7]> then\n                            set [dis v] to [7]\n                        else\n                            set [dis v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nshow list [commande v]\nwait (30) seconds\nshow list [commande v]\nset [dis v] to [0]\n\nwhen I receive [double click détecté v]\n\n@Sprite3\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: ((0) + (([x position v] of [terrain v]) / (100))) y: ((0) + (([y position v] of [terrain v]) / (100)))\nend\n\n@Tchat\n\nwhen flag clicked\nhide\n\nwhen [t v] key pressed\nset [dis v] to [0]\nask [1,2,3...] and wait\nshow list [commande v]\nif <(answer) = [1]> then\n    set [dis v] to [1]\nelse\n    if <(answer) = [2]> then\n        set [dis v] to [2]\n    else\n        if <(answer) = [3]> then\n            set [dis v] to [3]\n        else\n            if <(answer) = [4]> then\n                set [dis v] to [4]\n            else\n                if <(answer) = [5]> then\n                    set [dis v] to [5]\n                else\n                    if <(answer) = [6]> then\n                        set [dis v] to [6]\n                    else\n                        if <(answer) = [7]> then\n                            set [dis v] to [7]\n                        else\n                            if <(answer) = [8]> then\n                                set [dis v] to [8]\n                            else\n                                if <(answer) = [9]> then\n                                    set [dis v] to [9]\n                                else\n                                    if <(answer) = [10]> then\n                                        set [dis v] to [10]\n                                    else\n                                        if <(answer) = [11]> then\n                                            set [dis v] to [11]\n                                        else\n                                            if <(answer) = [12]> then\n                                                set [dis v] to [12]\n                                            else\n                                                if <(answer) = [13]> then\n                                                    set [dis v] to [13]\n                                                else\n                                                    if <(answer) = [14]> then\n                                                        set [dis v] to [14]\n                                                    else\n                                                        if <(answer) = [15]> then\n                                                            set [dis v] to [15]\n                                                        else\n                                                            set [dis v] to [0]\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nshow list [commande v]\nwait (30) seconds\nshow list [commande v]\nset [dis v] to [0]\n\nwhen I receive [double click détecté v]\n\nset [dis v] to [0]\nask [1,2,3...] and wait\nshow list [commande v]\nif <(answer) = [1]> then\n    set [dis v] to [1]\nelse\n    if <(answer) = [2]> then\n        set [dis v] to [2]\n    else\n        if <(answer) = [3]> then\n            set [dis v] to [3]\n        else\n            if <(answer) = [4]> then\n                set [dis v] to [4]\n            else\n                if <(answer) = [5]> then\n                    set [dis v] to [5]\n                else\n                    if <(answer) = [6]> then\n                        set [dis v] to [6]\n                    else\n                        if <(answer) = [7]> then\n                            set [dis v] to [7]\n                        else\n                            if <(answer) = [8]> then\n                                set [dis v] to [8]\n                            else\n                                if <(answer) = [9]> then\n                                    set [dis v] to [9]\n                                else\n                                    if <(answer) = [10]> then\n                                        set [dis v] to [10]\n                                    else\n                                        if <(answer) = [11]> then\n                                            set [dis v] to [11]\n                                        else\n                                            if <(answer) = [12]> then\n                                                set [dis v] to [12]\n                                            else\n                                                if <(answer) = [13]> then\n                                                    set [dis v] to [13]\n                                                else\n                                                    if <(answer) = [14]> then\n                                                        set [dis v] to [14]\n                                                    else\n                                                        set [dis v] to [0]\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nshow list [commande v]\nwait (30) seconds\nshow list [commande v]\nset [dis v] to [0]\n\nwhen [t v] key pressed\nset [dis v] to [0]\nhide list [commande v]\n\nwait (10) seconds\nhide\n\nwhen I receive [double click détecté v]\n\nhide list [commande v]\n\nwait (10) seconds\nhide\n\nwhen flag clicked\nrepeat until <[12] > (length of [commande v])>\n    delete (12) of [commande v]\nend\nif <[admin v] contains (username)?> then\n    add [✋] to [commande v]\n    add [⚽️] to [commande v]\n    add [☹️] to [commande v]\n    add [⭐️] to [commande v]\nend\n\nrepeat (10)\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\nclear graphic effects\n\nhide\n\nwhen I receive [multiplayer v]\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen I receive [singleplayer v]\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\n@Sprite5\n\nwhen flag clicked\ndelete all of [joueurs v]\nhide\nforever\n    set [_________________________________________________________________________ v] to [1]\n    if <(item (_________________________________________________________________________) of [joueurs v]) = []> then\n        repeat until <not <(item (_________________________________________________________________________) of [joueurs v]) = []>>\n            change [_________________________________________________________________________ v] by (1)\n            if <(_________________________________________________________________________) > [5]> then\n                set [_________________________________________________________________________ v] to [1]\n            end\n        end\n    end\n    set [___________________________________________------------------------------------------------------- v] to (_________________________________________________________________________)\n    if <(Mon player) = (___________________________________________-------------------------------------------------------)> then\n        if <<<(☁ --) = []> or <(☁ __) = []>> or <<(☁ --) = [0]> or <(☁ __) = [0]>>> then\n            if <(pick random (1) to (1000)) = [53]> then\n                set [☁ -- v] to (((pick random (-1730) to (1730)) + (5000)) + (5000))\n                set [☁ __ v] to (pick random (-832) to (832))\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    hide list [joueurs v]\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    show list [joueurs v]\nend\n\nwhen flag clicked\nshow variable [☁ -- v]\nshow variable [☁ __ v]\nhide variable [☁ -- v]\nhide variable [☁ __ v]\nhide\nforever\n    go to x: (round (((☁ --) - (5000)) + ([x position v] of [terrain v]))) y: (round (((☁ __) - (5000)) + ([y position v] of [terrain v])))\nend\n\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    if <<<(☁ --) = []> or <(☁ __) = []>> or <<(☁ --) = [0]> or <(☁ __) = [0]>>> then\n        hide\n    else\n        if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n            hide\n        else\n            show\n        end\n    end\n    if <touching (terrain v)?> then\n        set [☁ -- v] to []\n        set [☁ __ v] to []\n    end\nend\n\nwhen flag clicked\ndelete all of [joueurs v]\nhide\nforever\n    wait (180) seconds\n    if <(Mon player) = (___________________________________________-------------------------------------------------------)> then\n        set [☁ -- v] to (((pick random (-1730) to (1730)) + (5000)) + (5000))\n        set [☁ __ v] to (pick random (-832) to (832))\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nhide variable [orientation v]\nshow list [inclinaison v]\nhide\n\nswitch costume to ( v)\nset size to (50) %\nswitch costume to (costume1 v)\nset [c v] to [2]\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nset [c v] to [1]\nswitch costume to (costume3 v)\nforever\n    delete all of [inclinaison v]\n    add [] to [inclinaison v]\n    add [] to [inclinaison v]\n    broadcast (touve l'inclinaison v) and wait\n    if <<(item (1) of [inclinaison v]) = [true]> and <(item (2) of [inclinaison v]) = [true]>> then\n        set [orientation v] to (direction)\n    end\nend\n\ndefine trouve l'inclinaison\nset y to (-3)\nset [ghost v] effect to (100)\npoint in direction (0)\nrepeat until <<(direction) = [180]> or <<(item (1) of [inclinaison v]) = [true]> and <(item (2) of [inclinaison v]) = [true]>>>\n    replace item (c) of [inclinaison v] with <touching (terrain v)?>\n    turn right (1) degrees\n    if <<(item (1) of [inclinaison v]) = [true]> and <(item (2) of [inclinaison v]) = [true]>> then\n        repeat (10)\n            stop [this script v]\n        end\n    end\nend\n\npoint in direction (-179)\n\nwhen I receive [touve l'inclinaison v]\ntrouve l'inclinaison\n\nwait (1) seconds\n\nwait (0.0000000000000000000000000000000000000000000001) seconds\n\n@scratch\n\nwhen I receive [message1 v]\nwait (0.0001) seconds\nforever\n    if <(player) = [1]> then\n        if <(☁ 1) = [0]> then\n            hide\n            set [ghost v] effect to (99)\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [2]> then\n        if <(☁ 2) = [0]> then\n            hide\n            set [ghost v] effect to (99)\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [3]> then\n        if <(☁ 3) = [0]> then\n            hide\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [4]> then\n        if <(☁ 4) = [0]> then\n            hide\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [5]> then\n        if <(☁ 5) = [0]> then\n            hide\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [6]> then\n        if <(☁ 6) = [0]> then\n            hide\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\n    if <(player) = [7]> then\n        if <(☁ 7) = [0]> then\n            hide\n        else\n            if <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n                set [ghost v] effect to (99)\n            else\n                set [ghost v] effect to (0)\n                show\n            end\n        end\n    end\nend\n\nif <<<(x position) > [239]> or <[-239] > (x position)>> or <<(y position) > [179]> or <[-179] > (y position)>>> then\n    set [ghost v] effect to (99)\nelse\n    show\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [online v]\nforever\n\nif <(SCROLL x) > [1000]> then\n    set [scroll x v] to [1000]\nend\nif <(SCROLL y) > [1000]> then\n    set [scroll y v] to [1000]\nend\nif <(SCROLL x) < [-1000]> then\n    set [scroll x v] to [-1000]\nend\nif <(SCROLL y) < [-1000]> then\n    set [scroll y v] to [-1000]\nend\n\ndefine Setup players\nset [player v] to [1]\nadd [] to [joueurs v]\nrepeat ((Max player #) - (1))\n    create clone of (_myself_ v)\n    change [player v] by (1)\n    add [] to [joueurs v]\nend\n\nwhen I receive [online v]\nset [scroll x v] to [0]\nset [scroll y v] to [100]\nset [max player # v] to [7]\nset [mon player v] to [0]\nSetup players\nbroadcast (Choix clone v)\nbroadcast (message1 v)\n\nwhen I receive [message1 v]\nhide variable [☁ p1 v]\nset [_yvel v] to [0]\nshow list [score v]\nshow list [joueurs v]\ndelete all of [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\nadd [0] to [touche? v]\ngo to x: (0) y: (0)\nset [en l'air v] to [0]\nwait until <not <(Mon player) = [0]>>\nif <(Mon player) = (player)> then\nforever\n    if <(Mon player) = (player)> then\n        show\n        set [encoded v] to []\n        set [x v] to (SCROLL x)\n        set [y v] to (SCROLL y)\n        set rotation style [left-right v]\n        Block (_temps) D'encoded\n        Block (((round ([x position v] of [terrain v])) * (-1)) + (5000)) D'encoded\n        Block (((round ([y position v] of [terrain v])) * (-1)) + (5000)) D'encoded\n        Block (username) D'encoded\n        Block (vie) D'encoded\n        Block (dis) D'encoded\n        Block (costume [number v]) D'encoded\n        Block (direction) D'encoded\n        Cloud (player) De (Encoded)\n    end\n    Value = cloud # (player)\n    \n    Décode de (Value)\n    Value\n    Value\n    set [x v] to (Value)\n    Value\n    set [y v] to (Value)\n    Value\n    replace item (player) of [joueurs v] with (Value)\n    say (Value)\n    set [nom v] to (Value)\n    Value\n    replace item (player) of [joueurs v] with (join (item (player) of [joueurs v]) (join [          health:] (Value)))\n    set [ma vie v] to (Value)\n    if <(item (player) of [joueurs v]) = (join [          health:] [])> then\n        replace item (player) of [joueurs v] with []\n    end\n    Value\n    if <not <(Value) = [0]>> then\n        say (join (nom) (join [ : ] (item (Value) of [commande 2 v])))\n    end\n    if <not <(Mon player) = (player)>> then\n        set x to (((x) - (5000)) + ([x position v] of [terrain v]))\n        set y to (((y) - (5000)) + ([y position v] of [terrain v]))\n    end\n    Value\n    if <not <(Mon player) = (player)>> then\n        switch costume to (Value)\n    end\n    Value\n    point in direction (Value)\n    if <(Mon player) = (player)> then\n        go to (player v)\n    end\n    set size to ((50) / (_zoom)) %\n    go to [front v] layer\nend\n\ndefine Décode de (encode)\nset [encoded v] to (encode)\nset [lettre # v] to [1]\n\nwhen flag clicked\n\nwhen I receive [choix clone v]\nset [v v] to (☁ 1)\nwait (2.5) seconds\nif <(☁ 1) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [1]\n    stop [this script v]\nend\nset [v v] to (☁ 2)\nwait (2.5) seconds\nif <(☁ 2) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [2]\n    stop [this script v]\nend\nset [v v] to (☁ 3)\nwait (2.5) seconds\nif <(☁ 3) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [3]\n    stop [this script v]\nend\nset [v v] to (☁ 4)\nwait (2.5) seconds\nif <(☁ 4) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [4]\n    stop [this script v]\nend\nset [v v] to (☁ 5)\nwait (2.5) seconds\nif <(☁ 5) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [5]\n    stop [this script v]\nend\nset [v v] to (☁ 6)\nwait (2.5) seconds\nif <(☁ 6) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [6]\n    stop [this script v]\nend\nset [v v] to (☁ 7)\nwait (2.5) seconds\nif <(☁ 7) = (V)> then\n    broadcast (C bon v)\n    set [mon player v] to [7]\n    stop [this script v]\nend\nbroadcast (Salle pleine v)\nrepeat until <not <(Mon player) = [0]>>\n    set [v v] to (☁ 1)\n    wait (2.5) seconds\n    if <(☁ 1) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [1]\n        stop [this script v]\n    end\n    set [v v] to (☁ 2)\n    wait (2.5) seconds\n    if <(☁ 2) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [2]\n        stop [this script v]\n    end\n    set [v v] to (☁ 3)\n    wait (2.5) seconds\n    if <(☁ 3) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [3]\n        stop [this script v]\n    end\n    set [v v] to (☁ 4)\n    wait (2.5) seconds\n    if <(☁ 4) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [4]\n        stop [this script v]\n    end\n    set [v v] to (☁ 5)\n    wait (2.5) seconds\n    if <(☁ 5) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [5]\n        stop [this script v]\n    end\n    set [v v] to (☁ 6)\n    wait (2.5) seconds\n    if <(☁ 6) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [6]\n        stop [this script v]\n    end\n    set [v v] to (☁ 7)\n    wait (2.5) seconds\n    if <(☁ 7) = (V)> then\n        broadcast (C bon v)\n        set [mon player v] to [7]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    set [_tick v] to (☁ 1)\n    wait (1) seconds\n    if <(☁ 1) = (_tick)> then\n        set [☁ 1 v] to [0]\n    end\n    set [_tick v] to (☁ 2)\n    wait (1) seconds\n    if <(☁ 2) = (_tick)> then\n        set [☁ 2 v] to [0]\n    end\n    set [_tick v] to (☁ 3)\n    wait (1) seconds\n    if <(☁ 3) = (_tick)> then\n        set [☁ 3 v] to [0]\n    end\n    set [_tick v] to (☁ 4)\n    wait (1) seconds\n    if <(☁ 4) = (_tick)> then\n        set [☁ 4 v] to [0]\n    end\n    set [_tick v] to (☁ 5)\n    wait (1) seconds\n    if <(☁ 5) = (_tick)> then\n        set [☁ 5 v] to [0]\n    end\n    set [_tick v] to (☁ 6)\n    wait (1) seconds\n    if <(☁ 6) = (_tick)> then\n        set [☁ 6 v] to [0]\n    end\n    set [_tick v] to (☁ 7)\n    wait (1) seconds\n    if <(☁ 7) = (_tick)> then\n        set [☁ 7 v] to [0]\n    end\nend\n\ndefine Cloud (player) De (value)\nif <(player) = [1]> then\n    set [☁ 1 v] to (value)\nelse\n    if <(player) = [2]> then\n        set [☁ 2 v] to (value)\n    else\n        if <(player) = [3]> then\n            set [☁ 3 v] to (value)\n        else\n            if <(player) = [4]> then\n                set [☁ 4 v] to (value)\n            else\n                if <(player) = [5]> then\n                    set [☁ 5 v] to (value)\n                else\n                    if <(player) = [6]> then\n                        set [☁ 6 v] to (value)\n                    else\n                        set [☁ 7 v] to (value)\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Value = cloud # (player)\nif <(player) = [1]> then\n    set [value v] to (☁ 1)\nelse\n    if <(player) = [2]> then\n        set [value v] to (☁ 2)\n    else\n        if <(player) = [3]> then\n            set [value v] to (☁ 3)\n        else\n            if <(player) = [4]> then\n                set [value v] to (☁ 4)\n            else\n                if <(player) = [5]> then\n                    set [value v] to (☁ 5)\n                else\n                    if <(player) = [6]> then\n                        set [value v] to (☁ 6)\n                    else\n                        set [value v] to (☁ 7)\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Block (val) D'encoded\nset [lettre # v] to [1]\nrepeat (length of (val))\n    set [encoded v] to (join (Encoded) (item # of (letter (Lettre #) of (val)) in [code v]))\n    change [lettre # v] by (1)\nend\nset [encoded v] to (join (Encoded) [00])\n\ndefine Value\nset [value v] to []\nforever\n    set [h v] to (join (letter (Lettre #) of (Encoded)) (letter ((Lettre #) + (1)) of (Encoded)))\n    change [lettre # v] by (2)\n    if <(H) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (Value) (item (H) of [code v]))\nend\n\nset [taille v] to [150]\nset [taille v] to [100]\n\nValue\n\nwhen I receive [mouvement v]\n\nwhen flag clicked\nset [en l'air v] to [0]\n\nwhen I receive [c bon v]\nforever\n    set rotation style [left-right v]\n    if <(Mon player) = (player)> then\nend\n\nbroadcast (mouvement v)\nnext costume\n\ndefine change player x par ()\n\nwhen I receive [c bon v]\nforever\n    if <(Mon player) = (player)> then\n        set [scroll x v] to (round ())\n        set [scroll y v] to (round ())\n    end\nend\n\nwhen I receive [c bon v]\nforever\n    if <(Mon player) = (player)> then\n        if <touching color (#ff0000)?> then\n    end\nend\n\nbroadcast (pad v)\n\nnext costume\nnext costume\n\nwhen I receive [c bon v]\nforever\n    set rotation style [left-right v]\nend\n\nswitch costume to (costume1 v)\n\nswitch costume to (costume2 v)\n\nnext costume\nwait (1) seconds\n\nnext costume\nwait (1) seconds\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [_temps v] by (0.01)\nend\n\nwhen flag clicked\nhide variable [fps v]\nforever\n    reset timer\n    repeat (4)\n        wait (0) seconds\n    end\n    if <(timer) < [0.140]> then\n        broadcast (stop v)\n        wait (0.00000001) seconds\n        stop [all v]\n    end\n    set [_-_-_-_-_- v] to [0]\n    reset timer\n    repeat until <(timer) > [0.99]>\n        change [_-_-_-_-_- v] by (1)\n    end\n    set [fps v] to (_-_-_-_-_-)\nend\n\nwhen I receive [admin v]\n\nwhen I receive [c bon v]\nset [pixelate v] effect to (40)\n\nwhen I receive [c bon v]\nwait (1) seconds\nforever\n    if <(Mon player) = (player)> then\n        if <touching color (#ff0000)?> then\n            broadcast (pad v)\n        end\n    end\nend\n\ngo to x: (0) y: (0)\nset [pixelate v] effect to (40)\nshow\n\nnext costume\n\nwhen flag clicked\n\nhide variable [_- v]\nhide variable [_-_-temps2 v]\nwait (1) seconds\nwait until <not <(Mon player) = [0]>>\nforever\n    if <mouse down?> then\n        if <(_-_-temps2) < [0.002]> then\n            broadcast (Double click détecté v)\n            set [_-_-temps2 v] to [0]\n        else\n            set [_-_-temps2 v] to [0]\n        end\n        wait until <not <mouse down?>>\n    end\nend\n\nwhen flag clicked\nforever\n    wait (0.1) seconds\n    change [_-_-temps2 v] by (0.001)\nend\n\nforever\n    set rotation style [all around v]\nend\n\nwhen I receive [c bon v]\n\nrepeat (3)\n\nwhen I receive [c bon v]\nshow variable [fps v]\n\nif <not <[admin v] contains (username)?>> then\n    add (username) to [admin v]\n    switch costume to (costume2 v)\nend\n\nif <[admin v] contains (username)?> then\n    switch costume to (costume2 v)\n    broadcast (Admin v)\nelse\n    switch costume to (costume3 v)\nend\n\nwhen flag clicked\nset [vie v] to [100]\n\nwhen flag clicked\nset [blocage v] to [0]\n\nwhen I receive [c bon v]\nset [_____frame v] to [1]\nset [_______state v] to [0]\nclear graphic effects\nswitch costume to (walk 1 v)\nforever\n    if <(player) = (Mon player)> then\n        if <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n            repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n                switch costume to (descente v)\n            end\n            if <(z1) = [0]> then\n                switch costume to (descente2 v)\n                set [blocage v] to [1]\n                wait (0.5) seconds\n                set [blocage v] to [0]\n            end\n        end\n        if <key (1 v) pressed?> then\n            set [_______state v] to [1]\n            switch costume to (sword 1_1 v)\n            repeat (8)\n                wait (0.01) seconds\n                next costume\n            end\n            set [_______state v] to [0]\n        end\n        if <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n            repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n                switch costume to (descente v)\n            end\n            if <(z1) = [0]> then\n                switch costume to (descente2 v)\n                set [blocage v] to [1]\n                wait (0.5) seconds\n                set [blocage v] to [0]\n            end\n        end\n        if <<key (4 v) pressed?> and <(z1) = [0]>> then\n            if <(z1) = [0]> then\n                set [blocage v] to [1]\n                switch costume to (tir1 v)\n                repeat (7)\n                    wait (0.01) seconds\n                    next costume\n                end\n                switch costume to (tir8 v)\n                wait (0.5) seconds\n                set [blocage v] to [0]\n            end\n        end\n        if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> and <not <(blocage) = [1]>>> then\n            point in direction (90)\n        end\n        if <<<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> and <not <(blocage) = [1]>>> then\n            point in direction (-90)\n        end\n        if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(x position) > (mouse x)> or <(mouse x) > (x position)>>>> then\n            change [______--_--_-_frame v] by (1)\n            if <(______--_--_-_frame) > [10.999999]> then\n                set [______--_--_-_frame v] to [1]\n            end\n            if <(_______state) = [0]> then\n                switch costume to (join [walk ] (round (______--_--_-_frame)))\n            end\n        else\n            set [______--_--_-_frame v] to [1]\n            if <(_______state) = [0]> then\n                switch costume to (walk v)\n            end\n        end\n    end\nend\n\nwhen I receive [c bon v]\nforever\n    clear graphic effects\n    replace item (player) of [vie v] with (ma vie)\nend\n\nwhen I receive [c bon v]\nforever\n    if <(player) = (Mon player)> then\n        if <<<touching color (#a5dce4)?> and <touching (scratch v)?>> and <not <(costume [name v]) = [tir8]>>> then\n            change [vie v] by (-10)\n            start sound [Tennis Hit v]\n            wait (1) seconds\n        end\n        if <touching (sprite5 v)?> then\n            change [vie v] by (10)\n            set [☁ __ v] to []\n            set [☁ -- v] to []\n            wait (1) seconds\n        end\n    end\n    if <<touching color (#a5dce4)?> and <touching (scratch v)?>> then\n        replace item (player) of [touche? v] with [1]\n    else\n        replace item (player) of [touche? v] with [0]\n    end\nend\n\nwhen flag clicked\nshow list [vie v]\nshow list [touche? v]\nset [kills v] to [0]\nrepeat (6)\n    add [] to [vie v]\nend\nforever\n    if <[0.1] > (vie)> then\n        broadcast (mort v)\n    end\nend\n\nchange [vie v] by (-10)\n\nadd [l_ecureuil] to [admin v]\n\ndelete all of [commande 2 v]\nset [lettre # v] to [0]\nrepeat (length of [commande v])\n    change [lettre # v] by (1)\n    add (item (Lettre #) of [commande v]) to [commande 2 v]\nend\n\nwhen I receive [c bon v]\n\n\nwhen I receive [c bon v]\nforever\n    if <(player) = (Mon player)> then\n        if <<(item (item # of [1] in [touche? v]) of [vie v]) = [0]> and <<[touche? v] contains [1]?> and <touching (scratch v)?>>> then\n            change [kills v] by (1)\n            change [vie v] by (10)\n            wait (1) seconds\n        end\n    end\nend\n\nif  then\n    replace item (player) of [touche? v] with [1]\nelse\n    replace item (player) of [touche? v] with [0]\nend\n\nwhen flag clicked\nset [arme v] to [1]\n\nwhen flag clicked\n\nwhen flag clicked\nhide variable [joueurs en ligne v]\nforever\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    show variable [joueurs en ligne v]\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    hide variable [joueurs en ligne v]\nend\n\nshow\n\nchange [ghost v] effect by (1)\nset [ghost v] effect to (0)\n\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n    point in direction (90)\nelse\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n        point in direction (-90)\n    end\nend\n\nif <(Mon player) = (player)> then\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\nend\n\nwhen I receive [multiplayer v]\nbroadcast (online v)\n\nwhen I receive [multiplayer v]\nif <<(username) = []> or <(☁ 1) = []>> then\n    broadcast (Pas possible v)\nend\n\nwhen I receive [multiplayer v]\nhide variable [joueurs en ligne v]\n\nwhen flag clicked\nshow variable [joueurs connectés v]\nforever\n    set [joueurs connectés v] to (joueurs en ligne)\nend\n\nwhen I receive [multiplayer v]\nhide variable [joueurs connectés v]\n\nwhen I receive [singleplayer v]\nhide variable [joueurs connectés v]\n\n@bot 1\n\nwhen I receive [singleplayer v]\nshow\nset [scroll x v] to [0]\nset [scroll y v] to [100]\nbroadcast (message2 v)\n\nwhen I receive [message2 v]\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide variable [x v]\n\nset [taille v] to [150]\nset [taille v] to [100]\n\nwhen I receive [mouvement v]\n\nwhen flag clicked\nset [en l'air v] to [0]\n\nwhen I receive [message2 v]\nforever\n    set rotation style [left-right v]\nend\n\nbroadcast (pad v)\n\nswitch costume to (costume1 v)\n\nswitch costume to (costume2 v)\n\nnext costume\nwait (1) seconds\n\nnext costume\nwait (1) seconds\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [_temps v] by (0.01)\nend\n\nwhen flag clicked\nhide\nset [vie v] to [100]\n\nwhen flag clicked\nset [blocage v] to [0]\n\nwhen I receive [message2 v]\nset [ghost v] effect to (99)\nset [_____frame v] to [1]\nset [_______state v] to [0]\nclear graphic effects\nswitch costume to (walk v)\nforever\n    set [x v] to (item (2) of [x v])\n    set [y v] to (item (2) of [y v])\n    go to x: ((x) - (item (1) of [x v])) y: (((y) - (item (1) of [y v])) - (20))\nend\n\nif <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(x position) > (mouse x)> or <(mouse x) > (x position)>>>> then\n    change [______--_--_-_frame v] by (1)\n    if <(______--_--_-_frame) > [10.999999]> then\n        set [______--_--_-_frame v] to [1]\n    end\n    if <(_______state) = [0]> then\nelse\n    set [______--_--_-_frame v] to [1]\n    if <(_______state) = [0]> then\n        switch costume to (walk v)\n    end\nend\n\nchange [vie v] by (-10)\n\ndelete all of [commande 2 v]\nset [lettre # v] to [0]\nrepeat (length of [commande v])\n    change [lettre # v] by (1)\n    add (item (Lettre #) of [commande v]) to [commande 2 v]\nend\n\nchange [ghost v] effect by (1)\nset [ghost v] effect to (0)\n\nwhen I receive [message2 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (hitbox2 v)\nset size to (5) %\nswitch costume to (hitbox v)\ngo to x: (pick random (-5) to (5)) y: (20)\nreplace item (2) of [x v] with ((x position) * (10))\nreplace item (2) of [y v] with ((y position) * (10))\nset [ghost v] effect to (99)\ngo to x: ((item (2) of [x v]) / (10)) y: ((item (2) of [y v]) / (10))\nforever\n    show\n    replace item (2) of [x v] with ((test 2) * (10))\n    replace item (2) of [y v] with ((yujij) * (10))\n    switch costume to (hitbox v)\nend\n\nadd [] to [x v]\nadd [] to [y v]\n\nwhen I receive [message2 v]\nforever\n    if <(item (2) of [gauche droite v]) = [1]> then\n        point in direction (90)\n    else\n        point in direction (-90)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (99)\ngo to x: ((item (2) of [x v]) / (10)) y: ((item (2) of [y v]) / (10))\ngo to x: () y: (20)\nwait (2) seconds\nforever\n    trouver la distance avec les autres\n    droite/gauche?\n    if <<<(#) > [80]> and <(#) < [140]>> or <(#) < [48]>> then\n        if <(pick random (1) to (5)) = [1]> then\n            bouger\n        else\n            if <<(pick random (1) to (4)) = [1]> and <(ma vie) < [30]>> then\n                esquive\n            else\n                attaquer\n            end\n        end\n    else\n        bouger\n    end\n    sauter\n    switch costume to (hitbox v)\nend\n\ndefine trouver la distance avec les autres\nset [# v] to [9999999999999]\nset [player# distance v] to [0]\nset [12 v] to [1]\nrepeat (length of [x v])\n    if <not <(12) = [2]>> then\n        if <((item (2) of [x v]) - (item (12) of [x v])) < [0]> then\n            set [1 v] to ((item (12) of [x v]) - (item (2) of [x v]))\n        else\n            set [1 v] to ((item (2) of [x v]) - (item (12) of [x v]))\n        end\n        if <((item (2) of [y v]) - (item (12) of [y v])) < [0]> then\n            set [2 v] to ((item (12) of [y v]) - (item (2) of [y v]))\n        else\n            set [2 v] to ((item (2) of [y v]) - (item (12) of [y v]))\n        end\n    end\n    if <((1) + ((2) * (1.1))) < (#)> then\n        set [# v] to ((1) + ((2) * (1.1)))\n        set [player# distance v] to (12)\n    end\n    set [z1 v] to (player# distance)\n    change [12 v] by (1)\n    set [test1 v] to (#)\nend\n\nset [1 v] to [0]\nset [2 v] to [0]\n\ndefine droite/gauche?\nset rotation style [left-right v]\nif <(item (player# distance) of [x v]) > (item (2) of [x v])> then\n    point in direction (90)\n    set [gauche/droite v] to [1]\nelse\n    point in direction (-90)\n    set [gauche/droite v] to [2]\nend\nreplace item (2) of [gauche droite v] with (gauche/droite)\n\ndefine bouger\nswitch costume to (hitbox v)\nbroadcast (bouger clone 1 v)\nrepeat (9)\n    wait (0.1) seconds\n    move (1) steps\nend\n\ndefine attaquer\nset [test 2 v] to (y)\nif <<(#) > [80]> and <(#) < [140]>> then\n    broadcast (attaque 2 clone 1 v) and wait\nelse\n    if <(#) < [48]> then\n        broadcast (attaque clone 1 v) and wait\n    end\nend\n\ndefine sauter\nif <(item (player# distance) of [y v]) > ((item (2) of [y v]) + (50))> then\n    if <(permission de sauter?) = [1]> then\n        change [y v] by (1.5)\n        set [permission de sauter? v] to [0]\n    end\nend\n\nwhen I start as a clone\ngo to x: (pick random (-5) to (5)) y: (20)\nset [test 2 v] to (x position)\nset [yujij v] to (y position)\nset [y v] to [0]\nwait (0.5) seconds\nforever\n    if <touching (sprite9 v)?> then\n        change y by (-1)\n        if <touching (sprite9 v)?> then\n            change y by (-1)\n            if <touching (sprite9 v)?> then\n                change y by (-1)\n                if <touching (sprite9 v)?> then\n                    change y by (-1)\n                    if <touching (sprite9 v)?> then\n                        change y by (-1)\n                        if <touching (sprite9 v)?> then\n                            change y by (-1)\n                            if <touching (sprite9 v)?> then\n                                change y by (6)\n                                move (-1) steps\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-0.1)\n    change y by (y)\n    if <touching (sprite9 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-3)\n    if <touching (sprite9 v)?> then\n        set [permission de sauter? v] to [1]\n    else\n        set [permission de sauter? v] to [0]\n    end\n    change y by (3)\nend\n\ndefine esquive\nswitch costume to (hitbox v)\nif <(gauche/droite) = [1]> then\n    change [gauche/droite v] by (1)\nelse\n    change [gauche/droite v] by (-1)\nend\nreplace item (2) of [gauche droite v] with (gauche/droite)\nbroadcast (esquive clone 1 v)\nrepeat (9)\n    wait (0.1) seconds\n    move (-1) steps\nend\n\nwhen I receive [bouger clone 1 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (walk 1 v)\n    repeat (9)\n        next costume\n        wait (0.1) seconds\n    end\n    switch costume to (walk v)\nend\n\nwhen I receive [attaque clone 1 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (sword 1_1 v)\n    repeat (6)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nif <key (1 v) pressed?> then\nif <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n    repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n        switch costume to (descente v)\n    end\n    if <(z1) = [0]> then\n        switch costume to (descente2 v)\n        set [blocage v] to [1]\n        wait (0.5) seconds\n        set [blocage v] to [0]\n    end\nend\nif <<key (4 v) pressed?> and <(z1) = [0]>> then\n    if <(z1) = [0]> then\n        set [blocage v] to [1]\n        switch costume to (tir1 v)\n        repeat (7)\n            wait (0.01) seconds\n            next costume\n        end\n        switch costume to (tir8 v)\n        wait (0.5) seconds\n        set [blocage v] to [0]\n    end\nend\n\nwhen I receive [attaque 2 clone 1 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (tir1 v)\n    repeat (7)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nset [12 v] to [1]\nset [# v] to [9999999999999]\nset [player# distance v] to [0]\n\nwhen I receive [esquive clone 1 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (walk 1 v)\n    repeat (9)\n        next costume\n        wait (0.1) seconds\n    end\n    switch costume to (walk v)\nend\n\nwhen I start as a clone\nforever\n    if <(ma vie) < [1]> then\n        go to x: (pick random (-5) to (5)) y: (20)\n        set [ma vie v] to [100]\n        if <touching (scratch2 v)?> then\n            change [kills v] by (1)\n        end\n    end\n    set [test 2 v] to (x position)\n    set [yujij v] to (y position)\nend\n\nwhen I receive [perte de vie p1 v]\nchange [ma vie v] by (-10)\n\nwhen flag clicked\nforever\n    if <<touching color (#a5dce4)?> and <not <(costume [name v]) = [tir8]>>> then\n        broadcast (perte de vie P1 v)\n        wait (1) seconds\n    end\nend\n\nreplace item (1) of [admin v] with [chose]\n\nwhen I start as a clone\nset [ma vie v] to [100]\n\ngo to x: (0) y: (20)\n\ngo to x: (0) y: (20)\nreplace item (2) of [x v] with [0]\nreplace item (2) of [y v] with [200]\nswitch costume to (hitbox v)\n\n@Sprite7\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (multiplayer v)\nhide\n\nwhen I receive [singleplayer v]\nhide\n\n@Sprite8\n\nwhen flag clicked\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nbroadcast (singleplayer v)\nhide\nif <(username) = [maDU59_]> then\nend\n\nwhen I receive [multiplayer v]\nset [mode s/m v] to [1]\nhide\n\nwhen I receive [singleplayer v]\nset [mode s/m v] to [2]\nhide\n\n@scratch2\n\nwhen I receive [online v]\nforever\n\nwhen I receive [singleplayer v]\nshow\nset [scroll x v] to [0]\nset [scroll y v] to [100]\nbroadcast (message2 v)\n\nwhen I receive [message2 v]\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    set [_tick v] to (☁ 1)\n    wait (1) seconds\n    if <(☁ 1) = (_tick)> then\n        set [☁ 1 v] to [0]\n    end\n    set [_tick v] to (☁ 2)\n    wait (1) seconds\n    if <(☁ 2) = (_tick)> then\n        set [☁ 2 v] to [0]\n    end\n    set [_tick v] to (☁ 3)\n    wait (1) seconds\n    if <(☁ 3) = (_tick)> then\n        set [☁ 3 v] to [0]\n    end\n    set [_tick v] to (☁ 4)\n    wait (1) seconds\n    if <(☁ 4) = (_tick)> then\n        set [☁ 4 v] to [0]\n    end\n    set [_tick v] to (☁ 5)\n    wait (1) seconds\n    if <(☁ 5) = (_tick)> then\n        set [☁ 5 v] to [0]\n    end\n    set [_tick v] to (☁ 6)\n    wait (1) seconds\n    if <(☁ 6) = (_tick)> then\n        set [☁ 6 v] to [0]\n    end\n    set [_tick v] to (☁ 7)\n    wait (1) seconds\n    if <(☁ 7) = (_tick)> then\n        set [☁ 7 v] to [0]\n    end\nend\n\nset [taille v] to [150]\nset [taille v] to [100]\n\nwhen I receive [mouvement v]\n\nwhen flag clicked\nset [en l'air v] to [0]\n\nwhen I receive [message2 v]\nforever\n    set rotation style [left-right v]\nend\n\nbroadcast (mouvement v)\nnext costume\n\ndefine change player x par ()\n\nwhen I receive [c bon v]\nforever\n    if <(Mon player) = (player)> then\n        set [scroll x v] to (round ())\n        set [scroll y v] to (round ())\n    end\nend\n\nbroadcast (pad v)\n\nnext costume\nnext costume\n\nwhen I receive [c bon v]\nforever\n    set rotation style [left-right v]\nend\n\nswitch costume to (costume1 v)\n\nswitch costume to (costume2 v)\n\nnext costume\nwait (1) seconds\n\nnext costume\nwait (1) seconds\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [_temps v] by (0.01)\nend\n\nwhen I receive [admin v]\n\nwhen I receive [c bon v]\nset [pixelate v] effect to (40)\n\ngo to x: (0) y: (0)\n\nset [pixelate v] effect to (40)\nshow\n\nnext costume\n\nforever\n    set rotation style [all around v]\nend\n\nrepeat (3)\n\nwhen I receive [c bon v]\nshow variable [fps v]\n\nwhen flag clicked\nset [vie v] to [100]\n\nwhen flag clicked\nhide\nset [blocage v] to [0]\n\nwhen I receive [message2 v]\nshow\nset [_____frame v] to [1]\nset [_______state v] to [0]\nclear graphic effects\nswitch costume to (walk 1 v)\nforever\n    if <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n        repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n            switch costume to (descente v)\n        end\n        if <(z1) = [0]> then\n            switch costume to (descente2 v)\n            set [blocage v] to [1]\n            wait (0.5) seconds\n            set [blocage v] to [0]\n        end\n    end\n    if <key (1 v) pressed?> then\n        set [_______state v] to [1]\n        switch costume to (sword 1_1 v)\n        repeat (8)\n            wait (0.01) seconds\n            next costume\n        end\n        set [_______state v] to [0]\n    end\n    if <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n        repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n            switch costume to (descente v)\n        end\n        if <(z1) = [0]> then\n            switch costume to (descente2 v)\n            set [blocage v] to [1]\n            wait (0.5) seconds\n            set [blocage v] to [0]\n        end\n    end\n    if <<key (4 v) pressed?> and <(z1) = [0]>> then\n        if <(z1) = [0]> then\n            set [blocage v] to [1]\n            switch costume to (tir1 v)\n            repeat (7)\n                wait (0.01) seconds\n                next costume\n            end\n            switch costume to (tir8 v)\n            wait (0.5) seconds\n            set [blocage v] to [0]\n        end\n    end\n    if <<<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> and <not <(blocage) = [1]>>> then\n        point in direction (90)\n    end\n    if <<<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> and <not <(blocage) = [1]>>> then\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(x position) > (mouse x)> or <(mouse x) > (x position)>>>> then\n        change [______--_--_-_frame v] by (1)\n        if <(______--_--_-_frame) > [10.999999]> then\n            set [______--_--_-_frame v] to [1]\n        end\n        if <(_______state) = [0]> then\n            switch costume to (join [walk ] (round (______--_--_-_frame)))\n        end\n        wait (0.01) seconds\n    else\n        set [______--_--_-_frame v] to [1]\n        if <(_______state) = [0]> then\n            switch costume to (walk v)\n        end\n    end\nend\n\nchange [vie v] by (-10)\n\nadd [l_ecureuil] to [admin v]\n\ndelete all of [commande 2 v]\nset [lettre # v] to [0]\nrepeat (length of [commande v])\n    change [lettre # v] by (1)\n    add (item (Lettre #) of [commande v]) to [commande 2 v]\nend\n\nwhen I receive [c bon v]\n\n\nif  then\n    replace item (player) of [touche? v] with [1]\nelse\n    replace item (player) of [touche? v] with [0]\nend\n\nwhen flag clicked\nset [arme v] to [1]\n\nwhen flag clicked\n\nwhen flag clicked\n\nhide variable [joueurs en ligne v]\nforever\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    show variable [joueurs en ligne v]\n    wait until <not <key (3 v) pressed?>>\n    wait until <key (3 v) pressed?>\n    hide variable [joueurs en ligne v]\nend\n\nchange [ghost v] effect by (1)\nset [ghost v] effect to (0)\n\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n    point in direction (90)\nelse\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n        point in direction (-90)\n    end\nend\n\nif <(Mon player) = (player)> then\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\nend\n\nwhen I receive [multiplayer v]\nbroadcast (online v)\n\nwhen I receive [message2 v]\nwait (1) seconds\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (pad v)\n    end\nend\n\nwhen I receive [singleplayer v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (0) %\nforever\n    show\n    go to x: ((item (1) of [x v]) / (10)) y: ((item (1) of [y v]) / (10))\n    set size to (0) %\n    set [ghost v] effect to (100)\nend\n\nwhen flag clicked\nforever\n    set [x v] to ((round ([x position v] of [terrain v])) * (-1))\n    set [y v] to ((round ([y position v] of [terrain v])) * (-1))\n    replace item (1) of [x v] with (x)\n    replace item (1) of [y v] with (y)\nend\n\nadd [] to [x v]\n\nadd [] to [y v]\n\nset [ghost v] effect to (0)\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(vie) < [1]> then\n        wait (0.1) seconds\n        set [vie v] to [100]\n    end\nend\n\nwhen I receive [message2 v]\nforever\n    if <<touching color (#a5dce4)?> and <not <(costume [name v]) = [tir8]>>> then\n        change [vie v] by (-10)\n        wait (1) seconds\n    end\nend\n\n@Sprite9\n\nwhen I receive [singleplayer v]\nset [ghost v] effect to (99)\nforever\n    show\n    set size to (80) %\n    go to x: (0) y: (0)\nend\n\nif <(username) = [maDU59_]> then\n    set [ghost v] effect to (0)\nend\n\nwhen flag clicked\nhide\n\n@bot2\n\nwhen I receive [singleplayer v]\nshow\nset [scroll x v] to [0]\nset [scroll y v] to [100]\nbroadcast (message2 v)\n\nwhen I receive [message2 v]\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide variable [x v]\n\nset [taille v] to [150]\nset [taille v] to [100]\n\nwhen I receive [mouvement v]\n\nwhen flag clicked\nset [en l'air v] to [0]\n\nwhen I receive [message2 v]\nforever\n    set rotation style [left-right v]\nend\n\nbroadcast (pad v)\n\nswitch costume to (costume1 v)\n\nswitch costume to (costume2 v)\n\nnext costume\nwait (1) seconds\n\nnext costume\nwait (1) seconds\n\nwhen flag clicked\nforever\n    wait (1) seconds\n    change [_temps v] by (0.01)\nend\n\nwhen flag clicked\nhide\nset [vie v] to [100]\n\nwhen flag clicked\nset [blocage v] to [0]\n\nwhen I receive [message2 v]\nset [ghost v] effect to (99)\nset [_____frame v] to [1]\nset [_______state v] to [0]\nclear graphic effects\nswitch costume to (walk v)\nforever\n    set [x v] to (item (3) of [x v])\n    set [y v] to (item (3) of [y v])\n    go to x: ((x) - (item (1) of [x v])) y: (((y) - (item (1) of [y v])) - (20))\nend\n\nif <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <<(x position) > (mouse x)> or <(mouse x) > (x position)>>>> then\n    change [______--_--_-_frame v] by (1)\n    if <(______--_--_-_frame) > [10.999999]> then\n        set [______--_--_-_frame v] to [1]\n    end\n    if <(_______state) = [0]> then\nelse\n    set [______--_--_-_frame v] to [1]\n    if <(_______state) = [0]> then\n        switch costume to (walk v)\n    end\nend\n\nchange [vie v] by (-10)\n\ndelete all of [commande 2 v]\nset [lettre # v] to [0]\nrepeat (length of [commande v])\n    change [lettre # v] by (1)\n    add (item (Lettre #) of [commande v]) to [commande 2 v]\nend\n\nchange [ghost v] effect by (1)\nset [ghost v] effect to (0)\n\nwhen I receive [message2 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (hitbox2 v)\nset size to (5) %\nswitch costume to (hitbox v)\nset [ghost v] effect to (99)\ngo to x: (pick random (-5) to (5)) y: (20)\nreplace item (3) of [x v] with ((x position) * (10))\nreplace item (3) of [y v] with ((y position) * (10))\ngo to x: ((item (3) of [x v]) / (10)) y: ((item (3) of [y v]) / (10))\nforever\n    show\n    replace item (3) of [x v] with ((x position) * (10))\n    replace item (3) of [y v] with ((y position) * (10))\n    switch costume to (hitbox v)\nend\n\nadd [] to [x v]\nadd [] to [y v]\n\nwhen I receive [message2 v]\nforever\n    if <(item (3) of [gauche droite v]) = [1]> then\n        point in direction (90)\n    else\n        point in direction (-90)\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (99)\ngo to x: ((item (3) of [x v]) / (10)) y: ((item (3) of [y v]) / (10))\nwait (2) seconds\nforever\n    trouver la distance avec les autres\n    droite/gauche?\n    if <<<(#) > [80]> and <(#) < [140]>> or <(#) < [48]>> then\n        if <(pick random (1) to (5)) = [1]> then\n            bouger\n        else\n            if <<(pick random (1) to (4)) = [1]> and <(ma vie) < [30]>> then\n                esquive\n            else\n                attaquer\n            end\n        end\n    else\n        bouger\n    end\n    sauter\n    switch costume to (hitbox v)\nend\n\ndefine trouver la distance avec les autres\nset [# v] to [9999999999999]\nset [player# distance v] to [0]\nset [12 v] to [1]\nrepeat (length of [x v])\n    if <not <(12) = [3]>> then\n        if <((item (3) of [x v]) - (item (12) of [x v])) < [0]> then\n            set [1 v] to ((item (12) of [x v]) - (item (3) of [x v]))\n        else\n            set [1 v] to ((item (3) of [x v]) - (item (12) of [x v]))\n        end\n        if <((item (3) of [y v]) - (item (12) of [y v])) < [0]> then\n            set [2 v] to ((item (12) of [y v]) - (item (3) of [y v]))\n        else\n            set [2 v] to ((item (3) of [y v]) - (item (12) of [y v]))\n        end\n    end\n    if <((1) + ((2) * (1.1))) < (#)> then\n        set [# v] to ((1) + ((2) * (1.1)))\n        set [player# distance v] to (12)\n    end\n    set [z1 v] to (player# distance)\n    change [12 v] by (1)\nend\n\nset [1 v] to [0]\nset [2 v] to [0]\n\ndefine droite/gauche?\nset rotation style [left-right v]\nif <(item (player# distance) of [x v]) > (item (3) of [x v])> then\n    point in direction (90)\n    set [gauche/droite v] to [1]\nelse\n    point in direction (-90)\n    set [gauche/droite v] to [2]\nend\nreplace item (3) of [gauche droite v] with (gauche/droite)\n\ndefine bouger\nswitch costume to (hitbox v)\nbroadcast (bouger clone 2 v)\nrepeat (9)\n    move (1) steps\n    wait (0.1) seconds\nend\n\ndefine attaquer\nset [test 2 v] to (y)\nif <<(#) > [80]> and <(#) < [140]>> then\n    broadcast (attaque 2 clone 2 v) and wait\nelse\n    if <(#) < [48]> then\n        broadcast (attaque clone 2 v) and wait\n    end\nend\n\ndefine sauter\nif <(item (player# distance) of [y v]) > ((item (3) of [y v]) + (50))> then\n    if <(permission de sauter?) = [1]> then\n        change [y v] by (1.5)\n        set [permission de sauter? v] to [0]\n    end\nend\n\nwhen I start as a clone\ngo to x: (pick random (-5) to (5)) y: (20)\nset [y v] to [0]\nwait (0.5) seconds\nforever\n    if <touching (sprite9 v)?> then\n        change y by (-1)\n        if <touching (sprite9 v)?> then\n            change y by (-1)\n            if <touching (sprite9 v)?> then\n                change y by (-1)\n                if <touching (sprite9 v)?> then\n                    change y by (-1)\n                    if <touching (sprite9 v)?> then\n                        change y by (-1)\n                        if <touching (sprite9 v)?> then\n                            change y by (-1)\n                            if <touching (sprite9 v)?> then\n                                change y by (6)\n                                move (-1) steps\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-0.1)\n    change y by (y)\n    if <touching (sprite9 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-3)\n    if <touching (sprite9 v)?> then\n        set [permission de sauter? v] to [1]\n    else\n        set [permission de sauter? v] to [0]\n    end\n    change y by (3)\nend\n\ndefine esquive\nswitch costume to (hitbox v)\nif <(gauche/droite) = [1]> then\n    change [gauche/droite v] by (1)\nelse\n    change [gauche/droite v] by (-1)\nend\nreplace item (2) of [gauche droite v] with (gauche/droite)\nbroadcast (esquive clone 2 v)\nrepeat (9)\n    move (-1) steps\n    wait (0.1) seconds\nend\n\nwhen I receive [bouger clone 2 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (walk 1 v)\n    repeat (9)\n        next costume\n        wait (0.1) seconds\n    end\n    switch costume to (walk v)\nend\n\nif <(username) = [maDU59_]> then\n    set [ghost v] effect to (0)\nend\n\nwhen I receive [attaque clone 2 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (sword 1_1 v)\n    repeat (6)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nif <key (1 v) pressed?> then\nif <<key (2 v) pressed?> and <not <(z1) = [0]>>> then\n    repeat until <<not <key (2 v) pressed?>> or <not <(z1) > [0]>>>\n        switch costume to (descente v)\n    end\n    if <(z1) = [0]> then\n        switch costume to (descente2 v)\n        set [blocage v] to [1]\n        wait (0.5) seconds\n        set [blocage v] to [0]\n    end\nend\nif <<key (4 v) pressed?> and <(z1) = [0]>> then\n    if <(z1) = [0]> then\n        set [blocage v] to [1]\n        switch costume to (tir1 v)\n        repeat (7)\n            wait (0.01) seconds\n            next costume\n        end\n        switch costume to (tir8 v)\n        wait (0.5) seconds\n        set [blocage v] to [0]\n    end\nend\n\nwhen I receive [attaque 2 clone 2 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (tir1 v)\n    repeat (7)\n        wait (0.01) seconds\n        next costume\n    end\nend\n\nset [12 v] to [1]\nset [# v] to [9999999999999]\nset [player# distance v] to [0]\n\nwhen I receive [esquive clone 2 v]\nif <not <(costume [name v]) = [hitbox]>> then\n    switch costume to (walk 1 v)\n    repeat (9)\n        next costume\n        wait (0.1) seconds\n    end\n    switch costume to (walk v)\nend\n\nwhen I start as a clone\nforever\n    if <(ma vie) < [1]> then\n        go to x: (pick random (-5) to (5)) y: (20)\n        set [ma vie v] to [100]\n        if <touching (scratch2 v)?> then\n            change [kills v] by (1)\n        end\n    end\nend\n\nwhen I receive [perte de vie p2 v]\nchange [ma vie v] by (-10)\n\nwhen flag clicked\nforever\n    if <<touching color (#a5dce4)?> and <not <(costume [name v]) = [tir8]>>> then\n        broadcast (perte de vie P2 v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ma vie v] to [100]\n\nset [_________________________________________________________________________ v] to [0]\n\n@Sprite10\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\n\nwhen I start as a clone\nif <(costume [name v]) = [logo]> then\n    set size to (50) %\n    go to x: (0) y: (-20)\n    go to [back v] layer\n    show\n    wait (4) seconds\n    Boing\n    Smooth Glide to x [-150] y [-20] Speed [6]\n    wait (3) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n        wait (0.001) seconds\n    end\n    hide\nend\nif <(costume [name v]) = [slide1]> then\n    go to x: (0) y: (0)\n    show\n    wait (3) seconds\n    Smooth Glide to x [-465] y [0] Speed [6]\n    hide\nend\nif <(costume [name v]) = [slide2]> then\n    go to x: (0) y: (0)\n    show\n    wait (2) seconds\n    Smooth Glide to x [465] y [0] Speed [6]\n    hide\nend\nif <(costume [name v]) = [slide haut]> then\n    go to x: (0) y: (0)\n    show\n    wait (1) seconds\n    Smooth Glide to x [0] y [-160] Speed [6]\n    hide\nend\nif <(costume [name v]) = [slide bas]> then\n    go to x: (0) y: (0)\n    show\n    wait (1) seconds\n    Smooth Glide to x [0] y [160] Speed [6]\n    hide\nend\nif <(costume [name v]) = [Text]> then\n    set size to (87) %\n    set [ghost v] effect to (100)\n    go to x: (80) y: (400)\n    hide\n    wait (6) seconds\n    show\n    Smooth Glide to x [80] y [-20] Speed [6]\n    wait (2) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n        wait (0.001) seconds\n    end\n    hide\nend\nif <(costume [name v]) = [Thanks]> then\n    set size to (87) %\n    set [ghost v] effect to (0)\n    go to x: (180) y: (-160)\n    hide\n    wait (0) seconds\n    show\n    wait (8) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n        wait (0.001) seconds\n    end\n    hide\nend\n\ndefine Boing\nset size to (30) %\ngo to [front v] layer\ngo to x: (0) y: (-20)\nset [ma variable v] to [40]\nset [ma variable v] to (((ma variable) * (0.7)) + (((50) - (size)) * (0.2)))\nchange size by (ma variable)\nshow\nrepeat (20)\n    set [ma variable v] to (((ma variable) * (0.7)) + (((50) - (size)) * (0.2)))\n    change size by (ma variable)\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Text]> then\n    wait (6) seconds\n    repeat (10)\n        change [ghost v] effect by (-10)\n        wait (0.001) seconds\n    end\nend\n\nwhen flag clicked\nplay sound [sound v] until done\n\nwhen I receive [multiplayer v]\ngo to [front v] layer\nhide\nswitch costume to (slide1 v)\ncreate clone of (_myself_ v)\nswitch costume to (slide2 v)\ncreate clone of (_myself_ v)\nswitch costume to (slide bas v)\ncreate clone of (_myself_ v)\nswitch costume to (slide haut v)\ncreate clone of (_myself_ v)\nswitch costume to (text v)\ncreate clone of (_myself_ v)\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nswitch costume to (thanks v)\ncreate clone of (_myself_ v)\n\nwhen I receive [c bon v]\nhide\ndelete this clone\n\n