Hard Platformer


@Stage\n\nwhen I receive [play song v]\nstop all sounds\nplay sound (song number) until done\nbroadcast (Next song v)\n\nwhen I receive [end loading v]\nset [song number v] to [1]\nbroadcast (Play song v)\n\nwhen I receive [previous song v]\nchange [song number v] by (-1)\nbroadcast (Play song v)\n\nwhen [j v] key pressed\nbroadcast (previous song v)\n\nwhen [m v] key pressed\nbroadcast (Play song v)\n\nwhen I receive [next song v]\nchange [song number v] by (1)\nbroadcast (Play song v)\n\nwhen I receive [stop v]\nstop [other scripts in sprite v]\nstop all sounds\n\nwhen [n v] key pressed\nbroadcast (stop v)\n\nwhen [k v] key pressed\nbroadcast (Next song v)\n\n@Blank\n\n@player\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\nwhen flag clicked\nset size to (50) %\nset rotation style [left-right v]\nshow\nset [speed y v] to [0]\nset [falling? v] to [10]\nforever\n    if <(Pause) = [0]> then\n        switch costume to (hit box!!!! v)\n        change [speed y v] by (-1)\n        change y by (speed y)\n        Touch Ground <(speed y) > [0]>\n        if <(wall jump) > [0]> then\n            change [wall jump v] by (-1)\n        else\n            set [speed x v] to ((speed x) * (0.7))\n            if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n                change [speed x v] by (-1.5)\n            end\n            if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n                change [speed x v] by (1.5)\n            end\n        end\n        if <(speed x) < [-0.5]> then\n            Walk [-90] (speed x)\n        else\n            if <(speed x) > [0.5]> then\n                Walk [90] (speed x)\n            else\n                set [frame v] to [0]\n            end\n        end\n        if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(falling?) < [3]>> then\n            set [speed y v] to [12]\n        end\n        if <(y position) < [-179]> then\n            go to x: (-192) y: (-130)\n            set [speed y v] to [0]\n        end\n    end\nend\n\ndefine Touch Ground <up?>\nchange [falling? v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <([abs v] of (speed) ) > [3]>> then\n        if <(wall jump) = [0]> then\n            set [speed x v] to ((-1.2) * (speed))\n            set [speed y v] to [11]\n            set [falling? v] to [6]\n            set [wall jump v] to [15]\n        end\n    else\n        set [speed x v] to [0]\n    end\nend\nset [slope v] to [0]\n\nwhen flag clicked\nhide\nset [color v] effect to (0)\nswitch costume to (effect v)\nhide variable [timer v]\nhide variable [death count v]\n\nwhen I receive [start game v]\ngo to x: (-192) y: (-132)\nforever\n    Detect danger\nend\n\nwhen I receive [start game v]\nswitch backdrop to (blue v)\nshow\nforever\n    if <touching (portal v)?> then\n        if <(level) = [5]> then\n            broadcast (You Beat The Game! v) and wait\n            stop [all v]\n        end\n        broadcast (teleport v)\n        go to x: (-166) y: (-137)\n    end\nend\n\ndefine Detect danger\nif <touching (danger v)?> then\n    change [death count v] by (1)\n    go to x: (-192) y: (-132)\nend\n\nwhen I receive [start game v]\nshow variable [☁ high score v]\nshow variable [death count v]\nshow variable [level v]\nshow variable [timer v]\nset [timer v] to [0]\nforever\n    if <(Pause) = [0]> then\n        wait (0.1) seconds\n        change [timer v] by (0.1)\n    end\nend\n\nwhen flag clicked\nset [death count v] to [0]\n\nwhen I receive [start game v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [thumb nail v]\nhide variable [death count v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [☁ high score v]\nhide variable [present high score v]\n\nwhen I receive [you beat the game! v]\nhide variable [timer v]\nhide variable [level v]\nhide variable [death count v]\nhide variable [☁ high score v]\n\nwhen flag clicked\nhide variable [☁ high score v]\n\nwhen [space v] key pressed\nnext costume\n\n@Ground\n\nwhen flag clicked\nset [level v] to [1]\nhide variable [level v]\nswitch costume to (lvl 1 v)\n\nwhen flag clicked\ngo to x: (36) y: (22)\nhide\n\nwhen I receive [next level v]\nnext costume\n\nwhen I receive [teleport v]\nchange [level v] by (1)\nif <(level) = [6]> then\n    set [level v] to [1]\nend\n\nwhen I receive [start game v]\nshow\n\n@portal\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\nforever\n    if <(level) = [1]> then\n        go to x: (217) y: (-128)\n    else\n        if <(level) = [2]> then\n            go to x: (210) y: (130)\n        else\n            if <(level) = [3]> then\n                go to x: (205) y: (143)\n            else\n                if <(level) = [4]> then\n                    go to x: (220) y: (-125)\n                else\n                    if <(level) = [5]> then\n                        go to x: (220) y: (-125)\n                    else\n                        broadcast (You Beat The Game! v)\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Danger\n\nwhen flag clicked\nswitch costume to (lvl1 v)\nhide\ngo to x: (36) y: (28)\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [teleport v]\nnext costume\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\n@Sprite2\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [next level screen v]\nhide\n\nwhen I receive [next level v]\nshow\n\n@You beat the game\n\nwhen flag clicked\nhide variable [present high score v]\nhide\n\nwhen I receive [you beat the game! v]\nshow\nswitch costume to (costume1 v)\ngo to [front v] layer\nhide variable [present high score v]\nif <(☁ High Score) > (Timer)> then\n    set [☁ high score v] to (Timer)\n    set [☁ high score v] to ((round ((☁ High Score) * (100))) / (100))\n    set [present high score v] to (☁ High Score)\n    show variable [present high score v]\n    switch costume to (costume2 v)\nend\nhide variable [☁ high score v]\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\n@Animate\n\nwhen I receive [teleport v]\nbroadcast (Next Level Screen v)\nhide variable [death count v]\nhide variable [level v]\nhide variable [timer v]\nhide variable [☁ high score v]\nshow\ngo to x: (0) y: (0)\nset [pause v] to [1]\nglide (1.5) secs to x: (490) y: (0)\nwait (1) seconds\nbroadcast (Next Level v)\nset [pause v] to [0]\nshow variable [☁ high score v]\nshow variable [death count v]\nshow variable [level v]\nshow variable [timer v]\nhide\n\nwhen flag clicked\nhide\nset [pause v] to [0]\n\n@Start Menu\n\nwhen flag clicked\nhide\n\nwhen I receive [start menu v]\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [go to start menu v]\nshow\n\nwhen I receive [end loading v]\nshow\n\n@Start Button\n\nwhen flag clicked\nhide\n\nwhen I receive [start menu v]\nshow\n\nwhen I receive [end loading v]\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (start 2 v)\n        if <mouse down?> then\n            start sound [Click2-Sebastian-759472264 v]\n            broadcast (Start Game v)\n            hide\n        end\n    else\n        switch costume to (start 1 v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [end loading v]\nshow\n\nwhen I receive [control screen v]\nhide\n\nwhen I receive [go to start menu v]\nshow\n\n@Control button\n\nwhen flag clicked\nhide\n\nwhen I receive [go to start menu v]\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [control screen v]\nhide\n\nwhen I receive [end loading v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (control 2 v)\n        if <mouse down?> then\n            start sound [Click2-Sebastian-759472264 v]\n            broadcast (Control Screen v)\n        end\n    else\n        switch costume to (control 1 v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    stop [other scripts in sprite v]\nend\n\n@Exit Control Screen\n\nwhen I receive [control screen v]\nshow\n\nwhen I receive [control screen v]\ngo to [front v] layer\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (exit 2 v)\n        if <mouse down?> then\n            start sound [Click2-Sebastian-759472264 v]\n            broadcast (Go to start menu v)\n        end\n    else\n        switch costume to (exit 1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [go to start menu v]\nhide\n\nwhen I receive [start game v]\nforever\n    stop [other scripts in sprite v]\nend\n\n@Controls\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [go to start menu v]\nhide\n\nwhen I receive [control screen v]\nshow\n\n@Music icon\n\nwhen flag clicked\nhide\n\nwhen I receive [control screen v]\nhide\n\nwhen I receive [start menu v]\nshow\n\nwhen I receive [go to start menu v]\nshow\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [end loading v]\nshow\n\n@Sprite6\n\nwhen I receive [start game v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [next level screen v]\nhide\n\nwhen I receive [next level v]\nshow\n\n@Sprite5\n\nwhen flag clicked\nhide\n\nwhen I receive [control screen v]\nhide\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [start menu v]\nshow\n\nwhen I receive [go to start menu v]\nshow\n\nwhen I receive [end loading v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (skip button 1 v)\n    else\n        switch costume to (skip button 2 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Next song v)\n\n@Sprite7\n\nwhen flag clicked\nhide\n\nwhen I receive [control screen v]\nhide\n\nwhen I receive [start game v]\nhide\n\nwhen I receive [start menu v]\nshow\n\nwhen I receive [go to start menu v]\nshow\n\nwhen I receive [end loading v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (skip button 1 v)\n    else\n        switch costume to (skip button 2 v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    stop [other scripts in sprite v]\nend\n\nwhen this sprite clicked\nbroadcast (previous song v)\n\n@Sprite8\n\nwhen flag clicked\nset [pause v] to [0]\n\nwhen this sprite clicked\nif <(Pause) = [1]> then\n    set [pause v] to [0]\n    switch costume to (costume3 v)\nelse\n    set [pause v] to [1]\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [control screen v]\nhide\n\nwhen this sprite clicked\nnext costume\n\nwhen I receive [next level screen v]\nhide\n\nwhen I receive [next level v]\nshow\n\nwhen I receive [start game v]\nswitch costume to (play v)\n\n@Loading words\n\nwhen flag clicked\nhide\n\nwhen I receive [end intro v]\nshow\n\nwhen I receive [end loading v]\nhide\n\n@Loading\n\nwhen flag clicked\nhide\n\nwhen I receive [end intro v]\nshow\n\nwhen I receive [end intro v]\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nhide\nbroadcast (End loading v)\n\n@loading bar\n\nwhen flag clicked\nhide\n\nwhen I receive [end intro v]\nshow\n\nwhen I receive [end intro v]\nswitch costume to (costume1 v)\nwait (0.5) seconds\nswitch costume to (costume2 v)\nwait (0.5) seconds\nswitch costume to (costume3 v)\nwait (0.5) seconds\nswitch costume to (costume4 v)\nwait (0.5) seconds\nswitch costume to (costume5 v)\nwait (0.5) seconds\nswitch costume to (costume6 v)\nwait (0.5) seconds\nswitch costume to (costume7 v)\nwait (0.5) seconds\nswitch costume to (costume8 v)\nwait (0.5) seconds\nswitch costume to (costume9 v)\nwait (0.5) seconds\nswitch costume to (costume10 v)\nwait (0.5) seconds\nswitch costume to (costume11 v)\nwait (0.5) seconds\nswitch costume to (costume12 v)\nwait (0.5) seconds\nswitch costume to (costume13 v)\nwait (0.5) seconds\nswitch costume to (costume14 v)\nwait (0.5) seconds\nswitch costume to (costume15 v)\nwait (0.5) seconds\nswitch costume to (costume16 v)\nwait (0.5) seconds\nswitch costume to (costume17 v)\nwait (0.5) seconds\nswitch costume to (costume18 v)\nwait (0.5) seconds\nhide\nbroadcast (End loading v)\n\n@Thumb Nail\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nbroadcast (Thumb nail v)\nforever\n    stop all sounds\nend\n\n@Intro\n\nwhen I start as a clone\nif <(CLONE iD) = [Text]> then\n    switch costume to (text v)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (0) %\n    show\n    repeat (15)\n        change size by (((100) - (size)) / (5))\n    end\n    Chevron\n    change size by (50)\n    change [color v] effect by (25)\n    repeat (40)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [10]\n    end\n    Circ Chevron\n    set [i v] to [0]\n    repeat (15)\n        change [i v] by (2.5)\n        turn right (i) degrees\n    end\n    repeat (20)\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    Chevron\n    change size by (50)\n    change [color v] effect by (25)\n    repeat (40)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [8]\n    end\n    wait (0.75) seconds\n    change size by (30)\n    change [color v] effect by (25)\n    repeat (25)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [10]\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Shockwave2]> then\n    set [ghost v] effect to (0)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    set size to (1) %\n    switch costume to (shockwave 1 v)\n    repeat (22)\n        next costume\n        change size by (((400) - (size)) / (9))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n        change size by (((400) - (size)) / (9))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [pinwheel]> then\n    switch costume to (size hack small v)\n    go to x: (0) y: (0)\n    set size to (200) %\n    set [whirl v] effect to (50)\n    switch costume to (pinwheel v)\n    go to [back v] layer\n    show\n    repeat (160)\n        turn right (2) degrees\n    end\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Shockwave]> then\n    set [ghost v] effect to (0)\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    set size to (1) %\n    switch costume to (shockwave 1 v)\n    repeat (22)\n        next costume\n        change size by (((300) - (size)) / (9))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n        change size by (((300) - (size)) / (9))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Line Explosion]> then\n    show\n    go to x: (0) y: (0)\n    switch costume to (1 v)\n    go to [front v] layer\n    set [color v] effect to (0)\n    set size to (0) %\n    repeat (7)\n        next costume\n        change size by (((200) - (size)) / (4))\n    end\n    repeat (5)\n        change [ghost v] effect by (10)\n        next costume\n        change size by (((200) - (size)) / (4))\n        wait (.01) seconds\n    end\n    delete this clone\nend\n\ndefine Reset\nstop all sounds\nhide\nwait (.01) seconds\nstart sound [Calvin Harris - Outside ft v]\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (100) %\nreset timer\nset [clone id v] to [0]\n\nwhen flag clicked\nReset\nhide\nset [clone id v] to [Back]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nset [clone id v] to [Grid]\ncreate clone of (_myself_ v)\nset [clone id v] to [Text]\ncreate clone of (_myself_ v)\nset [clone id v] to [Line Explosion]\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nset [clone id v] to [Line Explosion2]\ncreate clone of (_myself_ v)\nset [clone id v] to [Line Explosion3]\ncreate clone of (_myself_ v)\nset [clone id v] to [Shockwave]\ncreate clone of (_myself_ v)\nwait (2) seconds\nset [clone id v] to [Line Explosion]\ncreate clone of (_myself_ v)\nwait (1.5) seconds\nset [clone id v] to [Line Explosion2]\ncreate clone of (_myself_ v)\nset [clone id v] to [Line Explosion3]\ncreate clone of (_myself_ v)\nwait (2) seconds\nset [clone id v] to [Line Explosion2]\ncreate clone of (_myself_ v)\nset [clone id v] to [Line Explosion3]\ncreate clone of (_myself_ v)\nset [clone id v] to [Shockwave]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [clone id v] to [Shockwave2]\ncreate clone of (_myself_ v)\n\ndefine Shake (#)\nchange size by (((100) - (size)) / (#))\n\nwhen I start as a clone\nif <(CLONE iD) = [Chevron]> then\n    switch costume to (chevron v)\n    show\n    set size to (0) %\n    repeat (30)\n        change size by (((60) - (size)) / (7))\n    end\n    repeat (30)\n        switch costume to (size hack v)\n        change size by (((260) - (size)) / (7))\n        switch costume to (chevron v)\n    end\n    repeat (30)\n        switch costume to (size hack v)\n        change size by (((360) - (size)) / (7))\n        switch costume to (chevron v)\n    end\n    delete this clone\nend\n\ndefine Chevron\nset [clone id v] to [Chevron]\ncreate clone of (_myself_ v)\nChevron2\n\nwhen I start as a clone\nif <(CLONE iD) = [Chevron2]> then\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (chevron v)\n    show\n    set size to (0) %\n    repeat (30)\n        change size by (((60) - (size)) / (7))\n    end\n    repeat (30)\n        switch costume to (size hack v)\n        change size by (((260) - (size)) / (7))\n        switch costume to (chevron v)\n    end\n    repeat (30)\n        switch costume to (size hack v)\n        change size by (((360) - (size)) / (7))\n        switch costume to (chevron v)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Back]> then\n    go to [back v] layer\n    switch costume to (background v)\n    show\n    set [ghost v] effect to (50)\n    repeat (10)\n        change [ghost v] effect by (-5)\n    end\n    wait until <(timer) > [9.5]>\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    broadcast (End Intro v)\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Grid]> then\n    switch costume to (grid v)\n    show\n    set [ghost v] effect to (0)\n    wait until <(timer) > [9.5]>\n    delete this clone\nend\n\nwhen I start as a clone\n\nif <(CLONE iD) = [Text]> then\n    switch costume to (text v)\n    go to [front v] layer\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (0) %\n    show\n    repeat (15)\n        change size by (((100) - (size)) / (5))\n    end\n    Chevron\n    change size by (50)\n    repeat (40)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [10]\n    end\n    Chevron\n    set [i v] to [0]\n    repeat (15)\n        change [i v] by (2.5)\n        turn right (i) degrees\n    end\n    repeat (20)\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    Chevron\n    change size by (50)\n    repeat (40)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [8]\n    end\n    wait (0.75) seconds\n    change size by (30)\n    repeat (25)\n        go to x: (([sin v] of ((1000) * (timer)) ) * (((size) - (100)) * (0.5))) y: (([sin v] of ((800) * (timer)) ) * (((size) - (100)) * (0.5)))\n        Shake [10]\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\ndefine Chevron2\nwait (1) seconds\nset [clone id v] to [Chevron2]\ncreate clone of (_myself_ v)\n\ndefine Comment // ()\nComment // [This is a possible one we can use.]\nComment // [I think a good idea may be to make 3 so we can get more people anticipating them!]\nComment // [Feel free to change anything, just make sure to make a copy of the project first by going to file and press save as copy]\nComment // [Do this so we have out original stuff just in case - Piggie :\)]\n\nwhen I start as a clone\nif <(CLONE iD) = [Line Explosion2]> then\n    show\n    go to x: (-240) y: (-15)\n    switch costume to (1 v)\n    go to [front v] layer\n    set [color v] effect to (0)\n    set size to (0) %\n    repeat (7)\n        next costume\n        change size by (((100) - (size)) / (4))\n    end\n    repeat (5)\n        change [ghost v] effect by (10)\n        next costume\n        change size by (((200) - (size)) / (4))\n        wait (0.01) seconds\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(CLONE iD) = [Line Explosion3]> then\n    show\n    go to x: (240) y: (15)\n    switch costume to (1 v)\n    go to [front v] layer\n    set [color v] effect to (0)\n    set size to (0) %\n    repeat (7)\n        next costume\n        change size by (((100) - (size)) / (4))\n    end\n    repeat (5)\n        change [ghost v] effect by (10)\n        next costume\n        change size by (((200) - (size)) / (4))\n        wait (0.01) seconds\n    end\n    delete this clone\nend\n\nrepeat (50)\n    change [ghost v] effect by (5)\nend\n\n