Soccer Ball A Platformer

Instructions: We got to 1000 views and 100 faves!!! Thanks everyone :)\nThis is my entree for the platformer contest!\nAll levels 100% possible!\n                                 Instructions\n-------------------------------------------------------------------------\nArrow keys or w,d,s, a to move, avoid spikes, if you get stuck press the redo button and if you can't beat a level press the skip button! If you are stuck on level 10 scroll all the way down for the secret way to beat it!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nScroll down more for a way to beat level 10 or just press h for an arrow to show you!\n\n\n\n\n\n\n\n\n\n\n\n\nWay to beat level 10:\nOn the floor, there is a secret hole that sends you to the next level!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    if <[10] = (✺LEVEL)> then\n        switch backdrop to (backdrop1 v)\n    end\n    if <[16] = (✺LEVEL)> then\n        switch backdrop to (backdrop2 v)\n    end\nend\n\n@Player\n\nwhen I receive [play v]\nset rotation style [all around v]\ngo to x: (-200) y: (-100)\nclear graphic effects\nshow\npoint in direction (90)\nset [my variable v] to [0]\nset [↓yv v] to [0]\nset [✺level v] to [1]\nReset\nforever\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [my variable v] by (1.5)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [my variable v] by (-1.5)\n    end\n    set [my variable v] to ((my variable) * (0.85))\n    change x by (my variable)\n    if <<touching (level v)?> or <touching (help v)?>> then\n        change y by (1)\n        if <<touching (level v)?> or <touching (help v)?>> then\n            change y by (1)\n            if <<touching (level v)?> or <touching (help v)?>> then\n                change y by (1)\n                if <<touching (level v)?> or <touching (help v)?>> then\n                    change y by (1)\n                    if <<touching (level v)?> or <touching (help v)?>> then\n                        change y by (1)\n                        if <<touching (level v)?> or <touching (help v)?>> then\n                            change x by ((my variable) * (-1))\n                            change y by (-5)\n                            if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                if <(my variable) > [0]> then\n                                    set [my variable v] to [-5]\n                                else\n                                    set [my variable v] to [5]\n                                end\n                                set [↓yv v] to [10]\n                            else\n                                set [my variable v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [↓yv v] by (-0.5)\n    change y by (↓Yv)\n    if <<touching (level v)?> or <touching (help v)?>> then\n        change y by ((↓Yv) * (-1))\n        set [↓yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching (level v)?> or <touching (help v)?>> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            set [↓yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <touching (spikes v)?> then\n        change [deaths v] by (1)\n        broadcast (die v)\n        Reset\n    end\n    if <(x position) > [240]> then\n        broadcast (next level v)\n        Reset\n        if <[1] = (✺LEVEL)> then\n            broadcast (NO v)\n        end\n    end\n    if <(y position) < [-170]> then\n        Reset\n        if <[10] = (✺LEVEL)> then\n            broadcast (next level v)\n        else\n            change [deaths v] by (1)\n            broadcast (die v)\n        end\n    end\nend\n\ndefine Reset\ngo to x: (-200) y: (-100)\nset [↓yv v] to [0]\nset [my variable v] to [0]\n\nwhen flag clicked\npoint in direction (90)\nforever\nend\n\nturn right ((my variable) / (.5)) degrees\n\nwhen flag clicked\nbroadcast (Original v)\nforever\n    if <touching (goal v)?> then\n        broadcast (Goal!!! v)\n    end\nend\n\nwhen I receive [goal!!! v]\nrepeat until <not <[20] = (✺LEVEL)>>\n    say [Yay, thanks for getting me back home!] for (0.0000000001) seconds\nend\n\nwhen I receive [next level v]\nchange [✺level v] by (1)\nReset\n\nwhen I receive [menu v]\nhide\n\nwhen [r v] key pressed\nReset\n\nwhen flag clicked\nset [✺level v] to [Thumbnail]\nset [deaths v] to [0]\nforever\n    if <(✺LEVEL) = [21]> then\n        set [✺level v] to [Thumbnail]\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen I receive [menu v]\nset [✺level v] to [Menu]\nrepeat until <[1] = (✺LEVEL)>\n    set [deaths v] to [0]\nend\n\nwhen I receive [redo v]\nReset\n\nwhen I receive [gold&black v]\nswitch costume to (gold and black v)\n\nwhen I receive [green&white v]\nswitch costume to (green and white v)\n\nwhen I receive [black&blue v]\nswitch costume to (black and blue v)\n\nwhen I receive [original v]\nswitch costume to (original v)\n\n@Level\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nforever\n    if <[1] = (✺LEVEL)> then\n        switch costume to (1 v)\n    end\n    if <[2] = (✺LEVEL)> then\n        switch costume to (2 v)\n    end\n    if <[3] = (✺LEVEL)> then\n        switch costume to (3 v)\n    end\n    if <[4] = (✺LEVEL)> then\n        switch costume to (4 v)\n    end\n    if <[5] = (✺LEVEL)> then\n        switch costume to (5 v)\n    end\n    if <[6] = (✺LEVEL)> then\n        switch costume to (6 v)\n    end\n    if <[7] = (✺LEVEL)> then\n        switch costume to (7 v)\n    end\n    if <[8] = (✺LEVEL)> then\n        switch costume to (8 v)\n    end\n    if <[9] = (✺LEVEL)> then\n        switch costume to (9 v)\n    end\n    if <[10] = (✺LEVEL)> then\n        switch costume to (10 v)\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <[11] = (✺LEVEL)> then\n        switch costume to (11 v)\n    end\n    if <[12] = (✺LEVEL)> then\n        switch costume to (12 v)\n    end\n    if <[13] = (✺LEVEL)> then\n        switch costume to (13 v)\n    end\n    if <[14] = (✺LEVEL)> then\n        switch costume to (14 v)\n    end\n    if <[15] = (✺LEVEL)> then\n        switch costume to (15 v)\n    end\n    if <[16] = (✺LEVEL)> then\n        switch costume to (16 v)\n    end\n    if <[17] = (✺LEVEL)> then\n        switch costume to (17 v)\n    end\n    if <[18] = (✺LEVEL)> then\n        switch costume to (18 v)\n    end\n    if <[19] = (✺LEVEL)> then\n        switch costume to (19 v)\n    end\n    if <[20] = (✺LEVEL)> then\n        switch costume to (20 v)\n    end\nend\n\n@Shadows\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    if <(✺LEVEL) = [1]> then\n        set [ghost v] effect to (25)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [next level v]\nswitch costume to (✺LEVEL)\n\nwhen I receive [play v]\nswitch costume to (1 v)\n\n@Spikes\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nforever\n    if <[2] = (✺LEVEL)> then\n        switch costume to (2 v)\n    end\n    if <[3] = (✺LEVEL)> then\n        switch costume to (3 v)\n    end\n    if <[4] = (✺LEVEL)> then\n        switch costume to (4 v)\n    end\n    if <[5] = (✺LEVEL)> then\n        switch costume to (5 v)\n    end\n    if <[6] = (✺LEVEL)> then\n        switch costume to (6 v)\n    end\n    if <[7] = (✺LEVEL)> then\n        switch costume to (7 v)\n    end\n    if <[8] = (✺LEVEL)> then\n        switch costume to (8 v)\n    end\n    if <[9] = (✺LEVEL)> then\n        switch costume to (9 v)\n    end\n    if <[10] = (✺LEVEL)> then\n        switch costume to (10 v)\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <[11] = (✺LEVEL)> then\n        switch costume to (11 v)\n    end\n    if <[12] = (✺LEVEL)> then\n        switch costume to (12 v)\n    end\n    if <[13] = (✺LEVEL)> then\n        switch costume to (13 v)\n    end\n    if <[14] = (✺LEVEL)> then\n        switch costume to (14 v)\n    end\n    if <[15] = (✺LEVEL)> then\n        switch costume to (15 v)\n    end\n    if <[16] = (✺LEVEL)> then\n        switch costume to (16 v)\n    end\n    if <[17] = (✺LEVEL)> then\n        switch costume to (17 v)\n    end\n    if <[18] = (✺LEVEL)> then\n        switch costume to (18 v)\n    end\n    if <[19] = (✺LEVEL)> then\n        switch costume to (19 v)\n    end\n    if <[20] = (✺LEVEL)> then\n        switch costume to (20 v)\n    end\nend\n\n@Help\n\nwhen I receive [next level v]\nforever\n    if <[2] = (✺LEVEL)> then\n        switch costume to (2 v)\n    end\n    if <[3] = (✺LEVEL)> then\n        switch costume to (3 v)\n    end\n    if <[4] = (✺LEVEL)> then\n        switch costume to (4 v)\n    end\n    if <[5] = (✺LEVEL)> then\n        switch costume to (5 v)\n    end\n    if <[6] = (✺LEVEL)> then\n        switch costume to (6 v)\n    end\n    if <[7] = (✺LEVEL)> then\n        switch costume to (7 v)\n    end\n    if <[8] = (✺LEVEL)> then\n        switch costume to (8 v)\n    end\n    if <[9] = (✺LEVEL)> then\n        switch costume to (9 v)\n    end\n    if <[10] = (✺LEVEL)> then\n        switch costume to (10 v)\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nforever\n    if <[11] = (✺LEVEL)> then\n        switch costume to (11 v)\n    end\n    if <[12] = (✺LEVEL)> then\n        switch costume to (12 v)\n    end\n    if <[13] = (✺LEVEL)> then\n        switch costume to (13 v)\n    end\n    if <[14] = (✺LEVEL)> then\n        switch costume to (14 v)\n    end\n    if <[15] = (✺LEVEL)> then\n        switch costume to (15 v)\n    end\n    if <[16] = (✺LEVEL)> then\n        switch costume to (16 v)\n    end\n    if <[17] = (✺LEVEL)> then\n        switch costume to (17 v)\n    end\n    if <[18] = (✺LEVEL)> then\n        switch costume to (18 v)\n    end\n    if <[19] = (✺LEVEL)> then\n        switch costume to (19 v)\n    end\n    if <[20] = (✺LEVEL)> then\n        switch costume to (20 v)\n    end\nend\n\n@Goal\n\nwhen flag clicked\nhide\nforever\n    if <(✺LEVEL) = [20]> then\n        show\n    else\n        hide\n    end\nend\n\n@Thumbnail\n\nwhen I receive [goal!!! v]\nset [goal? v] to [Yes]\n\nwhen I receive [next level v]\nif <[Yes] = (Goal?)> then\n    broadcast (Title v)\n    go to [front v] layer\n    show\n    wait (3.5) seconds\n    hide\n    set [goal? v] to [No]\n    broadcast (Menu v)\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\nwait (3.5) seconds\nhide\nset [goal? v] to [No]\nbroadcast (Menu v)\n\nwhen flag clicked\nforever\n    if <[Yes!] = (Sound on?)> then\n        play sound [Return of the Hero v] until done\n    else\n        stop all sounds\n    end\nend\n\n@Menu\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\ngo to [front v] layer\ngo [backward v] (5) layers\nshow\n\n@Menu Name\n\nwhen I receive [menu v]\ngo to x: (35) y: (40)\ngo to [front v] layer\nswitch costume to (menu name v)\npoint in direction (90)\nset [play? v] to [No]\nshow\n\nrepeat until <[Yes] = (Play?)>\n    move (10) steps\n    wait (0.21) seconds\n    turn right (7) degrees\n    wait (0.21) seconds\n    turn left (7) degrees\n    wait (0.21) seconds\n    move (-10) steps\n    wait (0.21) seconds\n    move (-10) steps\n    wait (0.21) seconds\n    turn left (7) degrees\n    wait (0.21) seconds\n    turn right (7) degrees\n    wait (0.21) seconds\n    move (10) steps\n    wait (0.21) seconds\nend\n\nwhen I receive [settings v]\ngo to x: (5) y: (40)\nswitch costume to (settings name v)\npoint in direction (90)\nset [play? v] to [No]\nshow\n\nrepeat until <[Yes] = (Play?)>\n    move (10) steps\n    wait (0.4) seconds\n    turn right (7) degrees\n    wait (0.4) seconds\n    turn left (7) degrees\n    wait (0.4) seconds\n    move (-10) steps\n    wait (0.4) seconds\n    move (-10) steps\n    wait (0.4) seconds\n    turn left (7) degrees\n    wait (0.4) seconds\n    turn right (7) degrees\n    wait (0.4) seconds\n    move (10) steps\n    wait (0.4) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nset [play? v] to [Yes]\nhide\n\n@Play ButtonSprite1Sprite1\n\nwhen I receive [menu v]\ngo to [front v] layer\nshow\ngo to x: (36) y: (28)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (35)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Play v)\n\nset size to (100) %\nwait (0.3) seconds\nchange size by (-30)\nmove (-10) steps\nwait (0.3) seconds\nmove (10) steps\n\nset size to (100) %\n\nwhen I receive [play v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [settings v]\nhide\n\n@Settings\n\nwhen I receive [menu v]\ngo to [front v] layer\nshow\ngo to x: (36) y: (28)\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (35)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Settings v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [settings v]\nhide\n\nset size to (100) %\nwait (0.3) seconds\nchange size by (-30)\nmove (-10) steps\nwait (0.3) seconds\nmove (10) steps\n\nset size to (100) %\n\n@Skip Button\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\n\nwhen I receive [menu v]\nhide\n\nwhen this sprite clicked\nif <(✺LEVEL) = [20]> then\n    broadcast (Goal!!! v)\n    broadcast (next level v)\nelse\n    broadcast (next level v)\nend\n\nwhen I receive [next level v]\n\nif <(✺LEVEL) = [20]> then\n    broadcast (Goal!!! v)\n    broadcast (next level v)\nelse\n    broadcast (next level v)\nend\n\ngo to [front v] layer\nshow\n\n@Sound\n\nwhen this sprite clicked\nnext costume\nif <(costume [name v]) = [music off]> then\n    set [sound on? v] to [No!]\n    stop all sounds\n    broadcast (stop sound v)\nend\nif <(costume [name v]) = [music on]> then\n    set [sound on? v] to [Yes!]\n    broadcast (on sound v)\nend\n\nwhen I receive [settings v]\ngo to [front v] layer\nshow\n\nwhen flag clicked\ngo to [front v] layer\nset [sound on? v] to [Yes!]\nswitch costume to (music on v)\nbroadcast (on sound v)\nhide\n\nwhen I receive [menu v]\nhide\n\n@Ball Color\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [settings v]\ngo to [front v] layer\nshow\n\n@Green and White Color\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [settings v]\ngo to x: (41) y: (-95)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [settings v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Green&White v)\n\n@Blue and Black Color\n\nwhen flag clicked\nhide\n\nwhen I receive [settings v]\ngo to x: (-21) y: (-95)\ngo to [front v] layer\nshow\n\nwhen I receive [menu v]\nhide\n\nwhen this sprite clicked\nbroadcast (Black&Blue v)\n\nwhen I receive [settings v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Original Color\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [settings v]\ngo to x: (-81) y: (-95)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Original v)\n\nwhen I receive [settings v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Gold and Black\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [settings v]\ngo to x: (101) y: (-95)\ngo to [front v] layer\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Gold&Black v)\n\nwhen I receive [settings v]\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\n@Back Button\n\nwhen this sprite clicked\nbroadcast (Menu v)\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [settings v]\ngo to [front v] layer\nshow\n\nwhen I receive [menu v]\nhide\n\n@HomeButton \n\nwhen this sprite clicked\nbroadcast (Menu v)\n\nwhen flag clicked\nhide\n\nwhen I receive [play v]\n\ngo to [front v] layer\nshow\n\nwhen I receive [menu v]\nhide\n\n@Selected Color of Ball\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\ngo to x: (-25) y: (-4)\nhide\n\nwhen I receive [settings v]\ngo to [front v] layer\nshow\n\nwhen I receive [black&blue v]\ngo to x: (35) y: (-4)\n\nwhen I receive [gold&black v]\ngo to x: (155) y: (-4)\n\nwhen I receive [green&white v]\ngo to x: (95) y: (-4)\n\nwhen I receive [original v]\ngo to x: (-25) y: (-4)\n\n@Heart Star 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]> or <(FAVED___) = [1]>> and <not <[username v] contains (username)?>>>\nadd (username) to [username v]\nwait (1) seconds\nshow\ngo to [front v] layer\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)\nend\n\nwhen I start as a clone\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\n@grunge_surface_dark_scratches_18460_3840x2400\n\nwhen flag clicked\nbroadcast (Title v)\nhide\n\nwhen [timer v] > (i)\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [ghost v] effect to (90)\n\nwhen I receive [play v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nforever\n    repeat until <(Menu?) = [Yes]>\n        go to x: (0) y: (0)\n        go to [front v] layer\n        set [ghost v] effect to (90)\n    end\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [title v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nforever\n    repeat until <(Menu?) = [Yes]>\n        go to x: (0) y: (0)\n        go to [front v] layer\n        set [ghost v] effect to (90)\n    end\nend\n\n@Menu Buttons\n\nwhen flag clicked\nhide\n\nwhen I receive [reset clones v]\ndelete this clone\n\nwhen I start as a clone\nif <(Menu: clone id) = [2]> then\n    go [backward v] (1) layers\n    switch costume to (redo v)\n    glide (.5) secs to x: (-156) y: (155)\nelse\n    switch costume to (skip v)\n    glide (.5) secs to x: (-188) y: (155)\nend\n\nwhen I receive [reset menu v]\nset [open v] to [0]\nif <[0] < (Menu: clone id)> then\n    glide (1) secs to x: (-218) y: (155)\nend\n\nwhen I start as a clone\nif <(Menu: clone id) = [1]> then\n    forever\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                broadcast (next level v) and wait\n                if <[20] = (✺LEVEL)> then\n                    broadcast (Goal!!! v)\n                end\n            end\n        else\n            clear graphic effects\n        end\n    end\nelse\n    forever\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (10)\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                broadcast (redo v) and wait\n            end\n        else\n            clear graphic effects\n        end\n    end\nend\n\nwhen I receive [play v]\nbroadcast (reset clones v)\ngo to x: (-218) y: (155)\nforever\n    if <(Level) = [20]> then\n        broadcast (reset clones v)\n        hide\n    else\n        show\n        set [brightness v] effect to (10)\n        switch costume to (menu v)\n        if <touching (mouse-pointer v)?> then\n            if <mouse down?> then\n                wait until <not <mouse down?>>\n                if <(open) = [0]> then\n                    broadcast (reset clones v)\n                    set [menu: clone id v] to [0]\n                    set [open v] to [1]\n                    repeat (2)\n                        change [menu: clone id v] by (1)\n                        create clone of (_myself_ v)\n                    end\n                    set [menu: clone id v] to [0]\n                else\n                    broadcast (reset menu v) and wait\n                    broadcast (reset clones v)\n                end\n            end\n        else\n            clear graphic effects\n        end\n    end\nend\n\nwhen I receive [next level v]\nbroadcast (reset clones v)\n\nwhen I receive [redo v]\nbroadcast (reset clones v)\n\nwhen this sprite clicked\nbroadcast (reset clones v)\n\nwhen flag clicked\nforever\n    if <[1] = (costume [number v])> then\n        if <touching (mouse-pointer v)?> then\n            broadcast (1 v)\n        else\n            broadcast (No v)\n        end\n    end\n    if <[2] = (costume [number v])> then\n        if <touching (mouse-pointer v)?> then\n            broadcast (2 v)\n        else\n            broadcast (No v)\n        end\n    end\n    if <[3] = (costume [number v])> then\n        if <touching (mouse-pointer v)?> then\n            broadcast (3 v)\n        else\n            broadcast (No v)\n        end\n    end\nend\n\n@Die or Next Level\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nswitch costume to (costume1 v)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [die v]\nswitch costume to (costume2 v)\nset [ghost v] effect to (0)\nshow\ngo to [front v] layer\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [title v]\nhide\n\nwhen I receive [menu v]\nhide\n\n@Trail\n\nwhen I start as a clone\ngo to [back v] layer\nshow\ngo to (player v)\nrepeat (15)\n    change [ghost v] effect by (7.5)\n    change size by (-1.5)\nend\ndelete this clone\n\nwhen I start as a clone\n\nwhen flag clicked\nforever\n    hide\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\npoint in direction (90)\n\n\n\nwhen I receive [black&blue v]\nswitch costume to (black and blue v)\n\nwhen I receive [original v]\nswitch costume to (original v)\n\nwhen I receive [green&white v]\nswitch costume to (green and white v)\n\nwhen I receive [gold&black v]\nswitch costume to (gold and black v)\n\n@Level #\n\nwhen I receive [play v]\ngo to [front v] layer\nforever\n    if <[Yes] = (Play?)> then\n        show\n        switch costume to (✺LEVEL)\n    end\nend\n\nwhen I receive [title v]\nhide\n\nwhen flag clicked\nhide\n\n@trail\n\nwhen I start as a clone\nset size to (50) %\nshow\nforever\n    switch costume to (costume1 v)\n    set [ghost v] effect to (0)\n    go to (mouse-pointer v)\n    repeat (10)\n        wait (0.05) seconds\n        next costume\n        change [ghost v] effect by (5)\n        change [color v] effect by (10)\n    end\n    wait (.5) seconds\n    delete this clone\nend\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    set size to (50) %\n    create clone of (_myself_ v)\n    wait (0) seconds\nend\n\n@Me\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (30)\nswitch costume to (1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat (11)\n            next costume\n            wait (0.013) seconds\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat (11)\n            switch costume to ((costume [number v]) - (1))\n            wait (0.013) seconds\n        end\n    end\nend\n\n@Help2\n\nwhen I receive [next level v]\nhide\n\nwhen flag clicked\nhide\n\nwhen [h v] key pressed\nshow\n\n@sun\n\nwhen flag clicked\nhide\nwait (4.5) seconds\nshow\ngo to x: (227) y: (194)\npoint in direction (90)\nforever\n    turn right (1) degrees\n    go to [back v] layer\nend\n\nwhen [n v] key pressed\nnext backdrop\n\nwhen I receive [message1 v]\nswitch backdrop to (backdrop1 v)\nforever\n    if <(backdrop [number v]) = [1]> then\n        show\n    end\n    if <not <(backdrop [number v]) = [1]>> then\n        hide\n    end\nend\n\nwhen flag clicked\nchange [☁ played v] by (1)\nhide variable [☁ played v]\n\n@Clouds\n\nwhen I receive [title v]\nset [clouds? v] to [0]\n\nwhen flag clicked\nhide\ncreate clone of (_myself_ v)\nwait (5) seconds\ncreate clone of (_myself_ v)\nforever\n    if <(Clouds?) = [1]> then\n        wait (pick random (3) to (10)) seconds\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (10)\ngo to [back v] layer\ngo [forward v] (3) layers\nswitch costume to (pick random (1) to (6))\ngo to x: (290) y: (pick random (150) to (60))\nrepeat (300)\n    change x by (-1)\n    if <(Clouds?) = [0]> then\n        delete this clone\n    end\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (-1)\n    if <(Clouds?) = [0]> then\n        delete this clone\n    end\nend\nrepeat (160)\n    change x by (-1)\n    if <(Clouds?) = [0]> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [play v]\nset [clouds? v] to [1]\n\nwhen I receive [next level v]\nif <[10] = (✺LEVEL)> then\n    set [clouds? v] to [0]\nend\nif <[16] = (✺LEVEL)> then\n    set [clouds? v] to [1]\nend\n\n@Gui\n\nwhen flag clicked\nforever\n    go to (mouse-pointer v)\n    Sense\nend\n\ndefine Sense\nswitch costume to (sense v)\nshow\nset [ghost v] effect to (20)\ngo to [front v] layer\nif <touching (play buttonsprite1sprite1 v)?> then\n    switch costume to (play game v)\nelse\n    if <touching (skip button v)?> then\n        switch costume to (modulation- on the move v)\n    else\n        if <touching (back button v)?> then\n            switch costume to (back v)\n        else\n            if <touching (selected color of ball v)?> then\n                switch costume to (revenge v)\n            else\n                if <touching (vexento - empty v)?> then\n                    switch costume to (vexento - empty v)\n                else\n                    if <touching (lights \[dream trance\] v)?> then\n                        switch costume to (lights \[dream trance\] v)\n                    else\n                        if <touching (settings v)?> then\n                            switch costume to (revenge v)\n                        else\n                            if <touching (back button v)?> then\n                                switch costume to (back v)\n                            else\n                                if <touching (green and white color v)?> then\n                                    switch costume to (costume2 v)\n                                else\n                                    if <touching (original color v)?> then\n                                        switch costume to (costume2 v)\n                                    else\n                                        if <<touching (?? v)?> or <touching (??? v)?>> then\n                                            switch costume to (??? v)\n                                        else\n                                            if <touching (blue and black color v)?> then\n                                                switch costume to (costume2 v)\n                                            else\n                                                if <touching (gold and black v)?> then\n                                                    switch costume to (costume2 v)\n                                                else\n                                                    if <touching (sound v)?> then\n                                                        switch costume to (costume3 v)\n                                                    else\n                                                        if <touching (revenge v)?> then\n                                                            switch costume to (revenge v)\n                                                        else\n                                                            if <touching (vexento - pegasus v)?> then\n                                                                switch costume to (vexento - pegasus v)\n                                                            else\n                                                                if <touching (never gonna give you up v)?> then\n                                                                    switch costume to (never gonna give you up v)\n                                                                else\n                                                                    if <touching (me v)?> then\n                                                                        switch costume to (costume1 v)\n                                                                    else\n                                                                        if <<touching (cloud v)?> and <(Random variable1) = [0]>> then\n                                                                            switch costume to (highscore v)\n                                                                        else\n                                                                            if <<touching (instructions v)?> and <(Random variable2) = [0]>> then\n                                                                                switch costume to (instructions v)\n                                                                            else\n                                                                                if <touching (costume selection v)?> then\n                                                                                    switch costume to (costume selection v)\n                                                                                else\n                                                                                    if <(LOL variable) = [1]> then\n                                                                                        go to [front v] layer\n                                                                                        switch costume to (resume v)\n                                                                                    else\n                                                                                        if <<touching (pause/play button v)?> and <([costume # v] of [pause/play button v]) = [1]>> then\n                                                                                            switch costume to (pause v)\n                                                                                        else\n                                                                                            hide\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [forward v] (99) layers\nend\n\nwhen I receive [1 v]\nshow\nswitch costume to (next3 v)\n\nwhen I receive [2 v]\nshow\nswitch costume to (next2 v)\n\nwhen I receive [3 v]\nshow\nswitch costume to (next v)\n\nwhen I receive [no v]\n\nshow\nswitch costume to (sense v)\n\n