SPACE || A 360° PLATFORMER // Mobile Friendly! #All #Games #Art

Instructions: Uh, guys I know it's generic and has LOTS of bugs coz I made it when I was new to Scratch, so please don't hate. Also, I didn't copy it from anywhere, that's why there're lots of bugs coz I made them myself and I was not that good at coding.\nHey guys!!\nHere's a sorta Part 2 of the previous Space Platformer!! Also, Tysm for 200+!! <33 So, to celebrate that and also as a contest entry for @chipm0nk 's contest, here's..\n                  SPACE || A 360° PLATFORMER\n\nINSTRUCTIONS\n> Use arrow keys to move, jump and duck or tap on mobile.\n> Avoid spikes and the blue - ey stuff\n> Get to the portal at the end of each level to go to the NEXT level!\n\nFEATURES\n> Difficulty levels [Easy is pretty boring]\n> Settings [You can adjust a couple of things :) ]\n> Instructions [Click the ? ]\n> Two good easter eggs and one bad one! [Spoilers below]\n> An extra mouse pointer! =]\n\nThat's all guys! If you like it don't forget to leave a star, heart or maybe a follow? =]\n\nThanks again for 200+ <33\n~ @BOOKWORM-256\n\nComment: Your favourite planet!\n\nLinks to previous SPACE projects:\n> SPACE - 360° PLATFORMER Beta:\nhttps://scratch.mit.edu/projects/585403747/\n> Lost in Space [Animation]:\nhttps://scratch.mit.edu/projects/588739205/\n\nSPOILERS:\n\n> Click on the title.\n> When you open the settings, click on the B-256\n> Type in "EASTEREGG" and guess what? I didn't use Makey Makey!

@Stage\n\nwhen flag clicked\nforever\n    if <key (e v) pressed?> then\n        wait until <key (a v) pressed?>\n        if <key (a v) pressed?> then\n            wait until <key (s v) pressed?>\n            if <key (s v) pressed?> then\n                wait until <key (t v) pressed?>\n                if <key (t v) pressed?> then\n                    wait until <key (e v) pressed?>\n                    if <key (e v) pressed?> then\n                        wait until <key (r v) pressed?>\n                        if <key (r v) pressed?> then\n                            ask [You found the 'BAD' easter egg!! Now see what happens!] and wait\n                            stop [all v]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@HELLO!\n\nwhen flag clicked\nforever\n    if <(username) = [BOOKWORM-256]> then\n        if <key (space v) pressed?> then\n    end\nend\n\n@LEVEL\n\nwhen flag clicked\nhide variable [!final time v]\nset [jumps v] to [0]\nset [~time v] to [0]\nhide\nset [time physica v] to [0]\n\ndefine BECOME BIG (size)\nswitch costume to (hack v)\nset size to (size) %\nif <(DIFFICULTY) = [easy]> then\n    switch costume to (level 1easy v)\n    set [level v] to [1]\nelse\n    if <(DIFFICULTY) = [medium]> then\n        switch costume to (level 1med v)\n        set [level v] to [1]\n    else\n        if <(DIFFICULTY) = [hard]> then\n            switch costume to (level 1hard v)\n            set [level v] to [1]\n        end\n    end\nend\n\nwhen I receive [respwn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [y vel v] to [0]\nset [d vel v] to [0]\nswitch costume to (costume [number v])\n\nwhen I receive [start game v]\nshow\nbroadcast (RESPWN v)\nBECOME BIG [200]\nset [~time v] to [0]\nset [time physica v] to [1]\nforever\n    change [y vel v] by (1)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [d vel v] by (-0.2)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [d vel v] by (0.2)\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 <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [y vel v] to [-15]\n            change [jumps v] by (1)\n        end\n    end\n    change y by (-1)\nend\n\nwhen I receive [show homescreen v]\nhide\n\nwhen I receive [level 2 v]\nif <(DIFFICULTY) = [easy]> then\n    switch costume to (level 2easy v)\n    broadcast (RESPWN v)\nelse\n    if <(DIFFICULTY) = [medium]> then\n        switch costume to (level 2med v)\n        broadcast (RESPWN v)\n    else\n        if <(DIFFICULTY) = [hard]> then\n            switch costume to (level 2hard v)\n            broadcast (RESPWN v)\n        else\n            broadcast (ERROR v)\n        end\n    end\nend\nset [level v] to [2]\n\nwhen flag clicked\nforever\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [level 3 v]\nif <(DIFFICULTY) = [easy]> then\n    switch costume to (level 3easy v)\n    broadcast (RESPWN v)\nelse\n    if <(DIFFICULTY) = [medium]> then\n        switch costume to (level 3med v)\n        broadcast (RESPWN v)\n    else\n        if <(DIFFICULTY) = [hard]> then\n            switch costume to (level 3hard v)\n            broadcast (RESPWN v)\n        else\n            broadcast (ERROR v)\n        end\n    end\nend\nset [level v] to [3]\n\nwhen I receive [finish!!! v]\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <(TIME physica) = [1]> then\n        repeat until <(TIME physica) = [2]>\n            change [~time v] by (1)\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [finish!!! v]\nset [intro ex v] to [2]\nset [!final time v] to (join (~Time) [ second\(s\) !])\nshow variable [!final time v]\n\nwhen I receive [!!continue v]\nset [time physica v] to [0]\n\nwhen I receive [show homescreen v]\nset [time physica v] to [0]\n\nwhen I receive [show homescreen v]\nset [time physica v] to [0]\n\nwhen I receive [!!continue v]\nhide variable [!final time v]\n\n@PLAYER\n\nwhen flag clicked\nset [costume v] to [0]\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [respwn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <<touching color (#d2d2d2)?> or <touching color (#beeaef)?>> then\n        broadcast (RESPWN v)\n    end\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    if <key (down arrow v) pressed?> then\n        if <(costume) = [0]> then\n            switch costume to (costume2 v)\n        else\n            if <(costume) = [2]> then\n                switch costume to (costume4 v)\n            end\n        end\n    else\n        if <(costume) = [0]> then\n            switch costume to (costume1 v)\n        else\n            if <(costume) = [2]> then\n                switch costume to (costume3 v)\n            end\n        end\n    end\nend\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [show homescreen v]\nhide\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#cb00ff)?> then\n        broadcast (LEVEL 2 v)\n    end\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#004bff)?> then\n        broadcast (level 3 v)\n    end\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#00ffff)?> then\n        broadcast (FINISH!!! v)\n    end\n    change y by (5)\nend\n\nwhen I receive [eeeeeeeaster egg2 v]\nset [costume v] to [2]\n\n@PLAY\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (START GAME v)\n    end\nend\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [show homescreen v]\nshow\n\nwhen I receive [hide homescreen v]\nhide\n\n@HOME\n\nwhen flag clicked\nhide\ngo to x: (202) y: (143)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (SHOW HOMESCREEN v)\n    end\nend\n\nwhen I receive [show homescreen v]\nhide\n\nwhen I receive [start game v]\ngo to x: (202) y: (143)\nshow\n\n@DIFFICULTY\n\nwhen flag clicked\nshow\nswitch costume to (easy v)\ngo to x: (0) y: (-80)\nforever\n    if <(costume [number v]) = [1]> then\n        set [difficulty v] to [EASY]\n    else\n        if <(costume [number v]) = [2]> then\n            set [difficulty v] to [MEDIUM]\n        else\n            if <(costume [number v]) = [3]> then\n                set [difficulty v] to [HARD]\n            else\n                set [difficulty v] to [???]\n            end\n        end\n    end\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen I receive [hide homescreen v]\nhide\n\nwhen I receive [show homescreen v]\nshow\n\nwhen I receive [start game v]\nhide\n\n@HELP\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (30)\n    else\n        set [brightness v] effect to (0)\n        set size to (100) %\n    end\nend\n\nwhen I receive [help!!! v]\ngo to [back v] layer\nswitch costume to (costume2 v)\n\nwhen I receive [hide homescreen v]\nhide\n\nwhen I receive [show homescreen v]\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [no help v]\nswitch costume to (costume1 v)\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (HELP!!! v)\nelse\n    if <(costume [number v]) = [2]> then\n        broadcast (no help v)\n    end\nend\n\n@INSTRUCTIONS\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [help!!! v]\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [slide 1 v]\nswitch costume to (costume1 v)\n\nwhen I receive [no help v]\nhide\n\nwhen I receive [sld2 v]\nswitch costume to (costume2 v)\n\nwhen I receive [sld3 v]\nswitch costume to (costume3 v)\n\n@Particles\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\n\nwhen I start as a clone\ngo to [back v] layer\nwhatever guess blablabla\n\ndefine whatever guess blablabla\ngo to [back v] layer\ngo to x: (230) y: (pick random (-160) to (170))\npoint in direction (pick random (-70) to (-105))\nset size to (pick random (150) to (200)) %\nset [ghost v] to (pick random (6) to (16))\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\nswitch costume to (pick random (1) to (2))\nrepeat (5)\n    change [ghost v] effect by ((ghost) * (-1))\nend\nrepeat until <<(x position) < [-230]> or <<(y position) > [175]> or <(y position) < [-175]>>>\n    move (pick random (7) to (13)) steps\n    go to [front v] layer\n    turn left (pick random (-1) to (1)) degrees\nend\nrepeat (5)\n    change [ghost v] effect by (ghost)\nend\n\n@ERROR\n\nwhen flag clicked\nshow\ngo to [back v] layer\nset [ghost v] effect to (100)\n\nwhen I receive [error v]\nshow\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\n@SETTINGS\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [1]> then\n    broadcast (SETTINGS CLOSED v)\nelse\n    if <(costume [number v]) = [2]> then\n        broadcast (SETTINGS OPEN v)\n    else\n        broadcast (ERROR v)\n    end\nend\n\nwhen flag clicked\nshow\nbroadcast (INTRO'S FINISHED v)\nswitch costume to (costume1 v)\ngo to [back v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [intro's finished v]\ngo to [back v] layer\n\nwhen I receive [start game v]\ngo to [front v] layer\n\nwhen I receive [respwn v]\ngo to [front v] layer\n\n@SETTINGS BACK\n\nwhen flag clicked\nhide\n\nwhen I receive [settings closed v]\nhide\n\nwhen I receive [settings open v]\nshow\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    set [sfx v] to (round (costume [number v]))\nend\n\n@MUSIC\n\nwhen this sprite clicked\nnext costume\nif <(costume [number v]) = [1]> then\n    set volume to (0) %\nelse\n    if <(costume [number v]) = [2]> then\n        start sound [the rat which is fat of prelude song yeah! v]\n        set volume to (100) %\n    else\n        broadcast (ERROR v)\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nforever\n    play sound [the rat which is fat of prelude song yeah! v] until done\nend\n\nwhen I receive [settings closed v]\nhide\n\nwhen I receive [settings open v]\nshow\ngo to x: (-90) y: (116)\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\n@SFX\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (-90) y: (58)\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (110) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [settings closed v]\nhide\n\nwhen I receive [settings open v]\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [settings open v]\nshow\nif <(costume [number v]) = [1]> then\n    set [fpsssss whatever xd v] to [0]\nelse\n    if <(costume [number v]) = [2]> then\n        set [fpsssss whatever xd v] to [1]\n    else\n        if <(costume [number v]) = [3]> then\n            set [fpsssss whatever xd v] to [2]\n        else\n            broadcast (ERROR v)\n        end\n    end\nend\n\n@CHAT\n\nwhen [c v] key pressed\nif <(chat) = [0]> then\n    hide list [chat v]\n    set [chat v] to [1]\nelse\n    if <(chat) = [1]> then\n        show list [chat v]\n        set [chat v] to [0]\n    else\n        broadcast (ERROR v)\n    end\nend\n\nwhen [t v] key pressed\nif <(chat) = [1]> then\n    ask [Type in what you wanna say!:] and wait\n    add (join (username) (join [: ] (answer))) to [chat v]\nelse\n    if <(chat) = [0]> then\n        ask [Hey!!] and wait\n    else\n        broadcast (ERROR v)\n    end\nend\n\nwhen flag clicked\ndelete all of [chat v]\nadd (join (username) (join [: Hey, ] (join (username) [ here! I'm playing this game!]))) to [chat v]\nadd (join [BOOKWORM-256: Hey ] (join (username) [! I hope you like my game!])) to [chat v]\nadd [BOOKWORM-256: If you like my game, do considering to leave a a heart, star or maybe a follow!] to [chat v]\nshow list [chat v]\nset [chat v] to [0]\n\n@HELP SLIDES SCROLL\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\ngo to x: (0) y: (-148)\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (slide 1 v)\n    else\n        if <(costume [number v]) = [2]> then\n            broadcast (sld2 v)\n        else\n            if <(costume [number v]) = [3]> then\n                broadcast (sld3 v)\n            else\n                broadcast (ERROR v)\n            end\n        end\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\nwhen I receive [help!!! v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (slide 1 v)\n    else\n        if <(costume [number v]) = [2]> then\n            broadcast (sld2 v)\n        else\n            if <(costume [number v]) = [3]> then\n                broadcast (sld3 v)\n            else\n                broadcast (ERROR v)\n            end\n        end\n    end\nend\n\nwhen I receive [no help v]\nhide\n\n@Love & Fav\n\nwhen flag clicked\nset [costume v] to [0]\nhide\nforever\n    wait (pick random (30) to (50)) seconds\n    switch costume to (costume1 v)\n    go to x: (0) y: (50)\n    show\n    go to [front v] layer\n    start sound [pop v]\n    repeat (9)\n        change y by (6)\n    end\n    repeat (5)\n        change y by (-3)\n    end\n    repeat (5)\n        change y by (1)\n    end\n    wait (2) seconds\n    repeat (15)\n        change y by (-7)\n    end\n    hide\nend\n\nwhen I receive [you win! v]\nhide\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\n    broadcast (Thanks v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@arrow\n\nwhen flag clicked\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\n    go to (mouse-pointer v)\nend\n\n@header\n\nwhen flag clicked\nshow\ngo to x: (0) y: (130)\ngo to [back v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (115) %\n        wait until <not <mouse down?>>\n        set size to (100) %\n        broadcast (easterrrrregg v)\n    end\nend\n\nwhen I receive [show homescreen v]\nshow\n\nwhen I receive [start game v]\nhide\n\n@notiff\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen I receive [easterrrrregg v]\ngo to [front v] layer\nswitch costume to (costume1 v)\nshow\nwait (2) seconds\nhide\n\nwhen I receive [eeeeeeeaster egg2 v]\ngo to [front v] layer\nswitch costume to (costume2 v)\nshow\nwait (2) seconds\nhide\n\n@sign\n\nwhen flag clicked\nhide\n\nwhen I receive [settings open v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <mouse down?>>\n        broadcast (eeeeeeeaster egg2 v)\n    end\nend\n\nwhen I receive [settings closed v]\nhide\n\n@game finish back\n\nwhen flag clicked\nhide\n\nwhen I receive [finish!!! v]\nshow\ngo to x: (0) y: (0)\nif <(costume) = [0]> then\n    switch costume to (costume1 v)\nelse\n    if <(costume) = [2]> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen I receive [!!continue v]\nhide\n\n@okay...\n\nwhen flag clicked\nhide\n\nwhen I receive [finish!!! v]\nshow\ngo to x: (-57) y: (-139)\ngo to [front v] layer\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        broadcast (!!continue v)\n        set [!final time v] to [0]\n        set [~time v] to [0]\n    end\n    if <touching (mouse-pointer v)?> then\n        set size to (90) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [!!continue v]\nhide\nbroadcast (SHOW HOMESCREEN v)\n\n@cross\n\nwhen this sprite clicked\nbroadcast (show thumb v)\nstop [all v]\n\nwhen flag clicked\nhide\n\nwhen I receive [finish!!! v]\ngo to x: (53) y: (-139)\nshow\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (90) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen I receive [!!continue v]\nhide\n\n@intro\n\ndefine Smooth Glide | x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> = <(round (y position)) = (round (y))>>\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\nend\ngo to x: (x) y: (y)\n\ndefine Grow | Size (size) speed (speed)\nrepeat until <(round (size)) = (round (size))>\n    change size by (((size) - (size)) / (speed))\nend\nset size to (size) %\n\nwhen flag clicked\nset [end v] to [0]\nhide\nset size to (100) %\nclear graphic effects\nset [sprite7: cloneid v] to [BACK]\ncreate clone of (_myself_ v)\nset [sprite7: cloneid v] to [NAME]\ncreate clone of (_myself_ v)\nset [sprite7: cloneid v] to [END]\ncreate clone of (_myself_ v)\nset [sprite7: cloneid v] to [SHOCKWAVES]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(Sprite7: CloneID) = [BACK]> then\n    show\n    switch costume to (blank v)\n    set size to (250) %\n    switch costume to (back v)\n    set [direction v] to [0]\n    go to [back v] layer\n    forever\n        point in direction (((([tan v] of (Direction) ) * (5)) - (25)) + (90))\n        change [direction v] by (3)\n    end\nend\n\nwhen I start as a clone\nif <(Sprite7: CloneID) = [NAME]> then\n    show\n    switch costume to (name v)\n    go to [front v] layer\n    set size to (200) %\n    go to x: (-245) y: (0)\n    Smooth Glide | x: [0] y: [0] speed: [8.5]\n    go to x: (245) y: (0)\n    Smooth Glide | x: [0] y: [0] speed: [8.5]\n    set size to (100) %\n    Grow | Size [250] speed [7]\n    wait (1) seconds\n    set [end v] to [1]\n    Grow | Size [-100] speed [7]\nend\n\nwhen I start as a clone\nwait until <(END) = [1]>\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(Sprite7: CloneID) = [SHOCKWAVES]> then\n    show\n    switch costume to (costume1 v)\n    set size to (100) %\n    go to [front v] layer\n    go [backward v] (1) layers\n    repeat until <(END) = [1]>\n        switch costume to (costume1 v)\n        clear graphic effects\n        show\n        set size to (0) %\n        repeat (5)\n            change size by (((250) - (size)) / (5))\n        end\n        repeat (7)\n            change size by (((250) - (size)) / (5))\n            change [ghost v] effect by (10)\n        end\n        hide\n        wait (0.5) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [ADD SOUND HERE v] until done\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\n@THUMBNAIL\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [show thumb v]\nforever\n    go to [front v] layer\n    set [ghost v] effect to (0)\nend\n\nwhen [timer v] > (0)\nshow\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    set [ghost v] effect to (100)\nend\n\n