Perspeneon - 3D platformer v1.2

Instructions: Yay. Reshared\n\nMade in early 2019

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nwait until <(level) = [11]>\nswitch backdrop to (2 v)\n\n@red\n\nwhen flag clicked\nforever\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        change y by (-1)\n        if <<touching (plateforme v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n            set [y v] to [12]\n            change y by (12)\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <<touching (plateforme v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\nend\n\nwhen flag clicked\nset size to (30) %\ngo to [back v] layer\nset [x v] to [0]\ngo to x: (-190) y: (-30)\nswitch costume to (droite v)\nshow\nforever\n    if <<touching (plateforme v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n        change y by (1)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        set [x v] to [8]\n        switch costume to (droite v)\n    end\n    if <<<key (e v) pressed?> or <key (left arrow v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        set [x v] to [-8]\n        switch costume to (gauche v)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (plateforme v)?> or <<touching (truc v)?> or <<touching (feuilles v)?> or <touching (poteau v)?>>>> then\n        change x by ((x) * (-1))\n        set [x v] to [0]\n    end\nend\n\nwhen I receive [next level v]\nif <(level) = [5]> then\n    go to x: (-190) y: (70)\nelse\n    go to x: (-190) y: (-30)\nend\n\nwhen I receive [perdu v]\nif <(level) = [5]> then\n    go to x: (-190) y: (70)\n    broadcast (hého v)\nelse\n    go to x: (-190) y: (-30)\nend\n\nwhen I receive [perdu \(eau\) v]\ngo to x: (-190) y: (-30)\n\nwhen I receive [glisser v]\nif <(level) = [3]> then\n    glide (0.1) secs to x: (-30) y: (-30)\n    glide (1) secs to x: (-30) y: (-122)\nend\nif <(level) = [5]> then\n    if <(x position) > [-100]> then\n        go to x: (153) y: (70)\n        glide (1) secs to x: (153) y: (-128)\n    end\n    if <not <(x position) > [-100]>> then\n        go to x: (-190) y: (-30)\n        glide (1) secs to x: (-190) y: (70)\n    end\nend\nif <(level) = [8]> then\n    go to x: (120) y: (-34)\n    glide (1) secs to x: (120) y: (-131)\nend\nif <(level) = [10]> then\n    go to x: (-103) y: (-34)\n    glide (1) secs to x: (-103) y: (-79)\nend\n\nwhen I receive [remonter v]\nbroadcast (vraiment remonter v)\nif <(level) = [3]> then\n    go to x: (-30) y: (-122)\n    glide (1) secs to x: (-30) y: (-30)\nend\nif <(level) = [5]> then\n    go to x: (153) y: (-128)\n    glide (1) secs to x: (153) y: (70)\nend\nif <(level) = [8]> then\n    go to x: (120) y: (-131)\n    glide (1) secs to x: (120) y: (-34)\nend\nif <(level) = [10]> then\n    go to x: (-103) y: (-79)\n    glide (1) secs to x: (-103) y: (-34)\nend\n\nwhen I receive [remonter quand perdu v]\ngo to x: (-190) y: (70)\nglide (1) secs to x: (-190) y: (-30)\n\nwhen I receive [bouton appuyé v]\nif <(level) = [8]> then\n    if <(y position) = [-133]> then\n        broadcast (bouton appuyé 2 v)\n    end\n    if <(y position) = [-32]> then\n        broadcast (bouton appuyé 1 v)\n    end\nend\n\nwhen I receive [glisser 2 v]\ngo to x: (102) y: (-34)\nglide (1) secs to x: (102) y: (-79)\n\nwhen I receive [remonter 2 v]\ngo to x: (102) y: (-79)\nglide (1) secs to x: (102) y: (-34)\n\nwhen I start as a clone\nswitch costume to (ombre v)\nrepeat (50)\n    change size by (-2.5)\n    switch costume to (ombre v)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\nwhen flag clicked\nwait until <(level) = [11]>\nforever\n    if <(y position) > [110]> then\n        go to x: (140) y: (-30)\n    end\nend\n\nwhen I receive [poteau v]\nforever\n    if <<(x position) < [-120]> and <(y position) = [-78]>> then\n        go to x: (-110) y: (-79)\n    end\nend\n\nwhen I receive [flèche droite v]\nif <<touching (plateforme v)?> or <<touching (truc v)?> or <touching (feuilles v)?>>> then\n    change y by (1)\nend\nset [x v] to [4]\nswitch costume to (droite v)\nset [x v] to ((x) * (0.9))\nchange x by (x)\nif <<touching (plateforme v)?> or <<touching (truc v)?> or <<touching (feuilles v)?> or <touching (poteau v)?>>>> then\n    change x by ((x) * (-1))\n    set [x v] to [0]\nend\n\nwhen I receive [vérifier v]\nif <(level) = [10]> then\n    if <(x position) < [0]> then\n        broadcast (bouton appuyé 2 v)\n    end\nend\n\n@plateforme\n\nwhen flag clicked\ngo to x: (30) y: (28)\ngo to [front v] layer\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\nif <<(costume [name v]) = [level 3]> or <<(costume [name v]) = [level 5]> or <<(costume [name v]) = [level 8]> or <(costume [name v]) = [level 10]>>>> then\n    broadcast (sous-sol v)\nelse\n    broadcast (rez-de-chaussée v)\nend\nif <(costume [name v]) = [level 5]> then\n    broadcast (glisser v)\nend\nif <<(costume [name v]) = [level 4]> or <(costume [name v]) = [level 6]>> then\n    go to x: (30) y: (28)\nend\n\nwhen I receive [glisser v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [vraiment remonter v]\nif <<(level) = [3]> or <<(level) = [8]> or <(level) = [10]>>> then\n    glide (1) secs to x: (30) y: (28)\nend\nif <(level) = [5]> then\n    show\nend\n\nwhen flag clicked\nwait until <(costume [name v]) = [level 5]>\nbroadcast (hého v)\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [next level v]\nchange [level v] by (1)\n\nwhen I receive [perdu v]\nif <(y position) = [128]> then\n    if <(costume [name v]) = [level 5]> then\n        show\n    else\n        broadcast (remonter quand perdu v)\n        glide (1) secs to x: (30) y: (28)\n    end\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (30) y: (28)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (30) y: (128)\n\n@piques\n\nwhen flag clicked\ngo to x: (36) y: (28)\ngo to [back v] layer\nswitch costume to (level 1 v)\nshow\nforever\n    if <touching (red v)?> then\n        broadcast (perdu v)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\nshow\ngo to x: (36) y: (28)\n\nwhen I receive [glisser v]\nif <(costume [number v]) = [8]> then\n    if <(y position) = [-38]> then\n        hide\n    else\n        glide (1) secs to x: (36) y: (128)\n    end\nelse\n    glide (1) secs to x: (36) y: (128)\nend\n\nwhen I receive [vraiment remonter v]\nif <(costume [name v]) = [level 5]> then\n    show\nelse\n    if <(costume [name v]) = [level 3]> then\n        if <(y position) = [78]> then\n            glide (1) secs to x: (36) y: (-10)\n            hide\n        else\n            glide (1) secs to x: (36) y: (28)\n        end\n    end\n    if <(costume [name v]) = [level 8]> then\n        if <(y position) = [78]> then\n            glide (1) secs to x: (36) y: (-38)\n            hide\n        else\n            glide (1) secs to x: (36) y: (28)\n        end\n    end\n    if <(costume [name v]) = [level 10]> then\n        glide (1) secs to x: (36) y: (28)\n    end\nend\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [bouton appuyé v]\nif <(level) = [3]> then\n    glide (0.7) secs to x: (36) y: (78)\nend\nif <(level) = [8]> then\n    go to x: (36) y: (-38)\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [bouton appuyé 2 v]\nif <(level) = [10]> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\nhide\n\n@piques 2\n\nwhen flag clicked\ngo to x: (36) y: (28)\nset size to (60) %\ngo to [back v] layer\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [glisser v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [vraiment remonter v]\nglide (1) secs to x: (36) y: (28)\n\nwhen flag clicked\nforever\n    if <touching (red v)?> then\n        broadcast (perdu v)\n    end\n    if <(level) = [10]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [next level v]\nnext costume\nif <(level) = [8]> then\n    go to x: (36) y: (28)\n    go [backward v] (4) layers\n    set size to (60) %\nend\nif <(level) = [10]> then\n    go [forward v] (4) layers\n    set size to (60) %\nend\nif <(level) = [9]> then\n    switch costume to (level 9 v)\nend\n\nwhen I receive [bouton appuyé 2 v]\nif <(level) = [8]> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\nend\n\nwhen flag clicked\nwait until <(level) = [10]>\nset size to (80) %\ngo [forward v] (3) layers\nset [ghost v] effect to (0)\nshow\nforever\n    if <<<touching (red v)?> and <<key (down arrow v) pressed?> or <key (s v) pressed?>>> and <not <(y position) = [128]>>> then\n        broadcast (glisser 2 v)\n    end\n    if <<<touching (red v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <(y position) = [128]>> then\n        broadcast (remonter 2 v)\n    end\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [flèche bas v]\nif <(level) = [10]> then\n    if <<touching (red v)?> and <not <(y position) = [128]>>> then\n        broadcast (glisser 2 v)\n    end\nend\n\nwhen I receive [flèche haut v]\nif <(level) = [10]> then\n    if <<touching (red v)?> and <(y position) = [128]>> then\n        broadcast (remonter 2 v)\n    end\nend\n\nwhen this sprite clicked\nif <(level) = [10]> then\n    if <<touching (red v)?> and <not <(y position) = [128]>>> then\n        broadcast (glisser 2 v)\n    end\n    if <<touching (red v)?> and <(y position) = [128]>> then\n        broadcast (remonter 2 v)\n    end\nend\n\n@eau\n\nwhen flag clicked\ngo to x: (36) y: (45)\nswitch costume to (level 1 v)\nset [ghost v] effect to (50)\nforever\n    repeat (55)\n        change y by (0.3)\n    end\n    repeat (55)\n        change y by (-0.3)\n    end\n    wait (0.3) seconds\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nrepeat until <(level) = [11]>\n    if <touching (red v)?> then\n        broadcast (perdu \(eau\) v)\n    end\nend\n\nwhen flag clicked\nrepeat until <(level) = [10]>\n    create clone of (red v)\nend\nwait until <(level) = [11]>\nforever\n    create clone of (red v)\nend\n\n@barrière invisible\n\nwhen flag clicked\ngo to x: (36) y: (28)\nset [ghost v] effect to (100)\nforever\n    if <touching (red v)?> then\n        broadcast (next level v)\n    end\nend\n\n@échelle\n\nwhen flag clicked\ngo to x: (0) y: (20)\ngo to [back v] layer\nswitch costume to (level 1 v)\nforever\n    if <<<touching (red v)?> and <<key (down arrow v) pressed?> or <key (s v) pressed?>>> and <not <(y position) = [120]>>> then\n        broadcast (glisser v)\n    end\n    if <<(costume [name v]) = [level 5]> and <<<key (down arrow v) pressed?> or <key (s v) pressed?>> and <touching (red v)?>>> then\n        broadcast (glisser v)\n    end\n    if <touching (red v)?> then\n        if <<(y position) = [120]> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n            broadcast (remonter v)\n        end\n    else\n        show\n    end\nend\n\nwhen I receive [next level v]\ngo to x: (0) y: (20)\nnext costume\nif <(level) = [8]> then\n    go [forward v] (3) layers\nend\n\nwhen I receive [remonter v]\nif <(level) = [3]> then\n    glide (1) secs to x: (0) y: (20)\nend\nif <(level) = [5]> then\n    show\nend\nif <(level) = [8]> then\n    glide (1) secs to x: (0) y: (20)\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (0) y: (20)\nend\n\nwhen I receive [glisser v]\nglide (1) secs to x: (0) y: (120)\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (0) y: (20)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (0) y: (120)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (0) y: (20)\n\nwhen this sprite clicked\nif <(y position) = [120]> then\n    if <touching (red v)?> then\n        broadcast (remonter v)\n    end\nend\nif <not <(y position) = [120]>> then\n    if <touching (red v)?> then\n        broadcast (glisser v)\n    end\nend\n\n@sous-sol\n\nwhen flag clicked\nhide\n\nwhen I receive [sous-sol v]\ngo to [back v] layer\ngo to x: (36) y: (28)\nshow\n\nwhen I receive [rez-de-chaussée v]\nhide\n\nwhen I receive [glisser v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [vraiment remonter v]\nif <(level) = [3]> then\n    glide (1) secs to x: (36) y: (28)\nend\nif <(level) = [5]> then\n    show\nend\nif <(level) = [8]> then\n    glide (1) secs to x: (36) y: (28)\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (36) y: (28)\nend\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (36) y: (28)\n\n@truc\n\nwhen flag clicked\ngo to x: (36) y: (28)\nswitch costume to (level 1 v)\ngo to [back v] layer\nwait until <(level) = [8]>\ngo [forward v] (2) layers\nwait until <(level) = [10]>\ngo [backward v] (3) layers\nwait until <(level) = [11]>\nhide\n\nwhen I receive [next level v]\ngo to x: (36) y: (28)\nshow\nnext costume\nif <(costume [name v]) = [level 6]> then\n    go to x: (-130) y: (28)\n    repeat until <not <(costume [name v]) = [level 6]>>\n        glide (1.5) secs to x: (36) y: (28)\n        glide (1.5) secs to x: (-130) y: (28)\n    end\nend\nif <(level) = [9]> then\n    switch costume to (level 9 v)\n    go to x: (-165) y: (0)\nend\nif <(level) = [10]> then\n    switch costume to (level 10 v)\n    go to x: (36) y: (28)\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (36) y: (128)\n\nwhen I receive [glisser v]\nglide (1) secs to x: (36) y: (128)\nif <(costume [name v]) = [level 8.2]> then\n    switch costume to (level 9 v)\nend\n\nwhen I receive [vraiment remonter v]\nif <(level) = [3]> then\n    glide (1) secs to x: (36) y: (28)\nend\nif <(level) = [5]> then\n    go to x: (36) y: (128)\n    show\nend\nif <(level) = [8]> then\n    glide (1) secs to x: (36) y: (28)\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (36) y: (28)\nend\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [bouton appuyé 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nswitch costume to (level 8.2 v)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nswitch costume to (level 8.2 v)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (36) y: (28)\n\nwhen I receive [hého v]\nhide\n\nwhen I receive [bouton appuyé 2 v]\nif <(level) = [10]> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\nswitch costume to (level 10.2 v)\n\n@bouton\n\nwhen flag clicked\nshow\ngo to x: (0) y: (-100)\ngo to [back v] layer\nswitch costume to (level 1 v)\nforever\n    if <touching (red v)?> then\n        if <(costume [name v]) = [level 5]> then\n            broadcast (bouton appuyé v)\n        end\n        broadcast (bouton appuyé v)\n    end\nend\n\nwhen I receive [glisser v]\nglide (1) secs to x: (0) y: (0)\n\nwhen I receive [next level v]\ngo to x: (0) y: (-100)\nnext costume\nset [ghost v] effect to (0)\nshow\nif <(level) = [6]> then\n    switch costume to (level 6 v)\nend\nif <(level) = [9]> then\n    switch costume to (level 9 v)\nend\n\nwhen I receive [vraiment remonter v]\nif <(level) = [3]> then\n    glide (1) secs to x: (0) y: (-100)\nend\nif <(level) = [5]> then\n    show\nend\nif <(level) = [8]> then\n    glide (1) secs to x: (0) y: (-100)\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (0) y: (-100)\nend\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (0) y: (-100)\n\nwhen I receive [bouton appuyé 1 v]\nswitch costume to (level 8 appuyé v)\n\nwhen I receive [bouton appuyé 2 v]\nif <(level) = [10]> then\n    switch costume to (level 10 appuyé 1 v)\nend\nif <(level) = [8]> then\n    switch costume to (level 8 appuyé 2 v)\nend\n\nwhen I receive [bouton appuyé v]\nif <(costume [number v]) = [3]> then\n    switch costume to (level 3 appuyé v)\nend\nif <<(level) = [9]> or <(level) = [5]>> then\n    forever\n        if <<key (a v) pressed?> and <touching (red v)?>> then\n            broadcast (feuilles v)\n        end\n    end\nend\nif <(costume [name v]) = [level 10]> then\n    switch costume to (level 10 appuyé v)\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (0) y: (0)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (0) y: (-100)\n\n@buisson\n\nwhen flag clicked\ngo to x: (-5) y: (-33)\ngo to [back v] layer\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [next level v]\ngo to x: (-5) y: (-33)\nnext costume\n\nwhen I receive [glisser v]\nglide (1) secs to x: (-5) y: (67)\n\nwhen I receive [vraiment remonter v]\nif <(level) = [5]> then\n    go to x: (-5) y: (67)\n    show\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (-5) y: (-33)\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (-5) y: (67)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (-5) y: (-33)\n\nwhen I receive [remonter quand perdu v]\nif <(level) = [5]> then\n    go to x: (-5) y: (67)\n    show\nend\nif <(level) = [10]> then\n    glide (1) secs to x: (-5) y: (-33)\nend\n\nwhen this sprite clicked\nif <<(level) = [5]> or <(level) = [9]>> then\n    broadcast (feuilles v)\nend\n\n@aide\n\nwhen flag clicked\nswitch costume to (level 1 v)\nset [ghost v] effect to (100)\n\nwhen I receive [bouton appuyé v]\nif <<(feuilles) = [0]> and <<(level) = [5]> and <not <key (a v) pressed?>>>> then\n    switch costume to (level 5 v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\nif <<(feuilles) = [0]> and <<(level) = [9]> and <not <key (a v) pressed?>>>> then\n    switch costume to (level 9 v)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (0.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [feuilles v]\nif <(level) = [5]> then\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    switch costume to (level 5.2 v)\n    wait (1.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\nif <(level) = [9]> then\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    switch costume to (level 9.2 v)\n    wait (1.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\n@feuilles\n\nwhen flag clicked\nset [feuilles v] to [0]\nswitch costume to (feuilles v)\nhide\n\nwhen I receive [feuilles v]\nif <(level) = [5]> then\n    set [feuilles v] to [1]\n    set [ghost v] effect to (100)\n    switch costume to (feuilles v)\n    go to (red v)\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\nend\nif <(level) = [9]> then\n    set [feuilles v] to [1]\n    set [ghost v] effect to (100)\n    switch costume to (feuilles3 v)\n    go to (red v)\n    show\n    repeat (5)\n        change [ghost v] effect by (-20)\n    end\nend\nrepeat until <<key (b v) pressed?> or <touching (mouse-pointer v)?>>\n    go to (red v)\nend\nrepeat until <<touching (piques v)?> or <<touching (plateforme v)?> or <touching (eau v)?>>>\n    change y by (-10)\nend\nif <(level) = [5]> then\n    repeat (3)\n        change y by (-6)\n        change [ghost v] effect by (10)\n    end\n    switch costume to (feuilles2 v)\n    repeat (3)\n        change [ghost v] effect by (-10)\n    end\nend\nif <(level) = [9]> then\n    repeat (3)\n        change y by (-4)\n        change [ghost v] effect by (10)\n    end\n    switch costume to (feuilles4 v)\n    repeat (3)\n        change [ghost v] effect by (-10)\n    end\n    if <touching (eau v)?> then\n        forever\n            repeat (55)\n                change y by (0.3)\n            end\n            repeat (55)\n                change y by (-0.3)\n            end\n            wait (0.3) seconds\n        end\n    end\nend\nset [feuilles v] to [0]\n\nwhen I receive [perdu v]\nhide\n\nwhen I receive [next level v]\nhide\n\n@poteau\n\nwhen flag clicked\nswitch costume to (level 1 v)\nrepeat until <(level) = [10]>\n    go to x: (36) y: (-72)\nend\ngo to x: (36) y: (-72)\n\nwhen I receive [vraiment remonter v]\nif <(y position) = [86]> then\n    glide (1) secs to x: (36) y: (-14)\nelse\n    glide (1) secs to x: (36) y: (-72)\nend\n\nwhen I receive [glisser v]\nif <(y position) = [-14]> then\n    glide (1) secs to x: (36) y: (86)\nelse\n    glide (1) secs to x: (36) y: (28)\nend\n\nwhen I receive [bouton appuyé v]\nif <(level) = [10]> then\n    if <(y position) = [86]> then\n        broadcast (vérifier v)\n    else\n        glide (1) secs to x: (36) y: (86)\n    end\nend\n\nwhen I receive [remonter 2 v]\nif <(y position) = [86]> then\n    glide (1) secs to x: (36) y: (-14)\nelse\n    glide (1) secs to x: (36) y: (-72)\nend\n\nwhen I receive [glisser 2 v]\nif <(y position) = [-14]> then\n    glide (1) secs to x: (36) y: (86)\nelse\n    glide (1) secs to x: (36) y: (28)\nend\n\nwhen I receive [remonter quand perdu v]\nif <(y position) = [86]> then\n    glide (1) secs to x: (36) y: (-14)\nelse\n    glide (1) secs to x: (36) y: (-72)\nend\n\nwhen I receive [next level v]\nnext costume\nif <(level) = [10]> then\n    go to x: (36) y: (-72)\n    wait (0.5) seconds\n    if <not <(y position) = [-72]>> then\n        go to x: (36) y: (-72)\n    end\nend\nif <not <(y position) = [86]>> then\n    broadcast (poteau v)\nend\n\n@panneau\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (-190) y: (10)\nswitch costume to (level 1 v)\nshow\n\nwhen I receive [next level v]\nnext costume\nif <(level) = [6]> then\n    go to x: (-190) y: (0)\nelse\n    go to x: (-190) y: (10)\nend\n\nwhen I receive [glisser v]\nglide (1) secs to x: (-190) y: (110)\n\nwhen I receive [vraiment remonter v]\nif <(level) = [5]> then\n    show\nelse\n    glide (1) secs to x: (-190) y: (10)\nend\n\nwhen I receive [glisser 2 v]\nglide (1) secs to x: (-190) y: (110)\n\nwhen I receive [remonter 2 v]\nglide (1) secs to x: (-190) y: (10)\n\nwhen I receive [remonter quand perdu v]\nglide (1) secs to x: (-190) y: (10)\n\n@nuages\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (20)\ngo to x: (300) y: (105)\nforever\n    go to [back v] layer\n    go to x: (300) y: (105)\n    wait (3) seconds\n    show\n    switch costume to (pick random (1) to (4))\n    glide (7) secs to x: (-300) y: (105)\n    hide\nend\n\n@nuages 2\n\nwhen flag clicked\ngo to [back v] layer\nset [ghost v] effect to (20)\ngo to x: (300) y: (105)\nwait (4) seconds\nforever\n    go to [back v] layer\n    go to x: (300) y: (105)\n    wait (3) seconds\n    show\n    switch costume to (pick random (1) to (4))\n    glide (7) secs to x: (-300) y: (105)\n    hide\nend\n\n@miniature\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.0001)\nshow\ngo to [front v] layer\nrepeat until <(y position) < [0]>\n    change y by ((0) - (y position))\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\n@pass\n\nwhen flag clicked\nshow\nset [ghost v] effect to (30)\nswitch costume to (normal v)\ngo to x: (-78) y: (150)\nwait until <(level) = [11]>\nhide\n\nwhen this sprite clicked\nswitch costume to (appuyé v)\nwait (0.3) seconds\nswitch costume to (normal v)\nbroadcast (next level v)\n\n@sound\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (-110) y: (210)\nset [ghost v] effect to (30)\nswitch costume to (costume3 v)\nshow\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [1]> then\n    set volume to (0) %\nend\nif <(costume [number v]) = [2]> then\n    set volume to (30) %\nend\nif <(costume [number v]) = [3]> then\n    set volume to (60) %\nend\nif <(costume [number v]) = [4]> then\n    set volume to (100) %\nend\n\nwhen flag clicked\nset volume to (60) %\nrepeat until <(level) = [11]>\n    play sound [Chill session \(online-audio-converter v] until done\nend\nplay sound [Hypnotic Techno - intro v] until done\n\n@retry\n\nwhen flag clicked\ngo to x: (-155) y: (152)\nset [ghost v] effect to (30)\ngo to [front v] layer\nshow\nwait until <(level) = [11]>\nhide\n\nwhen this sprite clicked\nswitch costume to (appuyé v)\nwait (0.2) seconds\nswitch costume to (normal v)\nwait (0.2) seconds\nbroadcast (perdu v)\n\n