Platformer LGDC
@Stage\n\n@Chat\n\nwhen flag clicked\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (-200) y: (0)\nswitch costume to (d v)\nforever\n    change [y v] by (-1)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n        switch costume to (d v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n        switch costume to (g v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>> then\n        fast\n        if <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>> then\n            change y by (-6)\n            xcoll\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                set [y v] to [13]\n                if <([abs v] of (x) ) = (x)> then\n                    set [x v] to [-7]\n                else\n                    set [x v] to [8]\n                end\n            else\n                set [x v] to [0]\n            end\n        end\n    end\n    change y by (y)\n    if <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>> then\n        ycoll\n        if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <(y) < [0]>> then\n            set [y v] to [13]\n        else\n            set [y v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (p v) pressed?> and <not <(niveau) = [15]>>> then\n        wait until <not <key (p v) pressed?>>\n        broadcast (someone pressed S key v)\n        go to x: (-218) y: (-75)\n    end\nend\n\ndefine xcoll\nrepeat until <not <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>>>\n    if <(x) > [0]> then\n        change x by (-1)\n    else\n        change x by (1)\n    end\nend\n\ndefine ycoll\nrepeat until <not <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>>>\n    if <(y) > [0]> then\n        change y by (-1)\n    else\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (bounce pad v)?> then\n        set [y v] to [21]\n    end\nend\n\nwhen flag clicked\nset [niveau v] to [1]\n\nwhen I receive [someone pressed skip button v]\ngo to x: (-218) y: (-75)\n\ndefine fast\nrepeat (6)\n    if <<touching (plate-forme v)?> or <touching (plate-forme 2 v)?>> then\n        change y by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [237]> then\n        broadcast (message1 v)\n        go to x: (-223) y: (-75)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (dangers v)?> then\n        go to x: (-223) y: (-75)\n    end\nend\n\nwhen I receive [someone pressed s key v]\nchange [niveau v] by (1)\n\nwhen I receive [message1 v]\nchange [niveau v] by (1)\n\nwhen flag clicked\nforever\n    if <touching (vide v)?> then\n        wait (0.1) seconds\n        go to x: (-223) y: (-75)\n    end\nend\n\n@Plate-forme\n\nwhen I receive [message1 v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (25)\nswitch costume to (1 v)\n\nwhen I receive [someone pressed skip button v]\nnext costume\n\n@Plate-forme 2\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (4 a v)\nwait (0.5) seconds\nwait until <(niveau) = [4]>\nshow\nrepeat (3)\n    wait (0.1) seconds\n    wait until <touching (griffes v)?>\n    next costume\nend\nwait until <(niveau) = [5]>\ngo to x: (0) y: (30)\nswitch costume to (5 a v)\nwait (0.1) seconds\nwait until <touching (griffes v)?>\nnext costume\nwait until <(niveau) = [6]>\nshow\ngo to x: (0) y: (0)\nswitch costume to (6 a v)\nrepeat (2)\n    wait (0.1) seconds\n    wait until <touching (griffes v)?>\n    next costume\nend\nwait (0.1) seconds\nwait until <(niveau) = [7]>\nhide\nwait (0.5) seconds\nwait until <(niveau) = [11]>\nshow\nswitch costume to (11 a v)\nrepeat (3)\n    wait (0.1) seconds\n    wait until <touching (griffes v)?>\n    next costume\nend\nwait until <(niveau) = [12]>\nswitch costume to (12 a v)\nwait (0.1) seconds\nwait until <touching (griffes v)?>\nnext costume\nwait until <(niveau) = [13]>\nswitch costume to (13 a v)\nwait (0.1) seconds\nwait until <touching (griffes v)?>\nnext costume\nwait until <(niveau) = [14]>\nhide\nwait (0.1) seconds\nwait until <(niveau) = [15]>\nshow\nswitch costume to (13 a v)\nrepeat (2)\n    wait (0.1) seconds\n    wait until <touching (griffes v)?>\n    next costume\nend\nwait until <(niveau) = [16]>\nhide\n\nwhen flag clicked\nwait until <(niveau) = [6]>\nhide\n\n@Dangers\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [message1 v]\nnext costume\n\nwhen I receive [someone pressed skip button v]\nnext costume\n\n@Vide\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n@Feuilles\n\nwhen flag clicked\nshow\nswitch costume to (2 v)\nforever\n    repeat (20)\n        change y by (-0.5)\n    end\n    repeat (20)\n        change y by (0.5)\n    end\nend\n\nwhen flag clicked\nset [feuilles v] to [0]\nforever\n    wait (0.1) seconds\n    wait until <touching (chat v)?>\n    change [feuilles v] by (1)\n    hide\nend\n\nwhen flag clicked\nwait until <(niveau) = [1]>\nshow\ngo to x: (150) y: (-60)\nwait until <(niveau) = [2]>\nshow\ngo to x: (70) y: (120)\nwait until <(niveau) = [3]>\nshow\ngo to x: (50) y: (-55)\nwait until <(niveau) = [4]>\nshow\ngo to x: (45) y: (-63)\nwait until <(niveau) = [5]>\nshow\ngo to x: (155) y: (10)\nwait until <(niveau) = [6]>\nshow\ngo to x: (-95) y: (50)\nwait until <(niveau) = [7]>\nshow\ngo to x: (50) y: (-55)\nwait until <(niveau) = [8]>\nshow\ngo to x: (-53) y: (105)\nwait until <(niveau) = [9]>\nshow\ngo to x: (-15) y: (-60)\nwait until <(niveau) = [10]>\nshow\ngo to x: (-190) y: (60)\nwait until <(niveau) = [11]>\nshow\ngo to x: (75) y: (-63)\nwait until <(niveau) = [12]>\nshow\ngo to x: (120) y: (115)\nwait until <(niveau) = [13]>\nshow\ngo to x: (175) y: (40)\nwait until <(niveau) = [14]>\nshow\ngo to x: (-40) y: (-75)\nwait until <(niveau) = [15]>\nshow\ngo to x: (-5) y: (40)\n\n@Collines\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\nswitch costume to (4 v)\nset size to (100) %\n\n@Griffes\n\nwhen flag clicked\nhide\nforever\n    go to (chat v)\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [4]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [5]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [6]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [7]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [8]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [9]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [10]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [11]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [12]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [13]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [14]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(niveau) = [14]> then\n        wait until <key (space v) pressed?>\n        show\n        wait until <not <key (space v) pressed?>>\n        hide\n    end\nend\n\n@Nuages\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nswitch costume to (pick random (1) to (4))\nset size to (pick random (400) to (600)) %\ngo to x: (pick random (150) to (-150)) y: (pick random (150) to (-100))\nforever\n    go to [back v] layer\n    change x by (pick random (-0.1) to (-0.3))\nend\n\nwhen I start as a clone\nswitch costume to (pick random (1) to (4))\nset size to (pick random (400) to (600)) %\ngo to x: (pick random (150) to (-150)) y: (pick random (150) to (-100))\nforever\n    go to [back v] layer\n    change x by (pick random (-0.1) to (-0.3))\nend\n\nforever\nend\n\n@Nombre de F\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (-200) y: (150)\nswitch costume to (0 v)\nset size to (30) %\nwait (0.1) seconds\nrepeat until <(feuilles) = [10]>\n    switch costume to (letter (1) of (feuilles))\nend\nswitch costume to (10 v)\nwait until <(feuilles) = [11]>\nswitch costume to (11 v)\nwait until <(feuilles) = [12]>\nswitch costume to (12 v)\nwait until <(feuilles) = [13]>\nswitch costume to (13 v)\nwait until <(feuilles) = [14]>\nswitch costume to (14 v)\nwait until <(feuilles) = [15]>\nswitch costume to (15 v)\n\n@Niveaux\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo to x: (0) y: (-150)\nswitch costume to (1 v)\nset size to (100) %\nwait (0.1) seconds\nrepeat until <(niveau) = [10]>\n    switch costume to (letter (1) of (niveau))\nend\nswitch costume to (10 v)\nwait until <(niveau) = [11]>\nswitch costume to (11 v)\nwait until <(niveau) = [12]>\nswitch costume to (12 v)\nwait until <(niveau) = [13]>\nswitch costume to (13 v)\nwait until <(niveau) = [14]>\nswitch costume to (14 v)\nwait until <(niveau) = [15]>\nswitch costume to (15 v)\n\n@Miniature\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nset [ghost v] effect to (30)\ncreate clone of (_myself_ v)\nshow\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (0)\ngo to [front v] layer\nswitch costume to (2 v)\nset [ghost v] effect to (0)\nshow\nhide\n\n@Fin\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(niveau) = [15]>\nshow\ngo to x: (0) y: (0)\n\n
TOUT LIRE AVANT DE COMMENCER\n\n~ Pas de version mobile !!! ~\n\n• Flèches pour se diriger\n• Espace pour griffer la terre (oui ça existe griffer la terre)\n\nMerci beaucoup à @sammax123 pour le code du chat !\n\n15 niveaux 100% possibles, 1 souris dans chacun d'eux :) Il faut récupérer toutes les souris pour que ça marche bien !!