The Cube (platformer)V2.1

Instructions: Bienvenue dans un nouvelle univers de Platforme,\n\nN'oublié pas de dire si il y a des bug ou autre je serais la pour vérifier.\n

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (niveau) and wait\nend\n\nwhen I receive [matin v]\nset [brightness v] effect to (-75)\nrepeat (200)\n    change [brightness v] effect by (0.3)\n    wait () seconds\nend\n\nwhen I receive [midi v]\nwait (25) seconds\nrepeat (200)\n    change [brightness v] effect by (-0.3)\n    wait () seconds\nend\n\nwhen flag clicked\nforever\n    start sound [Sam Gellaitry - Assumptions v]\n    wait (198) seconds\nend\n\nwhen [a v] key pressed\nchange volume by (-1)\n\nwhen [e v] key pressed\nchange volume by (1)\n\n@Sprite1\n\nwhen flag clicked\nshow\nset [niveau v] to [1]\ngo to [front v] layer\nforever\n    switch costume to (niveau)\nend\n\nwhen flag clicked\nforever\n    if <(Ecran) = [1]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Ecran) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nshow\ngo to [back v] layer\nforever\n    switch costume to (niveau)\nend\n\nset [niveau v] to [16]\n\nwhen flag clicked\nforever\n    if <(Ecran) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [morts v]\nstart sound [Rip v]\n\n@jouer\n\nwhen flag clicked\nset [ecran v] to [0]\nforever\n    set size to (100) %\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\nend\n\nwhen this sprite clicked\nset [ecran v] to [2]\nbroadcast (a v)\nstart sound [Click - Sound Effect \(HD\) v]\n\nwhen flag clicked\nforever\n    if <(Ecran) = [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo to x: (284) y: (-13)\nrepeat (28)\n    move (-9.9) steps\nend\nwait (1) seconds\ngo to x: (7) y: (-13)\n\nwhen flag clicked\nchange [ghost v] effect by (100)\nwait (0.1) seconds\nchange [ghost v] effect by (-10)\nwait (0.1) seconds\nchange [ghost v] effect by (-20)\nwait (0.1) seconds\nchange [ghost v] effect by (-30)\nwait (0.1) seconds\nchange [ghost v] effect by (-40)\nwait (0.1) seconds\nchange [ghost v] effect by (-50)\nwait (0.1) seconds\nchange [ghost v] effect by (-60)\nwait (0.1) seconds\nchange [ghost v] effect by (-70)\nwait (0.1) seconds\nchange [ghost v] effect by (-80)\nwait (0.1) seconds\nchange [ghost v] effect by (-90)\nwait (0.1) seconds\nchange [ghost v] effect by (-100)\nwait (0.1) seconds\n\n@Sprite7\n\nwhen flag clicked\nforever\n    if <(Ecran) = [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nchange [ghost v] effect by (100)\nwait (0.1) seconds\nchange [ghost v] effect by (-10)\nwait (0.1) seconds\nchange [ghost v] effect by (-20)\nwait (0.1) seconds\nchange [ghost v] effect by (-30)\nwait (0.1) seconds\nchange [ghost v] effect by (-40)\nwait (0.1) seconds\nchange [ghost v] effect by (-50)\nwait (0.1) seconds\nchange [ghost v] effect by (-60)\nwait (0.1) seconds\nchange [ghost v] effect by (-70)\nwait (0.1) seconds\nchange [ghost v] effect by (-80)\nwait (0.1) seconds\nchange [ghost v] effect by (-90)\nwait (0.1) seconds\nchange [ghost v] effect by (-100)\nwait (0.1) seconds\n\nwhen flag clicked\nforever\n    go to x: (1) y: (131)\nend\n\n@Sprite6\n\nwhen flag clicked\nforever\n    if <(Ecran) = [0]> then\n        show\n    else\n        hide\n    end\nend\n\n@info2\n\nwhen flag clicked\nset [ecran v] to [0]\ngo to x: (-190) y: (163)\nforever\n    set size to (100) %\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Ecran) = [10]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen this sprite clicked\nset [ecran v] to [0]\nstart sound [Click - Sound Effect \(HD\) v]\n\nwhen flag clicked\nforever\n    go to x: (-186) y: (155)\nend\n\n@player\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (25)\n    change size by (-6)\n    switch costume to (costume2 v)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [recommence v]\ngo to x: (-224) y: (62)\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nforever\n    spécial détéction\nend\n\nwhen flag clicked\nforever\n    spécial death\nend\n\nwhen flag clicked\nhide\n\ndefine spécial death\nif <touching (sprite2 v)?> then\n    repeat (10)\n        change [pixelate v] effect by (8)\n    end\n    go to x: (-224) y: (62)\n    broadcast (Recommence v)\n    repeat (10)\n        change [pixelate v] effect by (-8)\n    end\nend\n\ndefine spécial détéction\nif <touching (trampoline v)?> then\n    change [y v] by (pick random (10) to (15))\nend\n\nwhen flag clicked\nwait until <(Ecran) = [2]>\ngo to x: (-224) y: (62)\nset size to (50) %\nswitch costume to (a droite v)\ngo to [front v] layer\npoint in direction (90)\nset [yy v] to [15]\nset [xx -90 v] to [-1]\nset [xx 90 v] to [1]\ngo to [front v] layer\nshow\nforever\n    go to [front v] layer\n    set [x v] to [0]\n    set [y v] to [0]\n    forever\n        change [y v] by (-1)\n        set [x v] to ((x) * (0.9))\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            switch costume to (a gauche v)\n            set [orientation  de player v] to [a droite]\n            change [x v] by (Xx 90)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n            switch costume to (a droite v)\n            set [orientation  de player v] to [a gauche]\n            change [x v] by (Xx -90)\n        end\n        change x by (x)\n        if <touching (sprite1 v)?> then\n            change y by (1)\n        end\n        if <touching (sprite1 v)?> then\n            change y by (1)\n        end\n        if <touching (sprite1 v)?> then\n            change y by (1)\n        end\n        if <touching (sprite1 v)?> then\n            change y by (1)\n        end\n        if <touching (sprite1 v)?> then\n            change y by (-4)\n            change x by ((x) * (-2))\n            if <<key (space 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        if <key (down arrow v) pressed?> then\n            set [y v] to [-10]\n        end\n        change y by (y)\n        if <touching (sprite1 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 (space v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> and <<touching (sprite1 v)?> or <touching (sprite1 v)?>>> then\n            change [y v] by (Yy)\n        end\n        change y by (1)\n        if <<touching (sprite2 v)?> or <touching (sprite8 v)?>> then\n            broadcast (piege v)\n            broadcast (Morts v)\n            repeat (10)\n                change [ghost v] effect by (8)\n            end\n            go to x: (-224) y: (62)\n            broadcast (Recommence v)\n            repeat (10)\n                change [ghost v] effect by (-8)\n            end\n        end\n        if <[200] < (x position)> then\n            change [niveau v] by (1)\n            go to x: (-224) y: (62)\n            broadcast (Recommence v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Ecran) = [2]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [a v]\ngo to x: (-224) y: (62)\n\nwhen I receive [debut1 v]\nset [niveau v] to [1]\n\n@jouer2\n\nwhen flag clicked\nset [ecran v] to [10]\nforever\n    set size to (100) %\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    end\nend\n\nwhen this sprite clicked\nset [ecran v] to [10]\nbroadcast (a v)\nstart sound [Click - Sound Effect \(HD\) v]\n\nwhen flag clicked\nforever\n    if <(Ecran) = [0]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nchange [ghost v] effect by (100)\nwait (0.1) seconds\nchange [ghost v] effect by (-10)\nwait (0.1) seconds\nchange [ghost v] effect by (-20)\nwait (0.1) seconds\nchange [ghost v] effect by (-30)\nwait (0.1) seconds\nchange [ghost v] effect by (-40)\nwait (0.1) seconds\nchange [ghost v] effect by (-50)\nwait (0.1) seconds\nchange [ghost v] effect by (-60)\nwait (0.1) seconds\nchange [ghost v] effect by (-70)\nwait (0.1) seconds\nchange [ghost v] effect by (-80)\nwait (0.1) seconds\nchange [ghost v] effect by (-90)\nwait (0.1) seconds\nchange [ghost v] effect by (-100)\nwait (0.1) seconds\n\nwhen flag clicked\ngo to x: (-284) y: (-81)\nrepeat (28)\n    move (10.4) steps\nend\nwait (1) seconds\ngo to x: (7) y: (-81)\n\n