Platformer Part-8 (Space)

Instructions: ╔∘ ★ ∘══════╗\n::PLATFORMER::\n╚══════∘ ★ ∘╝\n@jindalsargun\nLove, fav, remix, and follow! \nPart-01 - https://scratch.mit.edu/projects/511930996/\nPart-02 - https://scratch.mit.edu/projects/520595337/\nPart-03 - https://scratch.mit.edu/projects/524135352/\nPart-04 - https://scratch.mit.edu/projects/526959655/\nPart-05 - https://scratch.mit.edu/projects/528697474/\nPart-06 - https://scratch.mit.edu/projects/529835140/\nPart-07 - https://scratch.mit.edu/projects/530465929/\nPart-08 - https://scratch.mit.edu/projects/532679243/\nPart-09 - https://scratch.mit.edu/projects/535570060/\nPart-10 - https://scratch.mit.edu/projects/538021056/  Part-11 - https://scratch.mit.edu/projects/540774309/\nPart-12 - https://scratch.mit.edu/projects/542317456/\n✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧\n                               INSTRUCTIONS\nPress WASD or arrow buttons to move.\nAvoid lava (red) and spikes (grey).\nJump on trampolines to jump higher.\nSpeed ups help you to move some steps to the right.\nYou can swim in water.\nThere are 10 levels.\nEvery level is possible.\n     ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧\n                                    UPDATES\n23rd May 2021 - shared\n27th May 2021 - added moon\n✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧ - - - - ✧

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [start v]\nswitch backdrop to (costume3 v)\n\n@Player\n\nwhen flag clicked\nset [level v] to [1]\ngo to [front v] layer\nhide\n\nwhen I receive [start v]\nshow\nset [signal v] to [disactivated]\npoint in direction (90)\ngo to x: (-190) y: (20)\nset [xs v] to [0]\nset [ys v] to [0]\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n        change [xs v] by (1.5)\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n        change [xs v] by (-1.5)\n        switch costume to (left v)\n    end\n    if <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (upright v)\n    end\n    if <<<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> and <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        switch costume to (upleft v)\n    end\n    if <not <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <<key (d v) pressed?> or <<<mouse down?> and <(mouse x) > (x position)>> or <<mouse down?> and <(mouse x) < (x position)>>>>>>>>>> then\n        switch costume to (normal v)\n    end\n    if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<mouse down?> and <(mouse y) < (y position)>>>> then\n        switch costume to (down v)\n    end\n    change x by (Xs)\n    if <touching (ground v)?> then\n        change x by ((Xs) * (-1))\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            if <(Xs) > [0]> then\n                set [xs v] to [-15]\n                set [ys v] to [10]\n            else\n                set [xs v] to [15]\n                set [ys v] to [10]\n            end\n        else\n            set [xs v] to [0]\n        end\n    else\n        set [xs v] to ((Xs) * (0.8))\n    end\n    change y by (Ys)\n    if <touching (ground v)?> then\n        change y by ((Ys) * (-1))\n        set [ys v] to [0]\n        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n            switch costume to (player - up v)\n            if <(Jumping) = [yes]> then\n                set [ys v] to [12]\n                set [jumping v] to [no]\n            end\n        end\n    else\n        change [ys v] by (-1)\n        set [jumping v] to [yes]\n    end\n    if <(x position) > [239]> then\n        change [level v] by (1)\n        go to x: (-190) y: (20)\n        set [xs v] to [0]\n        set [ys v] to [0]\n    end\n    if <<<<touching (spikes v)?> or <(y position) < [-178]>> or <touching (lava v)?>> or <touching (saws v)?>> then\n        go to x: (-190) y: (50)\n        set [xs v] to [0]\n        set [ys v] to [0]\n    end\n    if <touching (trampoline v)?> then\n        set [ys v] to [20]\n    end\n    if <touching (water v)?> then\n        set [ys v] to [-1]\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [ys v] to [5]\n        end\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            set [ys v] to [-5]\n        end\n    end\n    if <touching (speed ups v)?> then\n        set [xs v] to [20]\n    end\nend\n\nwhen I receive [start v]\nforever\n    play sound [Alan Walker - Force \[NCS Release\] v] until done\nend\n\nset [level v] to [8]\n\n@Shine\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\nshow\ngo to [back v] layer\nforever\n    go to (player v)\nend\n\n@Ground\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    go to [front v] layer\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Spikes\n\nwait (0.5) seconds\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Lava\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (30)\n        change y by (-0.4)\n    end\n    repeat (30)\n        change y by (0.4)\n    end\nend\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Water\n\nwhen flag clicked\nhide\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    repeat (30)\n        change y by (-0.4)\n    end\n    repeat (30)\n        change y by (0.4)\n    end\nend\n\n@Trampoline\n\nwhen I receive [start v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Speed Ups\n\nwhen I receive [start v]\ngo to [front v] layer\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\n@Text\n\nwhen I receive [start v]\ngo to x: (0) y: (0)\nshow\nswitch costume to (1 v)\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide\n\nset [level v] to [9]\n\n@Intro\n\ndefine Circle Spiral at X: (x) Y: (y) Amount: (amnt) Speed: (speed)\npoint in direction (90)\nset [circlex v] to (x)\nset [circley v] to (y)\nset [clone id v] to [CircleSpiral]\nset [circleidx v] to (speed)\nrepeat (amnt)\n    create clone of (_myself_ v)\n    turn right ((360) / (amnt)) degrees\nend\n\ndefine Line Explosion at x: (x) y: (y) Amount (amt) Speed: (speed)\npoint in direction (90)\nset [linex v] to (x)\nset [liney v] to (y)\nset [clone id v] to [LineExplosion]\nset [idx v] to (speed)\nrepeat (amt)\n    turn right ((360) / (amt)) degrees\n    create clone of (_myself_ v)\nend\n\ndefine Smooth glide to x: (x:) y: (y) size: (size) direction (direction) smoothness: (speed)\nrepeat until <<(round (x position)) = (x:)> and <<(round (y position)) = (y)> and <<(round (size)) = (size)> and <(round (direction)) = (direction)>>>>\n    change x by (((x:) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    change size by (((size) - (size)) / (speed))\n    turn right (((direction) - (direction)) / (speed)) degrees\nend\n\ndefine Clone ID (id)\nset [clone id v] to (id)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Clone ID) = [1/1]> then\n    wait ((1/1 Delay) / (10)) seconds\n    point in direction (90)\n    switch costume to (1/1 v)\n    set size to (10) %\n    show\n    set [1/1 cs v] to [0]\n    repeat (18)\n        change size by (((1/1 Size) - (size)) / (5))\n        set [fisheye v] effect to (([ceiling v] of (([tan v] of (1/1 CS) ) * (68.6)) ) * (1/1 CS))\n        change [1/1 cs v] by (5)\n    end\n    repeat (4)\n        change size by (((1/1 Size) - (size)) / (5))\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\ndefine 1/1 Circle Shockwave at x: (x) y: (y) size: (size)\nset [1/1 delay v] to [0]\nset [1/1 size v] to (size)\ngo to x: (x) y: (y)\nClone ID [1/1]\n\ndefine Set Effects: Color: (color) Brightness: (brightness) Ghost: (ghost) Pixelated: (pixelated)\nclear graphic effects\nset [color v] effect to (color)\nset [brightness v] effect to (brightness)\nset [ghost v] effect to (ghost)\nset [pixelate v] effect to (pixelated)\n\ndefine Spread Particles Amount: (amount)\nrepeat (amount)\n    Clone ID [Particles]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Particles]> then\n    point in direction (pick random (-179) to (180))\n    go to x: (0) y: (0)\n    switch costume to (particle v)\n    set size to (100) %\n    set [particles x v] to (pick random (9) to (15))\n    show\n    repeat until <touching (_edge_ v)?>\n        move (Particles X) steps\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine 1/4 Circle Shockwave at x: (x) y: (y) size: (size)\nset [1/4 delay v] to [0]\nset [1/4 size v] to (size)\npoint in direction (90)\ngo to x: (x) y: (y)\nrepeat (2)\n    repeat (2)\n        Clone ID [1/4]\n        change [1/4 delay v] by (1)\n        turn right (180) degrees\n    end\n    turn right (90) degrees\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1/4]> then\n    wait ((1/4 Delay) / (10)) seconds\n    switch costume to (1/4 v)\n    set size to (10) %\n    show\n    set [1/4 cs v] to [0]\n    repeat (18)\n        change size by (((1/4 Size) - (size)) / (5))\n        set [fisheye v] effect to (([ceiling v] of (([tan v] of (1/4 CS) ) * (68.6)) ) * (1/4 CS))\n        change [1/4 cs v] by (5)\n    end\n    repeat (4)\n        change size by (((1/4 Size) - (size)) / (5))\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\ndefine 1/8 Circle Shockwave at x: (x) y: (y) size: (size)\nset [1/8 size v] to (size)\npoint in direction (90)\nset [1/8 delay v] to [0]\ngo to x: (x) y: (y)\npoint in direction (90)\nrepeat (2)\n    repeat (4)\n        Clone ID [1/8]\n        turn right (90) degrees\n    end\n    turn right (45) degrees\n    change [1/8 delay v] by (1)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1/8]> then\n    wait ((1/8 Delay) / (10)) seconds\n    switch costume to (1/8 v)\n    set size to (10) %\n    show\n    set [1/8 cs v] to [0]\n    repeat (18)\n        change size by (((1/8 Size) - (size)) / (5))\n        set [fisheye v] effect to (([ceiling v] of (([tan v] of (1/8 CS) ) * (68.6)) ) * (1/8 CS))\n        change [1/8 cs v] by (5)\n    end\n    repeat (4)\n        change size by (((1/8 Size) - (size)) / (5))\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\n\ndefine Shake: Start X (startx) Start Y: (starty) Start Size: (start size) End Size: (end size)\nset size to (start size) %\nrepeat (50)\n    go to x: (([sin v] of ((timer) * ((startx) * (100))) ) * (((size) - (end size)) / (10))) y: (([sin v] of ((timer) * ((starty) * (100))) ) * (((size) - (end size)) / (10)))\n    change size by (((end size) - (size)) / (10))\nend\n\ndefine Bounce Effect from X: (x) Y: (y)\ngo to x: (x) y: (y)\nset size to (0) %\nset [bounce v] to [20]\nset [bounce x v] to [0]\nset [bounce y v] to [0]\nset [bounce rotate v] to [0]\nrepeat (40)\n    set [bounce v] to (((Bounce) * (.8)) + (((100) - (size)) / (20)))\n    change size by (Bounce)\n    set [bounce x v] to (((Bounce X) * (.8)) + (((0) - (x position)) / (10)))\n    change x by (Bounce X)\n    set [bounce y v] to (((Bounce X) * (.8)) + (((0) - (y position)) / (10)))\n    change y by (Bounce Y)\n    set [bounce rotate v] to (((Bounce Rotate) * (.8)) + (((0) - (direction)) / (10)))\n    turn right (Bounce Rotate) degrees\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Rotator]> then\n    set rotation style [all around v]\n    switch costume to (rotator13 v)\n    go to x: (0) y: (0)\n    set [turn v] to [0]\n    point in direction (90)\n    set size to (100) %\n    show\n    repeat (6)\n        turn left (Turn) degrees\n        switch costume to ((costume [number v]) - (1))\n        change [turn v] by (.3)\n    end\n    repeat (6)\n        turn left (Turn) degrees\n        switch costume to ((costume [number v]) - (1))\n        change [turn v] by (.8)\n    end\n    repeat (7)\n        turn left (Turn) degrees\n        change [turn v] by (2)\n    end\n    turn left (5) degrees\n    repeat (8)\n        turn left (Turn) degrees\n        change [turn v] by (-1.9)\n    end\n    repeat (2)\n        turn left (Turn) degrees\n        change [turn v] by (-1)\n    end\n    repeat (7)\n        turn left (Turn) degrees\n        change [turn v] by (-.5)\n    end\n    set rotation style [left-right v]\n    point in direction (-90)\n    repeat (12)\n        next costume\n    end\n    delete this clone\nend\n\ndefine Rotator\nClone ID [Rotator]\n\ndefine Stars Amount: (amount)\nrepeat (amount)\n    Clone ID [Stars]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [NormalParticles]> then\n    set rotation style [all around v]\n    point in direction (90)\n    turn right (pick random (0) to (360)) degrees\n    set size to (pick random (75) to (125)) %\n    set [brightness v] effect to (pick random (-50) to (50))\n    switch costume to (particle v)\n    set [i v] to (pick random (2) to (5))\n    set [velocity v] to (pick random (-12) to (12))\n    show\n    repeat until <(round (y position)) < [-170]>\n        change [i v] by (-0.3)\n        change y by (I)\n        move (Velocity) steps\n        set [velocity v] to ((Velocity) * (0.95))\n    end\n    delete this clone\nend\n\ndefine Normal Particles Amount: (amount)\nrepeat (amount)\n    Clone ID [NormalParticles]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Stars]> then\n    clear graphic effects\n    set [brightness v] effect to (100)\n    switch costume to (star1 v)\n    go to x: (0) y: (0)\n    point in direction (pick random (-180) to (180.))\n    set [i v] to (pick random (5) to (20))\n    set size to (pick random (50) to (134.)) %\n    show\n    repeat until <(round (I)) = (round (1))>\n        change [i v] by (((1) - (I)) / (pick random (2) to (30)))\n        move (I) steps\n        change size by (-2)\n    end\n    repeat (20)\n        switch costume to (join [Star] (pick random (1) to (4)))\n        change size by (-4)\n        change [ghost v] effect by (5)\n        move (I) steps\n    end\n    delete this clone\nend\n\ndefine Pinwheel Speed: (speed)\nset [pinwheel speed v] to (speed)\nClone ID [Pinwheel]\n\nwhen I start as a clone\nif <(Clone ID) = [Pinwheel]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (pinwheel v)\n    show\n    forever\n        turn right (Pinwheel Speed) degrees\n    end\nend\n\ndefine 360 Degree Turn\nrepeat (3)\n    turn right (33) degrees\nend\nrepeat (40)\n    turn right (((90) - (direction)) / (4)) degrees\nend\n\ndefine Switch LE\nClone ID [SwitchLE]\n\nwhen I start as a clone\nif <(Clone ID) = [SwitchLE]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (switch le 1 v)\n    show\n    repeat (3)\n        change [ghost v] effect by (-33)\n        next costume\n    end\n    repeat (16)\n        next costume\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [LineExplosion]> then\n    switch costume to (lineexplosion v)\n    go to x: (LineX) y: (LineY)\n    set size to (30) %\n    show\n    repeat (11)\n        move (IDX) steps\n        set [idx v] to ((IDX) * (1))\n        next costume\n    end\n    repeat (10)\n        move (IDX) steps\n        set [idx v] to ((IDX) * (1))\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [CircleSpiral]> then\n    switch costume to (circle v)\n    go to x: (CircleX) y: (CircleY)\n    set size to (30) %\n    show\n    repeat (23)\n        move (CircleIDX) steps\n        turn right (CircleIDX) degrees\n        set [circleidx v] to ((CircleIDX) * (1))\n    end\n    repeat (10)\n        move (CircleIDX) steps\n        turn right (CircleIDX) degrees\n        set [circleidx v] to ((CircleIDX) * (1))\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine Flash: Options: (1=full 2=top 3=bottom 4=right 5=left)\nif <(1=full 2=top 3=bottom 4=right 5=left) = [1]> then\n    switch costume to (full v)\n    Clone ID [Flash]\nelse\n    if <(1=full 2=top 3=bottom 4=right 5=left) = [2]> then\n        switch costume to (top v)\n        Clone ID [Flash]\n    else\n        if <(1=full 2=top 3=bottom 4=right 5=left) = [3]> then\n            switch costume to (bottom v)\n            Clone ID [Flash]\n        else\n            if <(1=full 2=top 3=bottom 4=right 5=left) = [4]> then\n                switch costume to (right v)\n                Clone ID [Flash]\n            else\n                switch costume to (left v)\n                Clone ID [Flash]\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Flash]> then\n    Set Effects: Color: [0] Brightness: [100] Ghost: [100] Pixelated: [0]\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    show\n    repeat (4)\n        change [ghost v] effect by (-25)\n    end\n    repeat (4)\n        change [ghost v] effect by (25)\n    end\nend\n\ndefine Frame Animation Size: (size) Speed: (speed) Costume: (costume)\nrepeat until <(round (size)) = (size)>\n    switch costume to (sizehack v)\n    change size by (((size) - (size)) / (speed))\n    switch costume to (costume)\nend\n\ndefine Gauge Explosion at X: (x) Y: (y) Amount: (amount) Speed: (speed)\npoint in direction (90)\nset [gaugex v] to (x)\nset [gaugey v] to (y)\nset [clone id v] to [Gauge]\nset [gaugeidx v] to (speed)\nrepeat (amount)\n    create clone of (_myself_ v)\n    turn right ((360) / (amount)) degrees\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Gauge]> then\n    switch costume to (gaugeexplosion v)\n    go to x: (GaugeX) y: (GaugeY)\n    set size to (50) %\n    show\n    repeat (9)\n        move (GaugeIDX) steps\n        set [gaugeidx v] to ((GaugeIDX) * (.999))\n        next costume\n        wait (.0325) seconds\n    end\n    repeat (10)\n        set [gaugeidx v] to ((GaugeIDX) * (.999))\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\ndefine LightRay Amount: (amount)\nrepeat (amount)\n    Clone ID [LightRay]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [LightRay]> then\n    go to x: (0) y: (0)\n    point in direction (pick random (-179) to (180))\n    switch costume to (l13 v)\n    set size to (200) %\n    show\n    repeat (50)\n        change [ghost v] effect by (pick random (1) to (3))\n        switch costume to (join [l] (pick random (9) to (10)))\n    end\n    delete this clone\nend\n\ndefine Move (# steps) steps  in run without screen refresh\nmove (# steps) steps\n\ndefine TileX\nswitch costume to (tile v)\nset x to (-225)\nrepeat (13)\n    Clone ID [Tiles]\n    change x by (40)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Tiles]> then\n    point in direction (90)\n    set size to (0) %\n    show\n    Smooth glide to x: (x position) y: (y position) size: [100] direction (direction) smoothness: [8]\nend\n\ndefine Tiles\nset y to (165)\nrepeat (10)\n    TileX\n    change y by (-40)\nend\n\ndefine Start Intro\nbroadcast (wolther v)\n\nwhen flag clicked\nStart Intro\n\nwhen I receive [wolther v]\nplay sound [Panda Eyes - Radiate v] until done\n\nwhen I receive [wolther v]\nClone ID [Top]\nClone ID [Bottom]\nClone ID [C1]\nwait (.05) seconds\nClone ID [C2]\nClone ID [Text]\n\nwhen I start as a clone\nif <(Clone ID) = [Top]> then\n    Set Effects: Color: [0] Brightness: [-25] Ghost: [0] Pixelated: [0]\n    switch costume to (top v)\n    set size to (100) %\n    go to x: (5000) y: (0)\n    point in direction (90)\n    show\n    Smooth glide to x: [0] y: [0] size: [100] direction [90] smoothness: [4]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Bottom]> then\n    wait (.3) seconds\n    Set Effects: Color: [0] Brightness: [-25] Ghost: [0] Pixelated: [0]\n    switch costume to (bottom v)\n    set size to (100) %\n    go to x: (-5000) y: (0)\n    point in direction (90)\n    show\n    Smooth glide to x: [0] y: [0] size: [100] direction [90] smoothness: [4]\nend\n\ndefine pos\ngo to x: (item (T) of [grid v]) y: (item ((T) + (1)) of [grid v])\n\nwhen I start as a clone\nif <(Clone ID) = [test]> then\n    show\n    forever\n        pos\n    end\nend\n\ndefine Make a clone (x) (y)\nchange [t v] by (2)\nadd (x) to [grid v]\nadd (y) to [grid v]\nClone ID [test]\n\ndefine setup all\nset [t v] to [-1]\ndelete all of [grid v]\nMake a clone [-250] [0]\nMake a clone [0] [0]\nMake a clone [250] [0]\n\nwhen I start as a clone\nif <(Clone ID) = [C1]> then\n    wait (.6) seconds\n    Set Effects: Color: [0] Brightness: [100] Ghost: [0] Pixelated: [0]\n    switch costume to (circle v)\n    set size to (100) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    Frame Animation Size: [2200] Speed: [10] Costume: [55]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [C2]> then\n    wait (.6) seconds\n    Set Effects: Color: [0] Brightness: [-100] Ghost: [0] Pixelated: [0]\n    switch costume to (circle v)\n    set size to (100) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    Frame Animation Size: [2200] Speed: [10] Costume: [55]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (.8) seconds\n    Set Effects: Color: [0] Brightness: [0] Ghost: [0] Pixelated: [0]\n    switch costume to (text v)\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    Smooth glide to x: [0] y: [0] size: [100] direction [90] smoothness: [4]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (1.75) seconds\n    Shake: Start X [9] Start Y: [11] Start Size: [250] End Size: [100]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (6.91) seconds\n    Shake: Start X [9] Start Y: [11] Start Size: [250] End Size: [100]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (3.5) seconds\n    Shake: Start X [9] Start Y: [11] Start Size: [250] End Size: [100]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (5.21) seconds\n    360 Degree Turn\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (5.21) seconds\n    Shake: Start X [9] Start Y: [11] Start Size: [250] End Size: [100]\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    wait (8.6) seconds\n    Shake: Start X [9] Start Y: [11] Start Size: [250] End Size: [100]\nend\n\nwhen flag clicked\nwait (1.75) seconds\nSet Effects: Color: [0] Brightness: [100] Ghost: [0] Pixelated: [0]\nrepeat (9)\n    Clone ID [Chev]\n    wait (.75) seconds\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    forever\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Chev]> then\n    set size to (0) %\n    switch costume to (chevron3 v)\n    show\n    100\n    Frame Animation Size: [200] Speed: [5] Costume: [94]\n    Frame Animation Size: [400] Speed: [5] Costume: [94]\n    delete this clone\nend\n\ndefine 100\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\n\nwhen flag clicked\nhide\nwait (1.75) seconds\n1/1 Circle Shockwave at x: [100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [-100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [0] y: [100] size: [200]\n1/1 Circle Shockwave at x: [0] y: [-100] size: [200]\n\nwhen I start as a clone\nif <(Clone ID) = [Text]> then\n    delete all of [ccd v]\n    delete all of [ccx v]\n    delete all of [ccy v]\n    forever\n        add (direction) to [ccd v]\n        add (x position) to [ccx v]\n        add (y position) to [ccy v]\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Chev]> then\n    forever\n        go to x: ((item (length of [ccx v]) of [ccx v]) * (2)) y: ((item (length of [ccy v]) of [ccy v]) * (2))\n        point in direction (item (length of [ccd v]) of [ccd v])\n    end\nend\n\nwhen flag clicked\nhide\nwait (5.21) seconds\n1/1 Circle Shockwave at x: [100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [-100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [0] y: [100] size: [200]\n1/1 Circle Shockwave at x: [0] y: [-100] size: [200]\nLine Explosion at x: [100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [-100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [100] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [-100] Amount [20] Speed: [5]\n\nwhen flag clicked\nhide\nwait (3.75) seconds\nLine Explosion at x: [100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [-100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [100] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [-100] Amount [20] Speed: [5]\n\nwhen flag clicked\nhide\nwait (6.91) seconds\nLine Explosion at x: [100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [-100] y: [0] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [100] Amount [20] Speed: [5]\nLine Explosion at x: [0] y: [-100] Amount [20] Speed: [5]\n\nwhen flag clicked\nhide\nwait (8.6) seconds\n1/1 Circle Shockwave at x: [100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [-100] y: [0] size: [200]\n1/1 Circle Shockwave at x: [0] y: [100] size: [200]\n1/1 Circle Shockwave at x: [0] y: [-100] size: [200]\n\nwhen I start as a clone\nwait (11) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Start v)\ndelete this clone\n\nwhen I receive [woltherend v]\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\ngo to [front v] layer\ngo to x: (0) y: (0)\nset volume to (100) %\n\n