Uncontrolled - A platformer


@Stage\n\nwhen I receive [play v]\nforever\n    play sound (pick random (1) to (5)) until done\nend\n\n@Intro\n\nwhen I start as a clone\nset [pfp v] to (pick random (75) to (100))\nset [js_ v] to (pick random (75) to (100))\nwait (3.6) seconds\nforever\n    if <(Intro CloneID) = [1]> then\n        point in direction ((pfp) + (([sin v] of ((timer) * (400)) ) * (20)))\n    else\n        if <(Intro CloneID) = [2]> then\n            point in direction ((JS_) + (([sin v] of ((timer) * (400)) ) * (20)))\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    set [mp v] to [1]\n    wait (0.2) seconds\n    set [mp v] to [0]\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nwait (3.6) seconds\nforever\n    if <(mp) = [1]> then\n        set [bounce? v] to ((((bounce?) * (0.65)) + ((((200) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    else\n        set [bounce? v] to ((((bounce?) * (0.6)) + ((((150) + ()) - (size)) * (0.3))) - (25))\n        change size by (bounce?)\n    end\nend\n\nwhen I receive [intro v]\nset [intro cloneid v] to [0]\nstart sound [Intro v]\nrepeat (3)\n    change [intro cloneid v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nwait (0.001) seconds\nhide\nswitch backdrop to (backdrop1 v)\nclear graphic effects\nbroadcast (Intro v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nshow\nif <(Intro CloneID) = [1]> then\n    switch costume to (js v)\n    go to x: (0) y: (200)\n    repeat until <(y position) < [1]>\n        change y by (((y position) * (.1)) * (-1))\n    end\n    wait (7.3) seconds\n    delete this clone\nelse\n    if <(Intro CloneID) = [2]> then\n        switch costume to (js_coder v)\n        go to x: (-300) y: (-100)\n        repeat until <(x position) > [-1]>\n            change x by (((x position) * (.1)) * (-1))\n        end\n        wait (7.3) seconds\n        delete this clone\n    else\n        switch costume to (gren squar v)\n        set [ghost v] effect to (100)\n        wait (3.4) seconds\n        repeat (2)\n            change [ghost v] effect by (-50)\n        end\n        wait (.2) seconds\n        repeat (2)\n            change [ghost v] effect by (50)\n        end\n        wait (4.8) seconds\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait (.5) seconds\n        broadcast (Animation Finished v)\n        switch backdrop to (backdrop2 v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\n@Instructions\n\nwhen flag clicked\nset [random variable2 v] to [0]\nset size to (250) %\nswitch costume to (costume1 v)\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (-144)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen this sprite clicked\nbroadcast (Instructions v)\n\nwhen I receive [instructions v]\nset [random variable2 v] to [1]\nhide\ncreate clone of (_myself_ v)\n\nwhen I receive [back v]\nset size to (250) %\nset [random variable2 v] to [0]\nswitch costume to (costume1 v)\nshow\n\nwhen I start as a clone\nshow\nswitch costume to (costume3 v)\n\nwhen I receive [back v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    point in direction (90)\nend\n\nwhen I start as a clone\nforever\n    set size to (100) %\n    point in direction (90)\n    go to x: (-50) y: (0)\nend\n\nwhen I receive [cloud v]\nhide\n\n@Play button\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (-56)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\n\nwhen flag clicked\nforever\n    point in direction ((90) + (([cos v] of (((timer) - (0)) * (100)) ) * (10)))\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [music v]\nhide\n\nwhen I receive [play v]\nhide\n\nwhen I receive [costumes v]\nhide\n\nwhen I receive [back v]\nshow\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [cloud v]\nhide\n\nwhen this sprite clicked\nbroadcast (Play v)\nbroadcast (Try again v)\n\n@Back\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (176) y: (122)\nhide\n\nwhen this sprite clicked\nbroadcast (Back v)\n\nwhen I receive [back v]\nhide\n\nwhen I receive [music v]\nshow\n\nwhen I receive [costumes v]\nshow\n\nwhen flag clicked\nforever\n    set [brightness v] effect to (0)\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (10)\n    end\nend\n\nwhen I receive [instructions v]\nshow\n\nwhen I receive [cloud v]\nshow\n\n@Title\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (0) y: (100)\nset [pixelate v] effect to (100)\ngo to [back v] layer\nhide\n\nwhen I receive [animation finished v]\nshow\nwait (.1) seconds\nrepeat (20)\n    change [pixelate v] effect by (-5)\nend\nforever\n    set y to ((95) + (([sin v] of ((timer) * (275)) ) * (7)))\nend\n\nwhen I receive [play v]\nhide\n\nwhen I receive [music v]\nhide\n\nwhen I receive [instructions v]\nhide\n\nwhen I receive [back v]\nshow\n\n@Level\n\nwhen flag clicked\nwait (0.001) seconds\nset [level v] to [1]\ngo to [front v] layer\nhide\n\nwhen I receive [play v]\nshow\nforever\n    go to x: (0) y: (0)\n    switch costume to (LEVEL)\nend\n\n@Uncontrolled player\n\nwhen flag clicked\nwait (0.001) seconds\nReset\nhide\n\nwhen I receive [play v]\nshow\nforever\n    set [x v] to ((x) * (.9))\n    change x by (x)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (level v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <(Jump - Player) = [y]> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [235]> then\n        broadcast (Next Level v) and wait\n    end\n    if <touching (spikes v)?> then\n        broadcast (Died v)\n        Reset\n    end\nend\n\ndefine Reset\nset [y v] to [0]\nset [x v] to [0]\ngo to x: (-200) y: (-60)\n\nwhen I receive [player - reset v]\nReset\n\nwhen I receive [next v]\nReset\nchange [level v] by (1)\n\n@Player - AI\n\nwhen I receive [player - jump v]\nset [jump - player v] to [y]\nwait (.001) seconds\nset [jump - player v] to [n]\n\nwhen I receive [player - left v]\nchange [x v] by (-1)\n\nwhen I receive [player - right v]\nchange [x v] by (1)\n\nwhen I receive [try again v]\nif <(LEVEL) = [1]> then\n    wait (.6) seconds\n    repeat (14)\n        broadcast (Player - Right v)\n    end\n    broadcast (Player - Jump v)\n    repeat (7)\n        broadcast (Player - Right v)\n    end\n    wait (.2) seconds\n    repeat (10)\n        broadcast (Player - Right v)\n    end\n    wait (.3) seconds\n    broadcast (Player - Jump v)\n    repeat (15)\n        broadcast (Player - Right v)\n    end\n    wait (.2) seconds\n    repeat (7)\n        broadcast (Player - Right v)\n    end\nelse\n    if <(LEVEL) = [2]> then\n        wait (.7) seconds\n        repeat (5)\n            broadcast (Player - Right v)\n        end\n        broadcast (Player - Jump v)\n        repeat (7)\n            broadcast (Player - Right v)\n        end\n        wait (.2) seconds\n        repeat (20)\n            broadcast (Player - Right v)\n        end\n        wait (.5) seconds\n        repeat (7)\n            broadcast (Player - Right v)\n        end\n        broadcast (Player - Jump v)\n        repeat (6)\n            broadcast (Player - Right v)\n        end\n        wait (.7) seconds\n        broadcast (Player - Jump v)\n        repeat (19)\n            broadcast (Player - Left v)\n        end\n        wait (.4) seconds\n        repeat (11)\n            broadcast (Player - Right v)\n        end\n        broadcast (Player - Jump v)\n        repeat (17)\n            broadcast (Player - Right v)\n        end\n    else\n        if <(LEVEL) = [3]> then\n            wait (.8) seconds\n            repeat (25)\n                broadcast (Player - Right v)\n            end\n            broadcast (Player - Jump v)\n            repeat (25)\n                broadcast (Player - Right v)\n            end\n        else\n            if <(LEVEL) = [4]> then\n                wait (.8) seconds\n                repeat (3)\n                    broadcast (Player - Right v)\n                end\n                broadcast (Player - Jump v)\n                repeat (5)\n                    broadcast (Player - Right v)\n                end\n                wait (1) seconds\n                repeat (3)\n                    broadcast (Player - Left v)\n                end\n                broadcast (Player - Jump v)\n                repeat (8)\n                    broadcast (Player - Left v)\n                end\n                wait (.8) seconds\n                repeat (4)\n                    broadcast (Player - Right v)\n                end\n                broadcast (Player - Jump v)\n                repeat (13)\n                    broadcast (Player - Right v)\n                end\n                wait (.5) seconds\n                repeat (8)\n                    broadcast (Player - Right v)\n                end\n                wait (.5) seconds\n                repeat (10)\n                    broadcast (Player - Right v)\n                end\n                broadcast (Player - Jump v)\n                repeat (20)\n                    broadcast (Player - Right v)\n                end\n            else\n                if <(LEVEL) = [5]> then\n                    wait (.7) seconds\n                    repeat (44)\n                        broadcast (Player - Right v)\n                    end\n                    wait (.7) seconds\n                    broadcast (Player - Jump v)\n                    wait (.1) seconds\n                    repeat (40)\n                        broadcast (Player - Left v)\n                    end\n                    broadcast (Player - Jump v)\n                    repeat (4)\n                        broadcast (Player - Left v)\n                    end\n                    wait (1) seconds\n                    broadcast (Player - Jump v)\n                    repeat (55)\n                        broadcast (Player - Right v)\n                    end\n                else\n                    if <(LEVEL) = [6]> then\n                        wait (.8) seconds\n                        repeat (34)\n                            broadcast (Player - Right v)\n                        end\n                        broadcast (Player - Jump v)\n                        wait (.4) seconds\n                        repeat (25)\n                            broadcast (Player - Left v)\n                        end\n                        broadcast (Player - Jump v)\n                        wait (.4) seconds\n                        repeat (25)\n                            broadcast (Player - Right v)\n                        end\n                        broadcast (Player - Jump v)\n                        wait (.4) seconds\n                        repeat (15)\n                            broadcast (Player - Left v)\n                        end\n                        wait (.5) seconds\n                        repeat (13)\n                            broadcast (Player - Right v)\n                        end\n                        broadcast (Player - Jump v)\n                        repeat (35)\n                            broadcast (Player - Right v)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [died v]\nstop [other scripts in sprite v]\nbroadcast (Try again v)\n\nbroadcast (Player - Right v)\nbroadcast (Player - Left v)\n\nbroadcast (Player - Reset v)\n\nbroadcast (Player - Jump v)\n\nbroadcast (Player - Right v)\n\nbroadcast (Player - Left v)\n\n@Love/Fav Detector\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nclear graphic effects\npoint in direction (pick random (-180) to (180))\nrepeat (50)\n    switch costume to (pick random (2) to (3))\n    move (5) steps\n    change y by (-0.5)\n    if <(direction) > [180]> then\n        turn left (2.5) degrees\n    end\n    if <(direction) < [180]> then\n        turn right (2.5) degrees\n    end\n    change [brightness v] effect by (1.5)\n    change [ghost v] effect by (1.5)\nend\ndelete this clone\n\nwhen flag clicked\ngo to [front v] layer\nwait (.5) seconds\nforever\n    if <(touching) = [Love]> then\n        wait (.2) seconds\n        if <(touching) = [Love]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nset [love/favorite v] to [0]\nforever\n    if <(Love/Favorite) = [2]> then\n        stop [other scripts in sprite v]\n        show\n        go to x: (0) y: (50)\n        switch costume to (thank you! v)\n        set [brightness v] effect to (100)\n        set size to (500) %\n        set [ghost v] effect to (100)\n        repeat (20)\n            change [ghost v] effect by (-5)\n            change [brightness v] effect by (-5)\n            change size by (((185) - (size)) / (8))\n        end\n        repeat (5)\n            create clone of (_myself_ v)\n        end\n        wait (1) seconds\n        repeat (20)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n            change size by (((385) - (size)) / (8))\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nwait (.5) seconds\nforever\n    if <(touching) = [Fav]> then\n        wait (.2) seconds\n        if <(touching) = [Fav]> then\n            change [love/favorite v] by (1)\n            stop [this script v]\n        end\n    end\nend\n\ndefine Detect (thing) at (x) (y)\nswitch costume to (empty v)\nset size to (27000) %\ngo to x: (x) y: (y)\nset size to (100) %\nswitch costume to (thing)\nif <touching (mouse-pointer v)?> then\n    set [touching v] to (costume [name v])\nend\n\nwhen flag clicked\nset drag mode [not draggable v]\nshow\nset [ghost v] effect to (100)\nforever\n    set [touching v] to [none]\n    Detect [Love] at [-201] [-220]\n    Detect [Fav] at [-201] [-220]\nend\n\n@Spikes\n\nwhen flag clicked\nwait (0.001) seconds\nset [spikes' cloneid v] to [1]\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [try again v]\nwait (.01) seconds\nif <(LEVEL) = [1]> then\n    set [spikes' cloneid v] to [1]\nelse\n    if <(LEVEL) = [2]> then\n        set [spikes' cloneid v] to [4]\n    else\n        if <(LEVEL) = [3]> then\n            set [spikes' cloneid v] to [8]\n        else\n            if <(LEVEL) = [4]> then\n                set [spikes' cloneid v] to [11]\n            else\n                if <(LEVEL) = [5]> then\n                    set [spikes' cloneid v] to [13]\n                else\n                    if <(LEVEL) = [6]> then\n                        set [spikes' cloneid v] to [17]\n                    end\n                end\n            end\n        end\n    end\nend\nif <(LEVEL) = [1]> then\n    repeat (3)\n        create clone of (_myself_ v)\n        change [spikes' cloneid v] by (1)\n    end\nelse\n    if <(LEVEL) = [2]> then\n        repeat (4)\n            create clone of (_myself_ v)\n            change [spikes' cloneid v] by (1)\n        end\n    else\n        if <(LEVEL) = [3]> then\n            repeat (3)\n                create clone of (_myself_ v)\n                change [spikes' cloneid v] by (1)\n            end\n        else\n            if <(LEVEL) = [4]> then\n                repeat (2)\n                    create clone of (_myself_ v)\n                    change [spikes' cloneid v] by (1)\n                end\n            else\n                if <(LEVEL) = [5]> then\n                    repeat (4)\n                        create clone of (_myself_ v)\n                        change [spikes' cloneid v] by (1)\n                    end\n                else\n                    if <(LEVEL) = [6]> then\n                        repeat (4)\n                            create clone of (_myself_ v)\n                            change [spikes' cloneid v] by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nif <(Spikes' CloneID) = [1]> then\n    switch costume to (level 1 1 v)\n    go to x: (-72) y: (-129)\n    forever\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            repeat until <not <mouse down?>>\n                go to (mouse-pointer v)\n                if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                    go to x: (-72) y: (-129)\n                    wait (.5) seconds\n                end\n            end\n        end\n    end\nelse\n    if <(Spikes' CloneID) = [2]> then\n        switch costume to (level 1 2 v)\n        go to x: (37) y: (-110)\n        forever\n            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                repeat until <not <mouse down?>>\n                    go to (mouse-pointer v)\n                    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                        go to x: (37) y: (-110)\n                        wait (.5) seconds\n                    end\n                end\n            end\n        end\n    else\n        if <(Spikes' CloneID) = [3]> then\n            switch costume to (level 1 3 v)\n            go to x: (212) y: (-129)\n            forever\n                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    repeat until <not <mouse down?>>\n                        go to (mouse-pointer v)\n                        if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                            go to x: (212) y: (-129)\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n        else\n            if <(Spikes' CloneID) = [4]> then\n                switch costume to (level 2 2 v)\n                go to x: (-13) y: (-92)\n                forever\n                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                        repeat until <not <mouse down?>>\n                            go to (mouse-pointer v)\n                            if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                go to x: (-13) y: (-92)\n                                wait (.5) seconds\n                            end\n                        end\n                    end\n                end\n            else\n                if <(Spikes' CloneID) = [5]> then\n                    switch costume to (level 2 2 v)\n                    go to x: (48) y: (-142)\n                    forever\n                        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                            repeat until <not <mouse down?>>\n                                go to (mouse-pointer v)\n                                if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                    go to x: (48) y: (-142)\n                                    wait (.5) seconds\n                                end\n                            end\n                        end\n                    end\n                else\n                    if <(Spikes' CloneID) = [6]> then\n                        switch costume to (level 2 1 v)\n                        go to x: (181) y: (-78)\n                        forever\n                            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                repeat until <not <mouse down?>>\n                                    go to (mouse-pointer v)\n                                    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                        go to x: (181) y: (-78)\n                                        wait (.5) seconds\n                                    end\n                                end\n                            end\n                        end\n                    else\n                        if <(Spikes' CloneID) = [7]> then\n                            switch costume to (level 2 1 v)\n                            go to x: (27) y: (20)\n                            forever\n                                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                    repeat until <not <mouse down?>>\n                                        go to (mouse-pointer v)\n                                        if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                            go to x: (27) y: (20)\n                                            wait (.5) seconds\n                                        end\n                                    end\n                                end\n                            end\n                        else\n                            if <(Spikes' CloneID) = [8]> then\n                                switch costume to (level 3 1 v)\n                                go to x: (-98) y: (-104)\n                                forever\n                                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                        repeat until <not <mouse down?>>\n                                            go to (mouse-pointer v)\n                                            if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                go to x: (-98) y: (-104)\n                                                wait (.5) seconds\n                                            end\n                                        end\n                                    end\n                                end\n                            else\n                                if <(Spikes' CloneID) = [9]> then\n                                    switch costume to (level 3 2 v)\n                                    go to x: (89) y: (-179)\n                                    forever\n                                        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                            repeat until <not <mouse down?>>\n                                                go to (mouse-pointer v)\n                                                if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                    go to x: (89) y: (-179)\n                                                    wait (.5) seconds\n                                                end\n                                            end\n                                        end\n                                    end\n                                else\n                                    if <(Spikes' CloneID) = [10]> then\n                                        switch costume to (level 3 3 v)\n                                        go to x: (204) y: (-144)\n                                        forever\n                                            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                repeat until <not <mouse down?>>\n                                                    go to (mouse-pointer v)\n                                                    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                        go to x: (204) y: (-144)\n                                                        wait (.5) seconds\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    else\n                                        if <(Spikes' CloneID) = [11]> then\n                                            switch costume to (level 4 1 v)\n                                            go to x: (-225) y: (-20)\n                                            forever\n                                                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                    repeat until <not <mouse down?>>\n                                                        go to (mouse-pointer v)\n                                                        if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                            go to x: (-225) y: (-20)\n                                                            wait (.5) seconds\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        else\n                                            if <(Spikes' CloneID) = [12]> then\n                                                switch costume to (level 4 2 v)\n                                                go to x: (129) y: (-89)\n                                                forever\n                                                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                        repeat until <not <mouse down?>>\n                                                            go to (mouse-pointer v)\n                                                            if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                go to x: (129) y: (-89)\n                                                                wait (.5) seconds\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            else\n                                                if <(Spikes' CloneID) = [13]> then\n                                                    switch costume to (level 5 1 v)\n                                                    go to x: (-206) y: (-12)\n                                                    forever\n                                                        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                            repeat until <not <mouse down?>>\n                                                                go to (mouse-pointer v)\n                                                                if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                    go to x: (-206) y: (-12)\n                                                                    wait (.5) seconds\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                else\n                                                    if <(Spikes' CloneID) = [14]> then\n                                                        switch costume to (level 5 2 v)\n                                                        go to x: (31) y: (-145)\n                                                        forever\n                                                            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                repeat until <not <mouse down?>>\n                                                                    go to (mouse-pointer v)\n                                                                    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                        go to x: (31) y: (-145)\n                                                                        wait (.5) seconds\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    else\n                                                        if <(Spikes' CloneID) = [15]> then\n                                                            switch costume to (level 5 3 v)\n                                                            go to x: (18) y: (63)\n                                                            forever\n                                                                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                    repeat until <not <mouse down?>>\n                                                                        go to (mouse-pointer v)\n                                                                        if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                            go to x: (18) y: (63)\n                                                                            wait (.5) seconds\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        else\n                                                            if <(Spikes' CloneID) = [16]> then\n                                                                switch costume to (level 5 3 v)\n                                                                go to x: (158) y: (63)\n                                                                forever\n                                                                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                        repeat until <not <mouse down?>>\n                                                                            go to (mouse-pointer v)\n                                                                            if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                                go to x: (158) y: (63)\n                                                                                wait (.5) seconds\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            else\n                                                                if <(Spikes' CloneID) = [17]> then\n                                                                    switch costume to (level 6 1 v)\n                                                                    go to x: (-7) y: (-105)\n                                                                    forever\n                                                                        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                            repeat until <not <mouse down?>>\n                                                                                go to (mouse-pointer v)\n                                                                                if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                                    go to x: (-7) y: (-105)\n                                                                                    wait (.5) seconds\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                else\n                                                                    if <(Spikes' CloneID) = [18]> then\n                                                                        switch costume to (level 6 1 v)\n                                                                        go to x: (-7) y: (-31)\n                                                                        forever\n                                                                            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                                repeat until <not <mouse down?>>\n                                                                                    go to (mouse-pointer v)\n                                                                                    if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                                        go to x: (-7) y: (-31)\n                                                                                        wait (.5) seconds\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    else\n                                                                        if <(Spikes' CloneID) = [19]> then\n                                                                            switch costume to (level 6 1 v)\n                                                                            go to x: (-8) y: (38)\n                                                                            forever\n                                                                                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                                    repeat until <not <mouse down?>>\n                                                                                        go to (mouse-pointer v)\n                                                                                        if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                                            go to x: (-8) y: (38)\n                                                                                            wait (.5) seconds\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        else\n                                                                            if <(Spikes' CloneID) = [20]> then\n                                                                                switch costume to (level 6 1 v)\n                                                                                go to x: (-9) y: (112)\n                                                                                forever\n                                                                                    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                                                                                        repeat until <not <mouse down?>>\n                                                                                            go to (mouse-pointer v)\n                                                                                            if <<touching (_edge_ v)?> or <touching (level v)?>> then\n                                                                                                go to x: (-9) y: (112)\n                                                                                                wait (.5) seconds\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\n    end\nend\n\nwhen I receive [try again v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@Sprite1\n\nwhen flag clicked\nwait (0.001) seconds\nhide\n\nwhen I receive [play v]\nshow\nforever\n    set size to (100) %\n    go to x: (0) y: (0)\n    switch costume to (LEVEL)\nend\n\n@Trans.\n\nwhen flag clicked\nwait (0.001) seconds\ngo to x: (500) y: (0)\nset [brightness effect v] to [0]\nset [trans. v] to [0]\nset [random variable ¯\_\(ツ\)_/¯ v] to [0]\nclear graphic effects\nhide\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: (500) y: (0)\nset [brightness v] effect to (brightness effect)\nrepeat (12)\n    change x by (-40)\nend\nwait (.6) seconds\nif <(brightness effect) = [45]> then\n    delete this clone\nelse\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I receive [next level v]\ngo to [front v] layer\nset [trans. v] to [1]\ngo to x: (500) y: (0)\nset [brightness effect v] to [0]\nclear graphic effects\nshow\nrepeat (12)\n    change x by (-40)\nend\nchange [brightness effect v] by (45)\ncreate clone of (_myself_ v)\nwait (.4) seconds\nchange [brightness effect v] by (45)\ncreate clone of (_myself_ v)\nhide\nset [next? v] to [1]\nwait (1) seconds\nbroadcast (Try again v)\nwait (.5) seconds\nset [trans. v] to [0]\n\nwhen flag clicked\nforever\n    if <(Next?) = [1]> then\n        broadcast (Next v)\n        set [next? v] to [0]\n    end\nend\n\n@TB whoooo\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\nend\n\n