Scratch adventure || A collaborative platformer 

Instructions: ------------------by @nampinanathali and @matji----------\nwelcome to scratch adventure!\nyou are the cat scratch\nyou have been deleted from the editor\nit's up to you to come back!\n\n----------------------good luck!----------------------

@Stage\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\n\nwhen I receive [introdedébutdejeu v]\nclear graphic effects\nswitch backdrop to (7c68a6b3-8555-448f-9cd2-b6fd2155b7f8 v)\n\nwhen I receive [introdenampinanathali v]\nswitch backdrop to (1 v)\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [skip intro v]\nwait (1) seconds\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nswitch backdrop to (2 v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nswitch backdrop to (backdrop1 v)\nbroadcast (DébutDuJeu v)\n\nwhen I receive [introdenampinanathali v]\nset [brightness v] effect to (-2)\nswitch backdrop to (1 v)\nrepeat (10)\n    change [color v] effect by (0.1)\nend\nwait (0.9) seconds\nrepeat (10)\n    change [brightness v] effect by (0.25)\nend\n\nwhen I receive [gy v]\nwait (0.5) seconds\nbroadcast (introDeNampinanathali v)\n\nwhen I receive [débutdujeu v]\nclear graphic effects\n\nwhen I receive [comencementdujeu v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [comencementdujeu v]\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (0)\n\nwhen I receive [vignette v]\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [outro v]\nswitch backdrop to (arrière plan3 v)\n\n@introDuDébut\n\nwhen flag clicked\nset [cloneid v] to [0]\nhide variable [cloneid v]\nhide\nset size to (100) %\nchange size by (-50)\n\nwhen I receive [introdedébutdejeu v]\nswitch costume to (cat-a v)\ngo to x: (143) y: (9)\nshow\nset [cloneid v] to [1]\ncreate clone of (_myself_ v)\nset [cloneid v] to [2]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(cloneID) = [1]> then\n    go to x: (65) y: (-131)\n    set size to (100) %\n    show\n    change size by (-70)\n    switch costume to (54e72d16-ac09-42b1-8390-4d901af9c499 v)\n    wait (3) seconds\n    delete this clone\nelse\n    set size to (100) %\n    change size by (-80)\n    go to x: (-10) y: (-38)\n    switch costume to (98c01e31-3cb7-433d-9cab-5e403876199e v)\n    show\n    wait (2) seconds\n    glide (1) secs to x: (71) y: (-120)\n    set [pan left/right v] effect to (100)\n    play sound [Pop v] until done\n    change [pitch v] effect by (30)\n    broadcast (ComencementDuJeu v)\n    delete this clone\nend\n\nwhen I receive [introdedébutdejeu v]\nwait (3) seconds\nhide\n\nwhen I receive [vignette v]\nhide\n\n@13intro2\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-2.5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\npoint in direction (90)\nhide\nset size to (75) %\ngo to [front v] layer\nwait (2) seconds\nshow\ngo to x: (-400) y: (0)\nglide (0.5) secs to x: (400) y: (0)\npoint in direction (60)\nglide (1) secs to x: (98) y: (-110)\nbroadcast (message1 v)\n\nwhen I receive [message1 v]\nrepeat (5)\n    repeat (10)\n        change size by (5)\n    end\n    broadcast (boom v)\n    repeat (10)\n        change size by (-5)\n    end\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (GY v)\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@entourage\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset size to (50) %\ngo to [back v] layer\nshow\ngo to x: (400) y: (0)\nglide (1) secs to x: (0) y: (32)\n\nwhen I receive [message1 v]\nrepeat (5)\n    repeat (10)\n        change size by (2.5)\n    end\n    broadcast (boom v)\n    repeat (10)\n        change size by (-2.5)\n    end\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-2.5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [i v]\nswitch costume to (costume2 v)\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@12intro\n\nwhen flag clicked\nstart sound [Elek Tronomia - Elektronomia - Sky High v]\nhide\nset size to (220) %\ngo to [front v] layer\nwait (1) seconds\nshow\ngo to x: (0) y: (400)\nglide (0.111111111) secs to x: (0) y: (33)\nbroadcast (I v)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [message1 v]\nrepeat (5)\n    repeat (10)\n        change size by (5)\n    end\n    broadcast (boom v)\n    repeat (10)\n        change size by (-5)\n    end\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change size by (-2.5)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    next costume\nend\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@Intro4\n\nwhen I receive [boom v]\nif <(size) < [21]> then\n    set [momentum v] to (pick random (10) to (15))\n    set [intro #2: yv v] to (pick random (2) to (3))\n    change [brightness v] effect by (pick random (-20) to (20))\n    change size by (pick random (10) to (20))\n    set [ghost v] effect to (45)\n    turn right (pick random (-10) to (10)) degrees\n    show\n    repeat until <touching (_edge_ v)?>\n        go to [back v] layer\n        move (Momentum) steps\n        change y by (Intro #2: Yv)\n    end\n    hide\n    delete this clone\nelse\n    repeat (2)\n        Spread\n        wait (0.2) seconds\n    end\nend\nstop [this script v]\n\ndefine Spread\nshow\ngo to [back v] layer\nset [ghost v] effect to (45)\nchange [dot count v] by (10)\ngo to (12intro v)\npoint in direction (90)\ngo to (12intro v)\nturn right (Dot Count) degrees\ncreate clone of (_myself_ v)\nrepeat until <touching (_edge_ v)?>\n    move (15) steps\nend\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset size to (15) %\ngo to x: (0) y: (0)\npoint in direction (75)\nhide\nset [dot count v] to [0]\nrepeat (150)\n    create clone of (_myself_ v)\n    turn left (0.5) degrees\nend\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@intro3\n\nwhen I receive [boom v]\nif <(size) < [21]> then\n    set [momentum v] to (pick random (10) to (15))\n    set [intro #2: yv v] to (pick random (2) to (3))\n    change [brightness v] effect by (pick random (-20) to (20))\n    change size by (pick random (10) to (20))\n    set [ghost v] effect to (45)\n    turn right (pick random (-10) to (10)) degrees\n    show\n    repeat until <touching (_edge_ v)?>\n        go to [back v] layer\n        move (Momentum) steps\n        change y by (Intro #2: Yv)\n    end\nelse\n    repeat (2)\n        Spread\n        wait (0.2) seconds\n    end\nend\n\nrepeat (2)\nend\n\ndefine Spread\nshow\ngo to [back v] layer\nset [ghost v] effect to (45)\nchange [dot count v] by (10)\ngo to (13intro2 v)\npoint in direction (90)\ngo to (13intro2 v)\nturn right (Dot Count) degrees\ncreate clone of (_myself_ v)\nrepeat until <touching (_edge_ v)?>\n    move (15) steps\nend\nhide\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nset size to (15) %\ngo to x: (0) y: (0)\npoint in direction (75)\nhide\nset [dot count v] to [0]\nrepeat (20)\n    create clone of (_myself_ v)\n    turn left (15) degrees\nend\n\nchange [intro #2: yv v] by (-0.4)\nset [momentum v] to ((Momentum) * (0.95))\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@Intro2\n\nwhen I receive [dots v]\nif <(size) < [21]> then\n    set [intro2: momentum v] to (pick random (10) to (15))\n    set [intro2: intro #2: yv v] to (pick random (2) to (3))\n    change [brightness v] effect by (pick random (-20) to (20))\n    change size by (pick random (10) to (20))\n    set [ghost v] effect to (45)\n    turn right (pick random (-10) to (10)) degrees\n    show\n    repeat until <touching (_edge_ v)?>\n        go to [back v] layer\n        move (Intro2: Momentum) steps\n        change y by (Intro2: Intro #2: Yv)\n        change [intro2: intro #2: yv v] by (-0.4)\n        set [intro2: momentum v] to ((Intro2: Momentum) * (0.95))\n    end\n    hide\n    delete this clone\nelse\n    repeat (2)\n        Spread\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [skip intro v]\nhide\nstop [other scripts in sprite v]\n\ndefine Spread\nshow\ngo to [back v] layer\nset [ghost v] effect to (45)\nchange [dot count v] by (10)\ngo to (intro1 v)\npoint in direction (90)\ngo to (intro1 v)\nturn right (Dot Count) degrees\ncreate clone of (_myself_ v)\nrepeat until <touching (_edge_ v)?>\n    move (15) steps\nend\nhide\n\nwhen I receive [introdenampinanathali v]\nset size to (15) %\ngo to x: (0) y: (0)\npoint in direction (75)\nhide\nset [dot count v] to [0]\nrepeat (20)\n    create clone of (_myself_ v)\n    turn left (15) degrees\nend\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@Intro1\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo]> then\n    repeat (10)\n        change [ghost v] effect by (-10)\n        turn left (6) degrees\n    end\n    wait (0.9) seconds\n    repeat (90)\n        set size to ((([sin v] of ((sine) * (0.75)) ) * (12)) + (150)) %\n        change [sine v] by (30)\n    end\n    Smooth Glide to x [0] y [60] Speed [6]\n    repeat (10)\n        change size by (-0.5)\n    end\n    wait (1.1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo]> then\n    point in direction (145)\n    set size to (110) %\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (300)\n    show\n    Smooth Glide to x [0] y [0] Speed [6]\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Logo]> then\n    wait (1.15) seconds\n    broadcast (Dots v)\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [name]> then\n    set [ghost v] effect to (20)\n    go to x: (0) y: (-300)\n    wait (4.75) seconds\n    show\n    Smooth Glide to x [0] y [-50] Speed [5]\n    wait (1) seconds\n    broadcast (Skip Intro v)\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I receive [skip intro v]\nwait (2.5) seconds\n\nwhen I receive [introdenampinanathali v]\nhide\nset size to (100) %\nclear graphic effects\npoint in direction (90)\nset volume to (100) %\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nswitch costume to (name v)\ncreate clone of (_myself_ v)\n\nwhen I receive [introdenampinanathali v]\nwait (0.1) seconds\nstart sound [Intro v]\n\nwhen flag clicked\nhide\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [débutdujeu v]\nhide\n\n@Menu\n\nwhen flag clicked\nset [verification v] to [0]\nset size to (100) %\nchange size by (-10)\nswitch costume to (1954f701-b34f-4759-9028-8fdb296a66f0 v)\nhide\n\nwhen I receive [débutdujeu v]\npoint in direction (90)\nswitch costume to (1954f701-b34f-4759-9028-8fdb296a66f0 v)\ngo to x: (-344) y: (54)\ngo to [front v] layer\nshow\ncreate clone of (_myself_ v)\nSmooth Glide to x [18] y [98] Speed [6]\n\nwhen I start as a clone\ngo to [front v] layer\nswitch costume to (button3-b v)\nshow\npoint in direction (90)\ngo to x: (-258) y: (-65)\nSmooth Glide to x [-29] y [-73] Speed [6]\nrepeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n    point in direction (((9) * ([cos v] of ((timer) * (150)) )) + (90))\nend\nwait (0.5) seconds\nset [verification v] to [1]\nbroadcast (IntroDeDébutDeJeu v)\ndelete this clone\n\nwhen I receive [introdedébutdejeu v]\nhide\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\nwhen I receive [vignette v]\nhide\n\n@Musique\n\nwhen I receive [vignette v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [débutdujeu v]\nswitch backdrop to (backdrop1 v)\ngo to [back v] layer\nshow\n\nwhen I receive [introdedébutdejeu v]\nhide\n\nwhen I receive [vignette v]\nhide\n\n@terrain \n\nwhen flag clicked\nswitch costume to (terrain 1 v)\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [comencementdujeu v]\ngo to [front v] layer\nshow\ngo to x: (-0) y: (-0)\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [end v]\nhide\n\n@texte\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [comencementdujeu v]\ngo to [back v] layer\nset size to (100) %\ngo to x: (0) y: (28)\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [comencementdujeu v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [end v]\nhide\n\n@Cat\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide variable [couleurs v]\n\nwhen I receive [comencementdujeu v]\nset size to (80) %\nset [ghost v] effect to (0)\nset [color v] effect to (Couleurs)\nshow\nset [x velocity v] to [0]\nset [y velocity v] to [0]\npoint in direction (90)\ngo to x: (-197) y: (-3)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x velocity v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x velocity v] by (-1)\n    end\n    set [x velocity v] to ((x velocity) * (.9))\n    change x by (x velocity)\n    if <touching (terrain  v)?> then\n        change y by (1)\n        if <touching (terrain  v)?> then\n            change y by (1)\n            if <touching (terrain  v)?> then\n                change y by (1)\n                if <touching (terrain  v)?> then\n                    change y by (1)\n                    if <touching (terrain  v)?> then\n                        if <touching (terrain  v)?> then\n                            change x by ((x velocity) * (-1))\n                            change x by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(x velocity) > [0]> then\n                                    set [x velocity v] to [-5]\n                                else\n                                    set [x velocity v] to [5]\n                                end\n                                set [y velocity v] to [10]\n                            else\n                                set [x velocity v] to [0]\n                            end\n                        end\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (y velocity)\n    if <touching (terrain  v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (terrain  v)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            change [y velocity v] by (15)\n        end\n    end\n    change y by (1)\n    if <(x position) > [230]> then\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        go to x: (-197) y: (-3)\n        broadcast (next v)\n    end\n    if <touching (piques v)?> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        switch costume to (cat-a v)\n        set [ghost v] effect to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        start sound [Meow v]\n        go to x: (-197) y: (-3)\n    end\n    if <(y position) < [-170]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        set [ghost v] effect to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        start sound [Meow v]\n        go to x: (-197) y: (-3)\n    end\nend\n\nwhen I receive [comencementdujeu v]\nswitch costume to (cat-a v)\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (cat-a v)\n        wait (0.2) seconds\n        switch costume to (cat-b v)\n        if <not <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n            switch costume to (cat-a v)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        switch costume to (cat-a2 v)\n        wait (0.2) seconds\n        switch costume to (cat-b2 v)\n        if <not <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n            switch costume to (cat-a2 v)\n        end\n    end\nend\n\nwhen I receive [vignette v]\nhide\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\nwhen I receive [débutdujeu v]\nshow\nswitch costume to (cat-a v)\ngo to x: (-243) y: (-13)\nSmooth Glide to x [-15] y [-11] Speed [6]\n\nwhen flag clicked\nclear graphic effects\n\nwhen I receive [débutdujeu v]\nforever\n    set [color v] effect to (Couleurs)\nend\n\nwhen I receive [introdedébutdejeu v]\nhide\n\nwhen I receive [débutdujeu v]\nrepeat until <(Verification) = [1]>\n    point in direction (((25) * ([cos v] of ((timer) * (150)) )) + (90))\nend\n\nwhen flag clicked\ndelete this clone\n\nwhen I receive [comencementdujeu v]\nforever\n    play sound [kasbo-horizon v] until done\nend\n\nwhen I receive [end v]\nhide\nstop [other scripts in sprite v]\npoint in direction (90)\ngo to x: (1) y: (14)\ngo to [front v] layer\nset size to (400) %\nshow\nrepeat (60)\n    turn right (12) degrees\n    change size by (-10)\nend\nhide\nbroadcast (outro v)\n\nwhen flag clicked\nset size to (100) %\n\n@Vignette\n\nbroadcast (Vignette v)\nstop [all v]\n\nwhen I receive [vignette v]\nshow\nclear graphic effects\ngo to [front v] layer\ngo to x: (8) y: (20)\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\ngo to x: (8) y: (20)\nset size to (100) %\nchange size by (10)\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\nend\n\n@choixDesCouleurs\n\nwhen flag clicked\nhide\n\nwhen I receive [débutdujeu v]\nset [verification v] to [0]\nset [couleurs v] to [0]\nset [cloneid v] to [0]\nchange [cloneid v] by (1)\ncreate clone of (_myself_ v)\nchange [cloneid v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nif <(cloneID) = [1]> then\n    go to [front v] layer\n    show\n    switch costume to (costume1 v)\n    go to x: (229) y: (-5)\n    Smooth Glide to x [93] y [-16] Speed [3]\n    forever\n        go to [front v] layer\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(Verification) = [1]>>> then\n            wait (0.1) seconds\n            change [couleurs v] by (25)\n        else\n            if <(Verification) = [1]> then\n                delete this clone\n            end\n        end\n    end\nelse\n    go to [front v] layer\n    show\n    switch costume to (costume2 v)\n    go to x: (-260) y: (-27)\n    Smooth Glide to x [-121] y [-13] Speed [3]\n    forever\n        go to [front v] layer\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(Verification) = [1]>>> then\n            wait (0.1) seconds\n            change [couleurs v] by (-25)\n        else\n            if <(Verification) = [1]> then\n                delete this clone\n            end\n        end\n    end\nend\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\n@Piques\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [comencementdujeu v]\nswitch costume to (costume1 v)\nshow\ngo to x: (-0) y: (-0)\n\nwhen I receive [vignette v]\nhide\n\n@Aide\n\nwhen flag clicked\ngo to x: (21) y: (27)\nhide\n\nwhen I receive [vignette v]\nhide\n\nwhen I receive [end v]\nclear graphic effects\ngo to [front v] layer\n\nwhen I receive [outro v]\nrepeat (10)\n    change [brightness v] effect by (25)\n    wait (0.2) seconds\nend\n\n@Bouton stop\n\nwhen flag clicked\nhide\nset size to (100) %\nchange size by (1100)\ngo to [front v] layer\n\nwhen I receive [next v]\ngo to x: (133) y: (-79)\nif <([costume # v] of [terrain  v]) = [13]> then\n    go to [front v] layer\n    repeat until <touching (cat v)?>\n        show\n    end\n    hide\n    broadcast (End v)\n    stop [this script v]\nend\n\n@outrouDeFin\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (pick random (2) to (4))\ngo to (random position v)\nset y to (250)\nrepeat until <(y position) < [-125]>\n    change y by (-10)\nend\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (-10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    turn right (10) degrees\nend\n\nwhen I receive [outro v]\nforever\n    repeat (10)\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [outro v]\ngo to [front v] layer\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    set size to ((85) + (([sin v] of (((timer) - (3)) * (350)) ) * (10))) %\n    point in direction ((77) + (([tan v] of (((timer) - (333)) * (55)) ) * (33)))\nend\n\nwhen I receive [outro v]\nforever\n    play sound [Disfigure v] until done\nend\n\nwhen I receive [outro v]\nwait (5) seconds\nshow\n\n