Pixelcity a platformer
@Stage\n\nwhen flag clicked\nset [niveau v] to [1]\nswitch backdrop to (arrière-plan2 v)\nforever\n    reset timer\nend\n\nwhen I receive [start v]\nswitch backdrop to (arrière-plan v)\nset [ghost v] effect to (75)\n\n@Blank\n\n@Intro\n\nwhen flag clicked\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\nset [effet v] to [0]\nswitch costume to (pfp v)\npoint in direction (90)\nwait (0.75) seconds\nset [effet v] to [0]\nrepeat until <(round (Effet)) = [150]>\n    change [effet v] by (((150) - (Effet)) / (5))\n    create clone of (_myself_ v)\nend\nwait (0.8) seconds\nbroadcast (START v)\nrepeat until <(round (Effet)) = [0]>\n    change [effet v] by (((0) - (Effet)) / (8))\nend\nhide\nbroadcast (START v)\n\nwhen flag clicked\nforever\n    set size to ((Effet) * (1.5)) %\n    set [brightness v] effect to (Effet)\n    point in direction (((Effet) * (3.62)) + (90))\nend\n\nwhen I start as a clone\nswitch costume to (clone v)\nrepeat (5)\n    go to [front v] layer\nend\npoint in direction (90)\nrepeat until <(round (Effet)) = [150]>\n    set size to ((Effet) * (2.5)) %\n    set [ghost v] effect to ((Effet) + (20))\n    set [ghost v] effect to (Effet)\nend\ndelete this clone\n\nwhen [timer v] > (0)\nhide\n\n@Player \n\nwhen I receive [start v]\nwait (0.8) seconds\nshow\nforever\n    if <(x position) > [240]> then\n        stop [other scripts in sprite v]\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [start v]\npoint in direction (90)\ngo to x: (-200) y: (0)\nshow\nswitch costume to (non mouvement v)\nset size to (100) %\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-1)\n    set [x v] to ((x) * (0.85))\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by (-1)\n    end\n    change x by (x)\n    if <touching (plateforme v)?> then\n        change y by (1)\n    end\n    if <touching (plateforme v)?> then\n        change y by (1)\n    end\n    if <touching (plateforme v)?> then\n        change y by (1)\n    end\n    if <touching (plateforme v)?> then\n        change y by (1)\n    end\n    if <touching (plateforme v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-4]\n            else\n                set [x v] to [4]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (plateforme v)?> then\n        change y by ((y) - ((y) * (2)))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (plateforme v)?>> then\n        wait (0.01) seconds\n        change [y v] by (14)\n    end\n    change y by (1)\n    clear graphic effects\n    if <<touching (pics v)?> or <<touching (ennemi v)?> and <<([y position v] of [ennemi v]) = (y position)> or <([y position v] of [ennemi v]) > (y position)>>>> then\n        repeat (20)\n            change [pixelate v] effect by (10)\n            change [brightness v] effect by (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-200) y: (0)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <mouse down?> then\n        switch costume to (mouvement v)\n        point towards (mouse-pointer v)\n        point in direction ((round ((direction) / (90))) * (90))\n    else\n        switch costume to (non mouvement v)\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <<touching (ennemi v)?> and <(y position) > ([y position v] of [ennemi v])>> then\n        change [y v] by (14)\n        change y by (y)\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@Plateforme\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Niveau)\nend\n\nwhen [timer v] > (0)\nhide\n\n@Plateforme2\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (Effet fantôme)\nend\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nforever\n    if <(Niveau) = [4]> then\n        if <touching (player  v)?> then\n            switch costume to (costume4 v)\n            repeat until <(Effet fantôme) = [50]>\n                change [effet fantôme v] by (5)\n            end\n        else\n            repeat until <(Effet fantôme) = [0]>\n                change [effet fantôme v] by (-5)\n            end\n            set [effet fantôme v] to [0]\n        end\n    end\n    if <(Niveau) = [9]> then\n        set [effet fantôme v] to [0]\n        switch costume to (costume1 v)\n    end\n    if <<(Niveau) = [9]> or <(Niveau) = [4]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@Texte\n\nwhen I receive [start v]\nforever\n    switch costume to (Niveau)\nend\n\nwhen I start as a clone\nset [brightness v] effect to (50)\nset [ghost v] effect to (60)\nrepeat (8)\n    change [ghost v] effect by (3)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [start v]\nshow\nset size to (150) %\ngo to x: (0) y: (100)\ngo to [front v] layer\nforever\n    point in direction (((10) * ([sin v] of ((8) * (Sin)) )) + (90))\n    change [sin v] by ((2) / (3))\nend\n\n@Niveau\n\nwhen flag clicked\nset [nombres v] to [0]\nhide\nwait (4) seconds\nforever\n    change [nombres v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nforever\n    if <(Nombres) > (length of (Niveau))> then\n        hide\n    else\n        show\n        switch costume to (letter (Nombres) of (Niveau))\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<(Niveau) = [3]> or <<(Niveau) = [4]> or <(Niveau) = [9]>>> then\n        set [brightness v] effect to (100)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I start as a clone\nforever\n    go to x: ((-225) + ((Nombres) * (30))) y: (((10) * ([sin v] of ((8) * (Sinus)) )) + (140))\n    change [sinus v] by ((2) / (3))\nend\n\n@Couleurs\n\nwhen I receive [start v]\nforever\n    wait (0.5) seconds\n    change [luminosité v] by (-0.1)\n    if <(Luminosité) = [-100]> then\n        stop [all v]\n    end\nend\n\nwhen I receive [start v]\nforever\n    set [brightness v] effect to (Luminosité)\n    set size to ((Tourbillon) * (4)) %\n    set [ghost v] effect to (3)\nend\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [start v]\nset [luminosité v] to [30]\ngo to x: (0) y: (150)\nforever\n    go to [back v] layer\n    if <(Niveau) = [10]> then\n        hide\n    else\n        show\n    end\nend\n\n@Affichage\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0)\nwait (0.01) seconds\nset [fin v] to [0]\nshow\nrepeat (10)\n    go to x: (0) y: (((175) * ([sin v] of ((8) * (FIN)) )) - (150))\n    change [fin v] by ((2) / (3))\nend\n\n@NEXT\n\nwhen flag clicked\npoint in direction (90)\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nwait (1) seconds\nforever\n    if <([x position v] of [player  v]) > [240]> then\n        if <(Niveau) = [10]> then\n            stop [all v]\n        end\n        set [ghost v] effect to (0)\n        set size to (0) %\n        show\n        repeat (20)\n            change y by (-9.5)\n            turn right (18) degrees\n            change size by (5)\n        end\n        change [niveau v] by (1)\n        wait (1) seconds\n        set [ghost v] effect to (100)\n        wait (0.1) seconds\n        broadcast (START v)\n    else\n        set [ghost v] effect to (100)\n        go to x: (0) y: (340)\n        set size to (100) %\n        go to [front v] layer\n        hide\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@Tourbillon\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [tourbillon v] to [95]\nforever\n    repeat (10)\n        change [tourbillon v] by (0.5)\n    end\n    wait (0.001) seconds\n    repeat (10)\n        change [tourbillon v] by (-0.5)\n    end\n    wait (0.001) seconds\nend\n\nwhen [timer v] > (0)\nhide\n\nwhen I receive [start v]\nshow\ngo to x: (0) y: (116)\nforever\n    if <(Niveau) = [10]> then\n        set [ghost v] effect to (100)\n    else\n        go to [back v] layer\n        set [whirl v] effect to ((Tourbillon) * (8))\n        set size to (Tourbillon) %\n        set [ghost v] effect to (15)\n    end\nend\n\n@Pics\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nforever\n    wait (1) seconds\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (Pics)\nend\n\nwhen I receive [start v]\nset [pixelate v] effect to (0)\nforever\n    switch costume to (Niveau)\nend\n\nwhen flag clicked\nset [pics v] to [0]\nforever\n    if <<(Niveau) = [4]> or <(Niveau) = [6]>> then\n        wait (0.01) seconds\n        repeat (10)\n            change [pics v] by (-1)\n        end\n        wait (0.01) seconds\n        repeat (10)\n            change [pics v] by (1)\n        end\n    else\n        set [pics v] to [0]\n    end\n    if <(Niveau) = [5]> then\n        turn left (10) degrees\n        set [pics v] to [-110]\n        set [whirl v] effect to (75)\n    else\n        set [whirl v] effect to (0)\n        point in direction (90)\n    end\nend\n\nwhen [timer v] > (0)\nhide\n\n@Ennemi\n\nwhen I receive [start v]\nset rotation style [left-right v]\nforever\n    point towards (player  v)\n    if <(Niveau) = [7]> then\n        change y by (y ennemi)\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [start v]\nforever\n    switch costume to (costume1 v)\n    move (2) steps\n    if <<touching (player  v)?> and <([y position v] of [player  v]) > (y position)>> then\n        wait (0.05) seconds\n        switch costume to (costume2 v)\n        wait (0.05) seconds\n        hide\n        stop [other scripts in sprite v]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nset [y ennemi v] to [20]\nforever\n    change [y ennemi v] by (-1)\n    if <<<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (plateforme v)?>> then\n        change [y ennemi v] by (14)\n    else\n        if <touching (plateforme v)?> then\n            set [y ennemi v] to [0]\n        end\n    end\nend\n\n
                                Français\nTouches directionnelles ou souris/doigt pour se déplacer.\nNe pas toucher les pics ou la scie.  Il y a un passage secret au niveau 4. Il suffit de le toucher pour passer. Attention à l’ennemi: il saute en même temps que vous.\n\n\n                                English\n\nDirectional keys or mouse/finger to move.\nDo not touch the spikes or the saw.  There is a secret passage at level 4. Just touch it to pass. Watch out for the enemy: he jumps at the same time as you.\n\n\n\n\n\n\n\n\n\n\n\n\n\n⬛️⬛️⬛️⬛️⬛️⬛️⬛️\n⬛️⬜️⬜️⬜️⬜️⬜️⬛️\n⬛️⬜️⬜️⬛️⬛️⬜️⬛️\n⬛️⬜️⬜️⬛️⬛️⬜️⬛️\n⬛️⬜️⬜️⬜️⬜️⬜️⬛️\n⬛️⬛️⬛️⬛️⬛️⬛️⬛️