VOICE 360 PLATFORMER

Instructions: NEW PLATFORMER

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (level)\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\n\nwhen I receive [play v]\nhide\n\n@vignette\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    change [ghost v] effect by (25)\n    go [forward v] ((1000000) * (1000000)) layers\n    go to x: (0) y: (0)\nend\n\nwhen I receive [animation v]\nhide\n\ngo to x: (0) y: (0)\n\n@planet 3\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nshow\nset [animation v] to [onp]\ngo to x: (118) y: (82)\nswitch costume to (level 3 v)\ngo to [front v] layer\nrepeat until <(animation) = [finish]>\n    set size to (170) %\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (level 3 v)\n            set [animation v] to [finish]\n        end\n    end\nend\n\nwhen I receive [level v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\n@planet 2\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nshow\nset [animation v] to [onp]\ngo to x: (-14) y: (-82)\nswitch costume to (level 2 v)\ngo to [front v] layer\nrepeat until <(animation) = [finish]>\n    set size to (170) %\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (level 2 v)\n            set [animation v] to [finish]\n        end\n    end\nend\n\nwhen I receive [level v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\n@planet 1\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nshow\ngo to x: (-144) y: (61)\nswitch costume to (level 1 v)\ngo to [front v] layer\nrepeat until <(animation) = [finish]>\n    set size to (170) %\n    if <touching (mouse-pointer v)?> then\n        set size to (200) %\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (level v)\n            set [animation v] to [finish]\n        end\n    end\nend\n\nwhen I receive [level v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\n@anime 4\n\nwhen flag clicked\nhide\n\nwhen I receive [com début v]\nwait (1) seconds\nrepeat until <(animation) = [menu]>\n    set [cloneid v] to [1]\n    create clone of (_myself_ v)\n    set [cloneid v] to [2]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nif <(cloneID) = [1]> then\n    clear graphic effects\n    go to [front v] layer\n    switch costume to (pick random (1) to (3))\n    go to x: (pick random (-148) to (-223)) y: (0)\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nshow\nif <(cloneID) = [2]> then\n    clear graphic effects\n    go to [front v] layer\n    switch costume to (pick random (1) to (3))\n    go to x: (pick random (148) to (223)) y: (0)\n    repeat (20)\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\n@anime 3\n\nwhen flag clicked\nhide\n\nwhen I receive [com début v]\nshow\ngo to x: (0) y: (0)\nwait (1) seconds\nshow\ngo to [front v] layer\nwait (5) seconds\nglide (0.5) secs to x: (0) y: (269)\nset [animation v] to [menu]\nbroadcast (menu v)\nhide\n\nchange [level v] by (1)\n\n@anime 2\n\nwhen flag clicked\nhide\n\nwhen I receive [com début v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (-581)\nglide (0.5) secs to x: (0) y: (0)\nwait (1) seconds\nrepeat until <(animation) = [menu]>\n    set [cloneid v] to [1]\n    create clone of (_myself_ v)\nend\nset [animation v] to [menu]\nrepeat (100)\n    set [cloneid v] to [2]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(cloneID) = [1]> then\n    switch costume to (pick random (2) to (4))\n    point in direction (pick random (0) to (180))\n    set size to (pick random (100) to (200)) %\n    go to [front v] layer\n    go to x: (pick random (240) to (-240)) y: (180)\n    glide (0.5) secs to x: (x position) y: (-191)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(cloneID) = [2]> then\n    switch costume to (pick random (2) to (3))\n    point in direction (pick random (0) to (180))\n    set size to (pick random (100) to (200)) %\n    go to [front v] layer\n    go to (random position v)\n    wait until <(animation) = [finish]>\n    delete this clone\nend\n\nwhen I receive [level v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [level 2 v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [level 3 v]\nhide\nstop [other scripts in sprite v]\n\n@anime\n\nwhen flag clicked\nhide\n\nwhen I receive [animation v]\nshow\nhack de la taille [200] [1]\nif <(level) = [1]> then\n    repeat (10)\n        go to [front v] layer\n    end\n    switch costume to (costume1 v)\n    repeat (10)\n        change x by (5)\n        wait (0) seconds\n        change y by (5)\n        wait (0) seconds\n        change x by (-5)\n        wait (0) seconds\n        change y by (-5)\n        wait (0) seconds\n    end\n    repeat (7)\n        next costume\n    end\n    broadcast (com début v)\n    hide\nend\nif <(level) = [2]> then\n    repeat (10)\n        go to [front v] layer\n    end\n    switch costume to (costume9 v)\n    repeat (10)\n        change x by (5)\n        wait (0) seconds\n        change y by (5)\n        wait (0) seconds\n        change x by (-5)\n        wait (0) seconds\n        change y by (-5)\n        wait (0) seconds\n    end\n    repeat (7)\n        next costume\n    end\n    broadcast (com début v)\n    hide\nend\nif <(level) = [3]> then\n    repeat (10)\n        go to [front v] layer\n    end\n    switch costume to (costume16 v)\n    repeat (10)\n        change x by (5)\n        wait (0) seconds\n        change y by (5)\n        wait (0) seconds\n        change x by (-5)\n        wait (0) seconds\n        change y by (-5)\n        wait (0) seconds\n    end\n    repeat (8)\n        next costume\n    end\n    broadcast (com début v)\n    hide\nend\n\ndefine hack de la taille (taille) (costume)\nswitch costume to (size hack v)\nset size to (taille) %\nswitch costume to (costume)\n\n@fusée\n\nwhen I receive [play v]\nshow\nhack de la taille [200] [1]\nforever\n    go to (terrain v)\n    point in direction ([direction v] of [terrain v])\nend\n\nwhen flag clicked\nhide\n\ndefine hack de la taille (taille) (costume)\nswitch costume to (size hack v)\nset size to (taille) %\nswitch costume to (costume)\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@dégat\n\ndefine hack de la taille (taille) (costume)\nswitch costume to (size hack v)\nset size to (taille) %\nswitch costume to (costume)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nshow\nhack de la taille [200] [1]\nforever\n    go to (terrain v)\n    point in direction ([direction v] of [terrain v])\nend\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\n@Terrain\n\nwhen I receive [play v]\nif <(username) = [Tixeo]> then\n    broadcast (level v)\nend\nshow\nhack de la taille [200] [1]\npoint in direction (90)\ngo to x: (0) y: (-360)\nset [d vel v] to [0]\nset [y vel v] to [0]\nforever\n    change [y vel v] by (1)\n    if <(loudness) > [10]> then\n        change [d vel v] by (-0.4)\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <(loudness) > [17]> then\n            set [y vel v] to [-15]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nhide\n\ndefine hack de la taille (taille) (costume)\nswitch costume to (size hack v)\nset size to (taille) %\nswitch costume to (costume)\n\nwhen I receive [respawn v]\ngo to x: (0) y: (-360)\npoint in direction (90)\nset [d vel v] to [0]\nset [y vel v] to [0]\nshow\n\nwhen I receive [animation v]\nhide\n\nwhen flag clicked\nforever\n    switch costume to (level)\nend\n\nwhen I receive [level 2 v]\nset [level v] to [2]\ngo to x: (0) y: (-360)\npoint in direction (90)\nset [level v] to [2]\nset [d vel v] to [0]\nset [y vel v] to [0]\nshow\n\nwhen I receive [level 3 v]\nset [level v] to [3]\ngo to x: (0) y: (-360)\npoint in direction (90)\nset [level v] to [3]\nset [d vel v] to [0]\nset [y vel v] to [0]\nshow\n\nwhen I receive [level v]\nset [level v] to [1]\ngo to x: (0) y: (-360)\npoint in direction (90)\nset [level v] to [1]\nset [d vel v] to [0]\nset [y vel v] to [0]\nshow\n\nwhen flag clicked\nset [level v] to [1]\n\n@Player\n\nwhen I receive [play v]\nset [animation v] to [nop]\nshow\ngo to [front v] layer\nforever\n    go to x: (0) y: (0)\n    set size to (100) %\n    if <<touching (dégat v)?> or <touching (énemie v)?>> then\n        broadcast (respawn v)\n    end\n    if <not <(loudness) > [10]>> then\n        switch costume to (normal v)\n    end\n    if <(loudness) > [10]> then\n        switch costume to (right up v)\n    end\n    if <touching (fusée v)?> then\n        broadcast (animation v)\n        hide\n        wait until <(animation) = [finish]>\n    end\n    if <touching (trampoline v)?> then\n        change [y vel v] by (-35)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level v]\nshow\nset [level v] to [1]\n\nwhen I receive [level 2 v]\nshow\nset [level v] to [2]\n\nwhen I receive [level 3 v]\nshow\nset [level v] to [3]\n\n@attente\n\nwhen flag clicked\ngo to [back v] layer\nshow\nhack de la taille [150] [1]\nforever\n    go to x: ((mouse x) / (3)) y: ((mouse y) / (3))\nend\n\ndefine hack de la taille (taille) (costume)\nswitch costume to (size hack v)\nset size to (taille) %\nswitch costume to (costume)\n\nwhen I receive [play v]\nhide\n\n@Loading\n\nwhen I receive [play v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nrepeat (5)\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (-6)\n        change size by (1)\n    end\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (6)\n        change size by (-1)\n    end\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nrepeat (11)\n    create clone of (_myself_ v)\n    turn right (40) degrees\nend\nwait (6) seconds\nbroadcast (Play v)\nstart sound [Connect v]\n\nif <(username) = [TIXEO]> then\n    broadcast (Play v)\n    start sound [Connect v]\nelse\nend\n\n