Mario Cube ▪️ A Scrolling Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (langues v)\n\nwhen I receive [langue suggestion choisie v]\nwait (0.2) seconds\nswitch backdrop to (menu v)\n\nwhen I receive [jeu v]\nswitch backdrop to (jeu v)\n\n@blank\n\nwhen [1 v] key pressed\n\nif <(username) = [remixsuper]> then\n    change [scrollx v] by (100)\nend\n\nwhen [3 v] key pressed\n\nif <(username) = [remixsuper]> then\n    change [scrollx v] by (-100)\nend\n\n@personnage\n\nwhen flag clicked\nhide\n\ndefine mouvement\ngo to [front v] layer\nif <key (right arrow v) pressed?> then\n    point in direction (90)\n    change [x v] by (1)\nend\nif <key (left arrow v) pressed?> then\n    point in direction (-90)\n    change [x v] by (-1)\nend\nchange x by (X)\nset [x v] to ((X) * (0.8))\nchange [y v] by (-1.5)\nif <(Y) < [-20]> then\n    set [y v] to [-20]\nend\nif <touching (niveau v)?> then\n    change y by (1.5)\n    set [je ne sais pas quel nom donner ... v] to [0]\n    repeat until <<not <touching (niveau v)?>> or <(je ne sais pas quel nom donner ...) = [-20]>>\n        change [je ne sais pas quel nom donner ... v] by (-1)\n        change y by (1)\n    end\n    if <(je ne sais pas quel nom donner ...) = [-20]> then\n        if <key (up arrow v) pressed?> then\n            if <(X) > [0]> then\n                set [x v] to [-8]\n            else\n                set [x v] to [8]\n            end\n            set [y v] to [12]\n        else\n            set [x v] to ((X) * (-1.3))\n            change x by (X)\n            set [x v] to [0]\n        end\n    end\n    change y by (je ne sais pas quel nom donner ...)\nend\nchange y by (Y)\nif <touching (niveau v)?> then\n    set [y v] to ((Y) * (-0.25))\n    change y by (Y)\n    if <touching (niveau v)?> then\n        change y by (Y)\n        if <touching (niveau v)?> then\n            change y by (Y)\n        end\n    end\nend\nchange y by (-1)\nif <<touching (niveau v)?> and <key (up arrow v) pressed?>> then\n    set [y v] to [20]\nend\nif <<(y position) < [-180]> or <touching (ennemis v)?>> then\n    mort\nend\nchange [scrollx v] by (((x position) - ((x position) / (1.2))) * (-1))\nset x to ((x position) / (1.2))\n\nwhen I receive [jeu v]\nreset timer\nset [scrollx v] to [300]\nshow\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (200.25) y: (0)\nset size to (70) %\nforever\n    mouvement\n    if <key (space v) pressed?> then\n        wait (1) seconds\n    end\nend\n\ndefine mort\nset [y v] to [0]\nif <<(scrollX) > [200]> or <<(pièces de fin) = [30]> and <not <(scrollX) < [-11950]>>>> then\n    go to x: (150) y: (100)\nelse\n    go to x: (-250) y: (100)\nend\n\nwhen I receive [mort v]\nmort\n\nwhen I receive [jeu v]\nset [pièces de fin v] to [0]\nwait until <(pièces de fin) = [30]>\nbroadcast (fin v)\n\n@niveau\n\nwhen flag clicked\nforever\n    play sound [mario v] until done\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [jeu v]\nset [n° clone v] to [0]\nset [x clone v] to [0]\nCloner à [0] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [600] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [570] pixels du précédent\nCloner à [600] pixels du précédent\nCloner à [440] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [700] pixels du précédent\nCloner à [700] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [550] pixels du précédent\nCloner à [720] pixels du précédent\nCloner à [750] pixels du précédent\nCloner à [550] pixels du précédent\nCloner à [730] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [620] pixels du précédent\nCloner à [300] pixels du précédent\n\nwhen I start as a clone\nshow\nswitch costume to (n° clone)\nset size to (100) %\nforever\n    go to x: ((scrollX) + (X clone)) y: (0)\n    if <((scrollX) + (X clone)) = (x position)> then\n        show\n    else\n        hide\n    end\nend\n\ndefine Cloner à (x) pixels du précédent\nchange [x clone v] by (x)\nchange [n° clone v] by (1)\ncreate clone of (_myself_ v)\n\n@décors\n\nwhen flag clicked\nhide\n\nwhen I receive [jeu v]\nset [n° clone v] to [0]\nset [x clone v] to [0]\nCloner à [10770] pixels du précédent\nCloner à [1000] pixels du précédent\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nswitch costume to (n° clone)\nif <<(n° clone) = [2]> and <(Langue suggestions) = [fr]>> then\n    next costume\nend\nset size to (100) %\nforever\n    go to x: ((scrollX) + (X clone)) y: (0)\n    if <((scrollX) + (X clone)) = (x position)> then\n        show\n    else\n        hide\n    end\nend\n\ndefine Cloner à (x) pixels du précédent\nchange [x clone v] by (x)\nchange [n° clone v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [fin v]\nif <(n° clone) = [2]> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\n@ennemis\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nswitch costume to (n° clone)\nset size to (100) %\nforever\n    go to x: ((scrollX) + (X clone)) y: (0)\n    if <((scrollX) + (X clone)) = (x position)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [jeu v]\nset [n° clone v] to [0]\nset [x clone v] to [0]\nCloner à [1440] pixels du précédent\nCloner à [1070] pixels du précédent\nCloner à [600] pixels du précédent\nCloner à [585] pixels du précédent\nCloner à [440] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [700] pixels du précédent\nCloner à [1180] pixels du précédent\nCloner à [650] pixels du précédent\nCloner à [1920] pixels du précédent\nCloner à [720] pixels du précédent\nCloner à [480] pixels du précédent\nCloner à [620] pixels du précédent\n\ndefine Cloner à (x) pixels du précédent\nchange [x clone v] by (x)\nchange [n° clone v] by (1)\ncreate clone of (_myself_ v)\n\n@confétits\n\nwhen I start as a clone\nshow\nset size to (pick random (15) to (75)) %\nset [color v] effect to (pick random (1) to (200))\nset [brightness v] effect to (pick random (-5) to (30))\nset [ghost v] effect to (100)\nset [confétits: mouvement v] to [-1]\nrepeat (130)\n    change [ghost v] effect by (-20)\n    change y by (confétits: mouvement)\n    set [confétits: mouvement v] to ((confétits: mouvement) * (1.01))\nend\nrepeat (5)\n    change y by (confétits: mouvement)\n    set [confétits: mouvement v] to ((confétits: mouvement) * (1.001))\n    change [ghost v] effect by (20)\nend\ndelete this clone\n\nwhen I start as a clone\ngo to x: (pick random (-240) to (240)) y: (pick random (100) to (180))\nset [x confétit v] to ((pick random (-240) to (240)) + (scrollX))\nif <(y position) < (([y position v] of [perso v]) + (75))> then\n    go to [front v] layer\nelse\n    go to [back v] layer\nend\nif <(x position) < ([x position v] of [perso v])> then\n    set [confétits: positionx v] to (pick random (-0.5) to (0.5))\nend\nif <(x position) > ([x position v] of [perso v])> then\n    set [confétits: positionx v] to (pick random (-0.5) to (0.5))\nend\nset [confétits: direction v] to (pick random (-5) to (5))\nforever\n    go to [front v] layer\n    turn right (confétits: direction) degrees\n    if <(confétits: mouvement) > [0]> then\n        change [x confétit v] by ((confétits: mouvement) * (confétits: positionX))\n    else\n        change [x confétit v] by (((confétits: mouvement) * (-0.5)) * (confétits: positionX))\n    end\n    set x to (((X confétit) * (-1)) + (scrollX))\n    if <(((X confétit) * (-1)) + (scrollX)) = (x position)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [fin v]\nstop all sounds\nstart sound [Triumph v]\nforever\n    create clone of (_myself_ v)\n    wait (0) seconds\nend\n\nwhen I start as a clone\nset [confétits: vitesse rotation v] to (pick random (0.0) to (0.2))\nswitch costume to (pick random (1) to (12))\nrepeat ((12) - (costume [number v]))\n    wait (confétits: vitesse rotation) seconds\n    next costume\nend\nforever\n    repeat (11)\n        wait (confétits: vitesse rotation) seconds\n        switch costume to ((costume [number v]) - (1))\n    end\n    repeat (11)\n        wait (confétits: vitesse rotation) seconds\n        next costume\n    end\nend\n\n@pièce\n\nwhen I receive [jeu v]\nshow variable [nombre de pièces v]\nif <(username) = [remixsuper]> then\n    forever\n        if <mouse down?> then\n            set [x new piece v] to (round ((mouse x) - (scrollX)))\n            set [y new piece v] to (mouse y)\n            wait (0.2) seconds\n        end\n        if <key (space v) pressed?> then\n            add (X new piece) to [pièces \(x\) v]\n            add (Y new piece) to [pièces \(y\) v]\n            set [n° clone pièce v] to (length of [pièces \(x\) v])\n            create clone of (_myself_ v)\n            wait (0.2) seconds\n        end\n    end\nend\n\nwhen flag clicked\nset [nombre de pièces v] to [0]\nhide variable [nombre de pièces v]\nset [clone ? v] to [non]\nhide\n\nwhen I receive [jeu v]\nif <(Clone ?) = [oui]> then\n    delete this clone\nend\nif <(Clone ?) = [non]> then\n    cloner les pièces\nend\n\nwhen I start as a clone\nset size to (50) %\nset [clone ? v] to [oui]\nshow\nforever\n    go to x: ((item (N° clone pièce) of [pièces \(x\) v]) + (scrollX)) y: (item (N° clone pièce) of [pièces \(y\) v])\n    if <((item (N° clone pièce) of [pièces \(x\) v]) + (scrollX)) = (x position)> then\n        show\n    else\n        hide\n    end\n    if <touching (personnage v)?> then\n        if <<(N° clone pièce) > [82]> and <(N° clone pièce) < [113]>> then\n            change [pièces de fin v] by (1)\n        end\n        go to [front v] layer\n        start sound [Coin v]\n        repeat (20)\n            change x by (((-209) - (x position)) / (3))\n            change y by (((159) - (y position)) / (3))\n            change size by (((43) - (size)) / (3))\n        end\n        change [nombre de pièces v] by (1)\n        delete this clone\n    end\nend\n\ndefine cloner les pièces\nset [n° clone pièce v] to [0]\nrepeat (length of [pièces \(x\) v])\n    change [n° clone pièce v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen this sprite clicked\nif <(username) = [remixsuper]> then\n    think (N° clone pièce) for (2) seconds\nend\n\nwhen I receive [fin v]\ndelete this clone\n\n@Sprite2\n\nwhen I receive [jeu v]\ngo to [back v] layer\ncreate clone of (_myself_ v)\nforever\n    go to x: ((((scrollX) / (5)) mod (1100)) - (550)) y: (0)\n    if <((((scrollX) / (5)) mod (1100)) - (550)) = (x position)> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nforever\n    go to x: (((((scrollX) / (5)) + (550)) mod (1100)) - (550)) y: (0)\nend\n\nwhen flag clicked\nhide\n\n@pièce2\n\nwhen flag clicked\nhide\n\nwhen I receive [jeu v]\nswitch costume to (gold_1 v)\nshow variable [progression % v]\nshow variable [temps v]\nset size to (43) %\ngo to x: (-209) y: (159)\nshow\nforever\n    go to [front v] layer\n    set [temps v] to (round (timer))\n    set [progression % v] to (join (round ((((scrollX) - (200)) / (-12200)) * (100))) [ %])\nend\n\nwhen I receive [montrer la pièce v]\ngo to [front v] layer\nswitch costume to (gold_2 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [fin v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@pièce3\n\nwhen flag clicked\nset [nombre de pièces v] to [0]\nhide variable [nombre de pièces v]\nset [clone ? v] to [non]\nhide\n\nwhen I receive [jeu v]\nif <(Clone ?) = [oui]> then\n    delete this clone\nend\nif <(Clone ?) = [non]> then\n    cloner les ennemis\nend\n\nwhen I start as a clone\nset [x clone goomba v] to (item (N° clone Goomba) of [goomba \(max x\) v])\nset size to (50) %\nset [clone ? v] to [oui]\nswitch costume to (goomba v)\nshow\nforever\n    go to x: ((X clone goomba) + (scrollX)) y: (item (N° clone Goomba) of [goomba \(y\) v])\n    if <((X clone goomba) + (scrollX)) = (x position)> then\n        show\n    else\n        hide\n    end\n    if <touching (personnage v)?> then\n        if <(Y) < [-1]> then\n            switch costume to (goomba2 v)\n            stop [other scripts in sprite v]\n            wait (0) seconds\n            set [y v] to [15]\n            repeat (15)\n                go to x: ((X clone goomba) + (scrollX)) y: (item (N° clone Goomba) of [goomba \(y\) v])\n                if <((X clone goomba) + (scrollX)) = (x position)> then\n                    show\n                else\n                    hide\n                end\n            end\n            set [endroit où apparait la pièce x v] to (X clone goomba)\n            set [endroit où apparait la pièce y v] to (item (N° clone Goomba) of [goomba \(y\) v])\n            create clone of (pièce qui apparait v)\n            delete this clone\n        else\n            broadcast (mort v)\n        end\n    end\nend\n\ndefine cloner les ennemis\nset [n° clone goomba v] to [0]\nrepeat (length of [goomba \(max x\) v])\n    change [n° clone goomba v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nforever\n    repeat until <(X clone goomba) < (item (N° clone Goomba) of [goomba \(min x\) v])>\n        change [x clone goomba v] by (-3)\n    end\n    wait (0.5) seconds\n    repeat until <(X clone goomba) > (item (N° clone Goomba) of [goomba \(max x\) v])>\n        change [x clone goomba v] by (3)\n    end\n    wait (0.5) seconds\nend\n\nwhen this sprite clicked\nif <(username) = [remixsuper]> then\n    think (N° clone Goomba) for (2) seconds\nend\n\n@pièce qui apparait\n\nwhen flag clicked\nset [nombre de pièces v] to [0]\nhide variable [nombre de pièces v]\nset [clone ? v] to [non]\nhide\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (50) %\nset [clone ? v] to [oui]\nset [x pièce qui apparait v] to (Endroit où apparait la pièce X)\nset [y pièce qui apparait v] to (Endroit où apparait la pièce Y)\nshow\nforever\n    go to x: ((X pièce qui apparait) + (scrollX)) y: (Y pièce qui apparait)\n    if <((X pièce qui apparait) + (scrollX)) = (x position)> then\n        show\n    else\n        hide\n    end\n    if <touching (personnage v)?> then\n        go to [front v] layer\n        start sound [Coin v]\n        repeat (20)\n            change x by (((-209) - (x position)) / (3))\n            change y by (((159) - (y position)) / (3))\n            change size by (((43) - (size)) / (3))\n        end\n        change [nombre de pièces v] by (1)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\nset [mouvement y v] to [15]\nrepeat (15)\n    change [mouvement y v] by (-1.92)\n    change [y pièce qui apparait v] by (mouvement Y)\nend\n\n@Sprite1\n\nwhen flag clicked\nhide variable [1er pièces \(afficheur\) v]\nhide variable [2ème pièces \(afficheur\) v]\nhide variable [3ème pièces \(afficheur\) v]\nhide variable [pièces \( total \) v]\nhide variable [1er \(afficheur\) v]\nhide variable [2ème \(afficheur\) v]\nhide variable [3eme \(afficheur\) v]\nhide variable [temps total v]\nhide variable [temps v]\nhide variable [progression % v]\nhide\n\nwhen I start as a clone\nif <(Type de clone) = [1]> then\n    switch costume to (1star v)\n    set [ghost v] effect to (100)\n    set size to (0) %\n    show\n    repeat (60)\n        go [backward v] (1) layers\n        change [ghost v] effect by (-10)\n        change size by (((100) - (size)) / (3))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(Type de clone) > [1]> then\n    set [ghost v] effect to (100)\n    set size to (7) %\n    if <(Type de clone) = [2]> then\n        go to x: (-126) y: (119)\n    end\n    if <(Type de clone) = [3]> then\n        go to x: (-126) y: (92)\n    end\n    if <(Type de clone) = [4]> then\n        go to x: (-126) y: (63)\n    end\n    if <(Type de clone) = [5]> then\n        go to x: (-126) y: (-18)\n    end\n    if <(Type de clone) = [6]> then\n        go to x: (-126) y: (-44)\n    end\n    if <(Type de clone) = [7]> then\n        go to x: (-126) y: (-70)\n    end\nend\n\nwhen I receive [fin v]\nset [temps total v] to (round (timer))\nset [pièces \( total \) v] to (Nombre de pièces)\nhide variable [temps v]\nhide variable [nombre de pièces v]\nhide variable [progression % v]\nanalyse variables\nif <(team) = [patate]> then\n    set [n° team v] to [1]\nelse\n    if <(team) = [tomate]> then\n        set [n° team v] to [2]\n    else\n        if <(team) = [oignon]> then\n            set [n° team v] to [3]\n        else\n            set [n° team v] to [4]\n        end\n    end\nend\nif <<(temps total) < (1er \(afficheur\))> or <(temps total) = (1er \(afficheur\))>> then\n    set [☁ 3eme v] to (☁ 2eme)\n    set [☁ 2eme v] to (☁ 1er)\n    set [☁ 1er v] to (join (n° team) (temps total))\n    analyse variables\nelse\n    if <<(temps total) < (2ème \(afficheur\))> or <(temps total) = (2ème \(afficheur\))>> then\n        set [☁ 3eme v] to (☁ 2eme)\n        set [☁ 2eme v] to (join (n° team) (temps total))\n        analyse variables\n    else\n        if <<(temps total) < (3eme \(afficheur\))> or <(temps total) = (3eme \(afficheur\))>> then\n            set [☁ 3eme v] to (join (n° team) (temps total))\n            analyse variables\n        end\n    end\nend\nif <<(pièces \( total \)) > (1er pièces \(afficheur\))> or <(pièces \( total \)) = (1er pièces \(afficheur\))>> then\n    set [☁ 3ème pièces v] to (☁ 2ème pièces)\n    set [☁ 2ème pièces v] to (☁ 1er pièces)\n    set [☁ 1er pièces v] to (join (n° team) (pièces \( total \)))\n    analyse variables\nelse\n    if <<(pièces \( total \)) > (2ème pièces \(afficheur\))> or <(pièces \( total \)) = (2ème pièces \(afficheur\))>> then\n        set [☁ 3ème pièces v] to (☁ 2ème pièces)\n        set [☁ 2ème pièces v] to (join (n° team) (pièces \( total \)))\n        analyse variables\n    else\n        if <<(pièces \( total \)) > (3ème pièces \(afficheur\))> or <(pièces \( total \)) = (3ème pièces \(afficheur\))>> then\n            set [☁ 3ème pièces v] to (join (n° team) (pièces \( total \)))\n            analyse variables\n        end\n    end\nend\nset [type de clone v] to [1]\nswitch costume to ((letter (1) of (☁ 1er pièces)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to ((letter (1) of (☁ 2ème pièces)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to ((letter (1) of (☁ 3ème pièces)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to ((letter (1) of (☁ 1er)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to ((letter (1) of (☁ 2eme)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\nswitch costume to ((letter (1) of (☁ 3eme)) + (4))\nchange [type de clone v] by (1)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\nset [type de clone v] to [1]\ncreate clone of (_myself_ v)\nif <(Langue suggestions) = [fr]> then\n    switch costume to (win ! v)\nelse\n    switch costume to (win v)\nend\nwait (0.2) seconds\nset [ghost v] effect to (100)\nset size to (0) %\nshow\nrepeat (60)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\n    change size by (((100) - (size)) / (3))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nswitch costume to (stats  v)\nshow variable [1er pièces \(afficheur\) v]\nshow variable [2ème pièces \(afficheur\) v]\nshow variable [3ème pièces \(afficheur\) v]\nshow variable [pièces \( total \) v]\nshow variable [1er \(afficheur\) v]\nshow variable [2ème \(afficheur\) v]\nshow variable [3eme \(afficheur\) v]\nshow variable [temps total v]\nrepeat (10)\n    change [ghost v] effect by (-7)\nend\nbroadcast (Cloner les suggestions v)\nbroadcast (Montrer la pièce v)\nforever\n    wait until <(Quelque chose montré ?) = [non]>\n    show variable [1er pièces \(afficheur\) v]\n    show variable [2ème pièces \(afficheur\) v]\n    show variable [3ème pièces \(afficheur\) v]\n    show variable [pièces \( total \) v]\n    show variable [1er \(afficheur\) v]\n    show variable [2ème \(afficheur\) v]\n    show variable [3eme \(afficheur\) v]\n    show variable [temps total v]\n    wait until <(Quelque chose montré ?) = [oui]>\n    hide variable [1er pièces \(afficheur\) v]\n    hide variable [2ème pièces \(afficheur\) v]\n    hide variable [3ème pièces \(afficheur\) v]\n    hide variable [pièces \( total \) v]\n    hide variable [1er \(afficheur\) v]\n    hide variable [2ème \(afficheur\) v]\n    hide variable [3eme \(afficheur\) v]\n    hide variable [temps total v]\nend\n\ndefine analyse variables\nset [analyse v] to [1]\nset [1er \(afficheur\) v] to []\nrepeat ((length of (☁ 1er)) - (1))\n    change [analyse v] by (1)\n    set [1er \(afficheur\) v] to (join (1er \(afficheur\)) (letter (analyse) of (☁ 1er)))\nend\nset [analyse v] to [1]\nset [1er pièces \(afficheur\) v] to []\nrepeat ((length of (☁ 1er pièces)) - (1))\n    change [analyse v] by (1)\n    set [1er pièces \(afficheur\) v] to (join (1er pièces \(afficheur\)) (letter (analyse) of (☁ 1er pièces)))\nend\nset [analyse v] to [1]\nset [2ème \(afficheur\) v] to []\nrepeat ((length of (☁ 2eme)) - (1))\n    change [analyse v] by (1)\n    set [2ème \(afficheur\) v] to (join (2ème \(afficheur\)) (letter (analyse) of (☁ 2eme)))\nend\nset [analyse v] to [1]\nset [2ème pièces \(afficheur\) v] to []\nrepeat ((length of (☁ 2ème pièces)) - (1))\n    change [analyse v] by (1)\n    set [2ème pièces \(afficheur\) v] to (join (2ème pièces \(afficheur\)) (letter (analyse) of (☁ 2ème pièces)))\nend\nset [analyse v] to [1]\nset [3eme \(afficheur\) v] to []\nrepeat ((length of (☁ 3eme)) - (1))\n    change [analyse v] by (1)\n    set [3eme \(afficheur\) v] to (join (3eme \(afficheur\)) (letter (analyse) of (☁ 3eme)))\nend\nset [analyse v] to [1]\nset [3ème pièces \(afficheur\) v] to []\nrepeat ((length of (☁ 3ème pièces)) - (1))\n    change [analyse v] by (1)\n    set [3ème pièces \(afficheur\) v] to (join (3ème pièces \(afficheur\)) (letter (analyse) of (☁ 3ème pièces)))\nend\nset [analyse v] to [1]\n\nwhen I receive [montrer la pièce v]\nif <(Type de clone) > [1]> then\n    show\n    go to [front v] layer\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nend\n\nset [☁ 1er pièces v] to [50]\nset [☁ 2ème pièces v] to [50]\nset [☁ 3ème pièces v] to [50]\nset [☁ 1er v] to [5100000]\nset [☁ 2eme v] to [5100000]\nset [☁ 3eme v] to [5100000]\nbroadcast (fin v)\n\nset [☁ 3eme v] to (☁ 2eme)\nset [☁ 2eme v] to (☁ 1er)\nset [☁ 1er v] to [1115]\nanalyse variables\n\nset [☁ 3ème pièces v] to (☁ 2ème pièces)\nset [☁ 2ème pièces v] to (☁ 1er pièces)\nset [☁ 1er pièces v] to [1164]\nanalyse variables\n\nset [☁ 3eme v] to (☁ 2eme)\nset [☁ 2eme v] to [1117]\nanalyse variables\n\nset [☁ 3eme v] to []\nanalyse variables\n\nset [☁ 3ème pièces v] to (☁ 2ème pièces)\nset [☁ 2ème pièces v] to [1162]\nanalyse variables\n\nset [☁ 3ème pièces v] to [3163]\nanalyse variables\n\n@ Cube // A scrolling platformerrecommandations\n\nwhen I start as a clone\nset [clone ? v] to [oui]\nif <(Nom du clone) = [Recommandations]> then\n    switch costume to (recommandationsfr v)\n    if <(Langue suggestions) = [en]> then\n        next costume\n    end\n    set [ghost v] effect to (100)\n    mettre le clone au bon endroit | taille par défaut: [100]\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\n    wait until <not <mouse down?>>\n    wait until <<<(distance to [mouse-pointer v]) < [10]> and <mouse down?>> and <(Quelque chose montré ?) = [non]>>\n    broadcast (suprimmer les suggessions v)\nend\nif <(Nom du clone) = [Français]> then\n    switch costume to (français v)\n    mettre le clone au bon endroit | taille par défaut: [100]\n    repeat until <<<mouse down?> and <touching (mouse-pointer v)?>> and <(Quelque chose montré ?) = [non]>>\n        if <touching (mouse-pointer v)?> then\n            change [luminosité v] by (((20) - (luminosité)) / (3))\n        else\n            change [luminosité v] by (((0) - (luminosité)) / (3))\n        end\n        set [brightness v] effect to (luminosité)\n    end\n    set [langue suggestions v] to [fr]\n    broadcast (Langue suggestion choisie v)\n    broadcast (suprimmer les suggessions v)\nend\nif <(Nom du clone) = [English]> then\n    switch costume to (english v)\n    mettre le clone au bon endroit | taille par défaut: [100]\n    repeat until <<<mouse down?> and <touching (mouse-pointer v)?>> and <(Quelque chose montré ?) = [non]>>\n        if <touching (mouse-pointer v)?> then\n            change [luminosité v] by (((20) - (luminosité)) / (3))\n        else\n            change [luminosité v] by (((0) - (luminosité)) / (3))\n        end\n        set [brightness v] effect to (luminosité)\n    end\n    set [langue suggestions v] to [en]\n    broadcast (Langue suggestion choisie v)\n    broadcast (suprimmer les suggessions v)\nend\n\nwhen flag clicked\nset [quelque chose montré ? v] to [non]\nshow list [lien v]\nshow list [link v]\nset [montrer suggestion n° v] to [-]\nset [clone ? v] to [non]\nhide\n\nwhen I receive [suprimmer les suggessions v]\nif <(clone ?) = [oui]> then\n    stop [other scripts in sprite v]\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    delete this clone\nend\n\nwhen I receive [langue suggessions français v]\nset [langue suggestions v] to [fr]\n\nwhen I receive [langue suggessions anglais v]\nset [langue suggestions v] to [en]\n\ndefine Cloner la suggestion (nom) en position (position) | position personalisée: x: (x) y: (y) | Taille: (taille)\nif <(clone ?) = [non]> then\n    set [nom du clone v] to (nom)\n    set [position suggestion v] to (position)\n    set [position x clone v] to (x)\n    set [position y clone v] to (y)\n    set [taille clone v] to (taille)\n    if <(Nom du clone) = [bouton profil]> then\n        create clone of (_myself_ v)\n        set [nom du clone v] to [bouton profil détails]\n        create clone of (_myself_ v)\n    else\n        if <(Nom du clone) = [Team Cube]> then\n            create clone of (_myself_ v)\n            set [nom du clone v] to [Gif cube]\n            create clone of (_myself_ v)\n        else\n            create clone of (_myself_ v)\n        end\n    end\nend\n\ndefine mettre le clone au bon endroit | taille par défaut: (taille par défaut)\ngo to [front v] layer\nif <(Taille clone) = [-]> then\n    set size to (taille par défaut) %\nelse\n    set size to (Taille clone) %\nend\nif <not <(position suggestion) = [-]>> then\n    if <(position suggestion) = [1]> then\n        go to x: (-160) y: (120)\n    end\n    if <(position suggestion) = [2]> then\n        go to x: (-160) y: (0)\n    end\n    if <(position suggestion) = [3]> then\n        go to x: (-160) y: (-120)\n    end\n    if <(position suggestion) = [4]> then\n        go to x: (0) y: (120)\n    end\n    if <(position suggestion) = [5]> then\n        go to x: (0) y: (0)\n    end\n    if <(position suggestion) = [6]> then\n        go to x: (0) y: (-120)\n    end\n    if <(position suggestion) = [7]> then\n        go to x: (160) y: (120)\n    end\n    if <(position suggestion) = [8]> then\n        go to x: (160) y: (0)\n    end\n    if <(position suggestion) = [9]> then\n        go to x: (160) y: (-120)\n    end\nelse\n    go to x: (Position X clone) y: (Position Y clone)\nend\nshow\n\nwhen flag clicked\nCloner la suggestion [Français] en position [-] | position personalisée: x: [-30] y: [0] | Taille: [140]\nCloner la suggestion [English] en position [-] | position personalisée: x: [-30] y: [71] | Taille: [140]\n\nwhen I receive [cloner les suggestions v]\nCloner la suggestion [Recommandations] en position [-] | position personalisée: x: [225] y: [166] | Taille: [75]\n\nwhen I receive [cloner les suggestions 2 v]\nCloner la suggestion [Recommandations] en position [-] | position personalisée: x: [232] y: [150] | Taille: [59]\n\nwhen I receive [suprimmer tout de suite v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@ Cube // A scrolling platformer\n\nwhen I start as a clone\nset [clone ? v] to [oui]\nif <(Nom du clone) = [miniature]> then\n    set [luminosité clone v] to [20]\n    set [ghost v] effect to (100)\n    Mettre le clone sur le bon costume\n    mettre le clone au bon endroit | taille par défaut: [28]\n    show\n    wait until <not <mouse down?>>\n    forever\n        change [ghost v] effect by (-20)\n        if <touching (mouse-pointer v)?> then\n            change [luminosité clone v] by (((20) - (luminosité clone)) / (3))\n            if <mouse down?> then\n                if <(Quelque chose montré ?) = [non]> then\n                    set [quelque chose montré ? v] to [oui]\n                    set [nom costume suggestion cliquée v] to (Nom exact Clone)\n                    set [n° costume suggestion cliquée v] to (costume [number v])\n                    broadcast (Suggestion cliquée v)\n                end\n            end\n        else\n            change [luminosité clone v] by (((0) - (luminosité clone)) / (3))\n        end\n        set [brightness v] effect to (luminosité clone)\n    end\nend\nif <(Nom du clone) = [croix]> then\n    go to [front v] layer\n    show\n    switch costume to (croix v)\n    set [luminosité clone v] to [20]\n    set [ghost v] effect to (100)\n    set size to (100) %\n    go to x: (187) y: (147)\n    repeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n        change [effet fantome suggestion cliqué v] by (((0) - (Effet fantome suggestion cliqué)) / (2))\n        set [ghost v] effect to (Effet fantome suggestion cliqué)\n        if <touching (mouse-pointer v)?> then\n            change [luminosité clone v] by (((5) - (luminosité clone)) / (3))\n        else\n            change [luminosité clone v] by (((0) - (luminosité clone)) / (3))\n        end\n    end\n    set [n° costume suggestion cliquée v] to [-]\n    delete this clone\nend\nif <(Nom du clone) = [description projet]> then\n    switch costume to ((N° costume suggestion cliquée) + (2))\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set size to (100) %\n    set [effet fantome suggestion cliqué v] to [100]\n    set [ghost v] effect to (100)\n    show\n    set [analyse des noms: n° de la lettre analysée v] to [1]\n    Analyse rapide\n    delete all of [lien v]\n    add (item ((analyse des noms: N° de la lettre analysée) + (1)) of [liste des liens v]) to [lien v]\n    hide list [lien v]\n    repeat until <(N° costume suggestion cliquée) = [-]>\n        change [effet fantome suggestion cliqué v] by (((0) - (Effet fantome suggestion cliqué)) / (2))\n        set [ghost v] effect to (Effet fantome suggestion cliqué)\n    end\n    show list [lien v]\n    set [quelque chose montré ? v] to [non]\n    repeat (25)\n        change [effet fantome suggestion cliqué v] by (((100) - (Effet fantome suggestion cliqué)) / (2))\n        set [ghost v] effect to (Effet fantome suggestion cliqué)\n    end\n    clear graphic effects\n    delete this clone\nend\n\nwhen flag clicked\nset [quelque chose montré ? v] to [non]\nshow list [lien v]\nshow list [link v]\nset [clone ? v] to [non]\nhide\n\nwhen I receive [suprimmer les suggessions v]\nif <(clone ?) = [oui]> then\n    stop [other scripts in sprite v]\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    delete this clone\nend\n\nwhen I receive [langue suggessions français v]\nset [langue suggestions v] to [fr]\n\nwhen I receive [langue suggessions anglais v]\nset [langue suggestions v] to [en]\n\ndefine mettre le clone au bon endroit | taille par défaut: (taille par défaut)\ngo to [front v] layer\nif <(Taille clone) = [-]> then\n    set size to (taille par défaut) %\nelse\n    set size to (Taille clone) %\nend\nif <not <(position suggestion) = [-]>> then\n    if <(position suggestion) = [1]> then\n        go to x: (-160) y: (120)\n    end\n    if <(position suggestion) = [2]> then\n        go to x: (-160) y: (0)\n    end\n    if <(position suggestion) = [3]> then\n        go to x: (-160) y: (-120)\n    end\n    if <(position suggestion) = [4]> then\n        go to x: (0) y: (120)\n    end\n    if <(position suggestion) = [5]> then\n        go to x: (0) y: (0)\n    end\n    if <(position suggestion) = [6]> then\n        go to x: (0) y: (-120)\n    end\n    if <(position suggestion) = [7]> then\n        go to x: (160) y: (120)\n    end\n    if <(position suggestion) = [8]> then\n        go to x: (160) y: (0)\n    end\n    if <(position suggestion) = [9]> then\n        go to x: (160) y: (-120)\n    end\nelse\n    go to x: (Position X clone) y: (Position Y clone)\nend\nshow\n\ndefine Cloner la suggestion (nom) en position (position) | position personalisée: x: (x) y: (y) | Taille: (taille) | Nom exact: (nom exact)\nif <(clone ?) = [non]> then\n    set [nom du clone v] to (nom)\n    set [position suggestion v] to (position)\n    set [position x clone v] to (x)\n    set [position y clone v] to (y)\n    set [taille clone v] to (taille)\n    set [nom exact clone v] to (nom exact)\n    create clone of (_myself_ v)\nend\n\ndefine Mettre le clone sur le bon costume\nswitch costume to (croix v)\nnext costume\nset [pour éviter les bugs v] to [0]\nset [analyse des noms: nom entrain d'être créé v] to []\nrepeat until <<(analyse des noms: nom entrain d'être créé) = (Nom exact Clone)> or <(Pour éviter les bugs) > [1000]>>\n    change [pour éviter les bugs v] by (1)\n    set [analyse des noms: nom entrain d'être créé v] to []\n    set [analyse des noms: n° de la lettre analysée v] to [0]\n    repeat ((length of (costume [name v])) - (2))\n        change [analyse des noms: n° de la lettre analysée v] by (1)\n        set [analyse des noms: nom entrain d'être créé v] to (join (analyse des noms: nom entrain d'être créé) (letter (analyse des noms: N° de la lettre analysée) of (costume [name v])))\n    end\n    if <not <<(join (letter ((analyse des noms: N° de la lettre analysée) + (1)) of (costume [name v])) (letter ((analyse des noms: N° de la lettre analysée) + (2)) of (costume [name v]))) = [FR]> or <(join (letter ((analyse des noms: N° de la lettre analysée) + (1)) of (costume [name v])) (letter ((analyse des noms: N° de la lettre analysée) + (2)) of (costume [name v]))) = [EN]>>> then\n        change [analyse des noms: n° de la lettre analysée v] by (1)\n        set [analyse des noms: nom entrain d'être créé v] to (join (analyse des noms: nom entrain d'être créé) (letter (analyse des noms: N° de la lettre analysée) of (costume [name v])))\n        if <not <[chiffres v] contains (letter ((analyse des noms: N° de la lettre analysée) + (1)) of (costume [name v]))?>> then\n            change [analyse des noms: n° de la lettre analysée v] by (1)\n            set [analyse des noms: nom entrain d'être créé v] to (join (analyse des noms: nom entrain d'être créé) (letter (analyse des noms: N° de la lettre analysée) of (costume [name v])))\n        end\n    end\n    if <not <(analyse des noms: nom entrain d'être créé) = (Nom exact Clone)>> then\n        switch costume to ((costume [number v]) + (4))\n    end\nend\nif <(Langue suggestions) = [en]> then\n    next costume\nend\nif <(Pour éviter les bugs) > [1000]> then\n    switch costume to (croix v)\n    say [Le nom exact du projet est mal écrit]\nend\n\nwhen I receive [suggestion cliquée v]\nif <(clone ?) = [non]> then\n    Cloner la suggestion [description projet] en position [-] | position personalisée: x: [-] y: [-] | Taille: [-] | Nom exact: [-]\n    Cloner la suggestion [croix] en position [-] | position personalisée: x: [-] y: [-] | Taille: [-] | Nom exact: [-]\nend\n\ndefine Analyse rapide\nrepeat until <(Nom costume suggestion cliquée) = (item (analyse des noms: N° de la lettre analysée) of [liste des liens v])>\n    change [analyse des noms: n° de la lettre analysée v] by (1)\nend\n\nwhen I receive [cloner les suggestions v]\nCloner la suggestion [miniature] en position [-] | position personalisée: x: [160] y: [85] | Taille: [28] | Nom exact: [Les blagues d'Harry]\nif <(Langue suggestions) = [fr]> then\n    Cloner la suggestion [miniature] en position [-] | position personalisée: x: [160] y: [-20] | Taille: [28] | Nom exact: [Le mystère des chats sauvages ▪️ Prologue ▪️ Chapitre1 ▪️ Chapitre 2 ▪️ Chapitre 3 ▪️ Chapitre 4]\nend\nif <(Langue suggestions) = [en]> then\n    Cloner la suggestion [miniature] en position [-] | position personalisée: x: [160] y: [-20] | Taille: [28] | Nom exact: [Space musique]\nend\nCloner la suggestion [miniature] en position [-] | position personalisée: x: [160] y: [-125] | Taille: [28] | Nom exact: [Les sims 4]\n\nwhen I receive [cloner les suggestions 2 v]\nCloner la suggestion [miniature] en position [-] | position personalisée: x: [182] y: [85] | Taille: [23] | Nom exact: [Les blagues d'Harry]\nif <(Langue suggestions) = [fr]> then\n    Cloner la suggestion [miniature] en position [-] | position personalisée: x: [182] y: [0] | Taille: [23] | Nom exact: [Le mystère des chats sauvages ▪️ Prologue ▪️ Chapitre1 ▪️ Chapitre 2 ▪️ Chapitre 3 ▪️ Chapitre 4]\nend\nif <(Langue suggestions) = [en]> then\n    Cloner la suggestion [miniature] en position [-] | position personalisée: x: [182] y: [0] | Taille: [23] | Nom exact: [Space musique]\nend\nCloner la suggestion [miniature] en position [-] | position personalisée: x: [182] y: [-85] | Taille: [23] | Nom exact: [Les sims 4]\n\nwhen I receive [suprimmer tout de suite v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Sprite3\n\nwhen flag clicked\nset [clone ? v] to [non]\ngo to x: (-50) y: (25)\nset size to (120) %\nhide\n\nwhen I receive [langue suggestion choisie v]\nwait (0.2) seconds\nset [ghost v] effect to (100)\nset [type de clone v] to [-]\nswitch costume to (dessus v)\ncreate clone of (_myself_ v)\nswitch costume to (dessous v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume4 v)\ncreate clone of (_myself_ v)\nif <(Langue suggestions) = [fr]> then\n    switch costume to (fr v)\nend\nif <(Langue suggestions) = [en]> then\n    switch costume to (en v)\nend\nbroadcast (cloner les suggestions 2 v)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        change [luminosité v] by (((20) - (luminosité)) / (3))\n    else\n        change [luminosité v] by (((0) - (luminosité)) / (3))\n    end\n    set [brightness v] effect to (luminosité)\nend\n\nwhen I start as a clone\nclear graphic effects\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen this sprite clicked\nif <(Type de clone) = [team]> then\n    if <(costume [number v]) = [5]> then\n        set [team v] to [patate]\n    end\n    if <(costume [number v]) = [8]> then\n        set [team v] to [tomate]\n    end\n    if <(costume [number v]) = [11]> then\n        set [team v] to [oignon]\n    end\n    if <(costume [number v]) = [14]> then\n        set [team v] to [chausettes]\n    end\n    broadcast (intro v)\nelse\n    if <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n        broadcast (suprimmer tout de suite v)\n        broadcast (team v)\n    end\n    if <(costume [number v]) > [4]> then\n        if <<(costume [number v]) = [5]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [11]> or <(costume [number v]) = [14]>>>> then\n            go to [front v] layer\n            set size to (130) %\n            go to x: (-50) y: (25)\n            set [quelque chose montré ? v] to [oui]\n            if <(Langue suggestions) = [fr]> then\n                next costume\n            end\n            if <(Langue suggestions) = [en]> then\n                next costume\n                next costume\n            end\n        else\n            set size to (96) %\n            go to x: (-49) y: (-76)\n            set [quelque chose montré ? v] to [non]\n            if <(Langue suggestions) = [fr]> then\n                switch costume to ((costume [number v]) - (1))\n            end\n            if <(Langue suggestions) = [en]> then\n                switch costume to ((costume [number v]) - (2))\n            end\n        end\n    end\nend\n\nwhen I receive [team v]\nhide\ndelete this clone\n\nwhen I start as a clone\nset [clone ? v] to [oui]\nif <(Type de clone) = [f4f]> then\n    go to x: (0) y: (-40)\n    set size to (100) %\nelse\n    if <(Type de clone) = [team]> then\n        if <(costume [number v]) = [3]> then\n            go to x: (1) y: (-24)\n            set size to (120) %\n        end\n        if <(costume [number v]) = [17]> then\n            go to x: (0) y: (40)\n            set size to (120) %\n        end\n        if <(costume [number v]) = [18]> then\n            go to x: (0) y: (90)\n            set size to (70) %\n        end\n        if <(costume [number v]) = [19]> then\n            go to x: (0) y: (90)\n            set size to (70) %\n        end\n    end\n    if <<(costume [number v]) = [5]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [11]> or <(costume [number v]) = [14]>>>> then\n        set size to (96) %\n        if <(Type de clone) = [team]> then\n            go to x: (1) y: (40)\n        else\n            go to x: (-49) y: (-76)\n        end\n        forever\n            if <touching (mouse-pointer v)?> then\n                change [luminosité v] by (((20) - (luminosité)) / (3))\n            else\n                change [luminosité v] by (((0) - (luminosité)) / (3))\n            end\n            set [brightness v] effect to (luminosité)\n        end\n    end\nend\n\nwhen I receive [team v]\nset [type de clone v] to [team]\nset [ghost v] effect to (100)\nif <(clone ?) = [non]> then\n    if <(Langue suggestions) = [fr]> then\n        switch costume to (costume13 v)\n    end\n    if <(Langue suggestions) = [en]> then\n        switch costume to (costume14 v)\n    end\n    create clone of (_myself_ v)\nend\nswitch costume to (dessus v)\ncreate clone of (_myself_ v)\nswitch costume to (dessous team v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume4 v)\ncreate clone of (_myself_ v)\nset [type de clone v] to [f4f]\ncreate clone of (_myself_ v)\n\nwhen I receive [intro v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\n@Sprite4\n\nwhen flag clicked\nhide\n\nwhen I receive [intro v]\nshow\nif <(team) = [patate]> then\n    switch costume to (patate v)\nelse\n    if <(team) = [tomate]> then\n        switch costume to (tomate v)\n    else\n        if <(team) = [oignon]> then\n            switch costume to (oignon v)\n        else\n            switch costume to (chausettes v)\n        end\n    end\nend\nif <(Langue suggestions) = [en]> then\n    next costume\nend\n\nwhen this sprite clicked\nbroadcast (jeu v)\nhide\n\n