Alone - Platformer

Instructions: Part 1: https://scratch.mit.edu/projects/629372491/\nPart 2: https://scratch.mit.edu/projects/634135768/\nPart 4: https://scratch.mit.edu/projects/650839915/\nPart 5: https://scratch.mit.edu/projects/650849246\nPart 6: https://scratch.mit.edu/projects/656069524/\n\n=======================================                                 \n ※Rescue 3※\n=======================================\nʜɪ ᴀʟʟ!!! ᴍᴇ @hern1 ɪs ɢᴏɪɴɢ ᴛᴏ ᴘʀᴇsᴇɴᴛ ᴀ ɴᴇᴡ ʀᴇsᴄᴜᴇ ᴘʀᴏᴊᴇᴄᴛ, ʀᴇsᴄᴜᴇ 3 !!!  ᴘʟᴇᴀsᴇ ᴍᴀᴋᴇ ᴛʜɪs ᴏɴ ᴛʀᴇɴᴅɪɴɢ 1sᴛ ᴘᴀɢᴇ.\nʏᴏᴜ ᴡɪʟʟ ғᴇᴇʟ ʙᴀᴅ ɪғ ʏᴏᴜ ᴅᴏɴ'ᴛ ʟᴏᴠᴇ ᴀɴᴅ sᴛᴀʀ.\nʀᴇᴍɪx ᴍᴀᴋᴇ ʏᴏᴜ ʜᴀᴘᴘʏ.\nғᴏʟʟᴏᴡ ᴍᴇ @hern1 ғᴏʀ ᴍᴏʀᴇ ᴀᴍᴀᴢɪɴɢ ᴘʟᴀᴛғᴏʀᴍᴇʀ!!!\nɪ ᴡɪʟʟ ᴅᴏ ᴘᴀʀᴛ 4 ᴡʜᴇɴ ɪ ғɪɴɪsʜ ᴍʏ ᴇxᴀᴍ.\nᴘʟᴀʏ ɪᴛ ᴏɴ ᴛᴜʀʙᴏᴡᴀʀᴘ ɪғ ɪᴛ ɪs ʟᴀɢɢʏ ᴏʀ ᴄʀᴀsʜɪɴɢ.\nᴛʜᴇ ɢᴀᴍᴇ ᴡɪʟʟ ʟᴏᴀᴅ ғᴀsᴛᴇʀ ᴀɴᴅ sᴍᴏᴏᴛʜᴇʀ. https://turbowarp.org/632554962\nᴀᴅᴠᴇʀᴛɪsɪɴɢ ɪs ᴀʟʟᴏᴡᴇᴅ ɪғ ʏᴏᴜ ʟᴏᴠᴇ ᴀɴᴅ sᴛᴀʀ.\nsᴏʀʀʏ ɪғ ᴛʜᴇ ᴡᴀᴛᴇʀ ɪs ɴᴏᴛ ғʟᴏᴡ sᴍᴏᴏᴛʜʟʏ.\n=======================================                                 \n ※Story※\n=======================================\nʏᴏᴜ ʟɪᴠᴇ ʜᴀᴘᴘɪʟʏ ᴡɪᴛʜ ʏᴏᴜʀ ғᴀᴍɪʟʏ...\nᴏɴᴇ ᴅᴀʏ, ʙᴀᴅ ᴘᴇᴏᴘʟᴇ ᴄᴀᴍᴇ...\nᴛʜᴇʏ sᴛᴏʟᴇ ʏᴏᴜʀ ᴘᴀʀᴇɴᴛs.\nʏᴏᴜ ɴᴇᴇᴅ ᴛᴏ ʀᴇsᴄᴜᴇ ᴛʜᴇᴍ!\n=======================================\n                                ※Stats※\n=======================================\n1 ᴍᴏɴᴛʜ ᴏғ ᴡᴏʀᴋ\n188 ᴀssᴇᴛs\n2173 ʙʟᴏᴄᴋs\n22 sᴘʀɪᴛᴇs ( ɪɴᴄʟᴜᴅᴇᴅ ᴛʜᴇ ʙʟᴀɴᴋ sᴘʀɪᴛᴇ. )\n21 sᴘʀɪᴛᴇs ( ɴᴏᴛ ɪɴᴄʟᴜᴅᴇᴅ ᴛʜᴇ ʙʟᴀɴᴋ sᴘʀɪᴛᴇ. )\n=======================================\n                                     ※Rules※\n=========================================\nᴡ, ᴀ, s, ᴅ ᴛᴏ ᴍᴏᴠᴇ.\nᴀᴠᴏɪᴅ sᴘɪᴋᴇs, sᴀᴡ, ʟᴀᴠᴀ ᴀɴᴅ ᴇɴᴇᴍʏ.\nᴘʀᴇss sᴘᴀᴄᴇ ᴛᴏ ᴜsᴇ ʏᴏᴜʀ sᴡᴏʀᴅ.\nᴛʜᴇ ᴍᴀᴘ ɪs ɪɴ ᴛʜᴇ ᴇɴᴅ ᴏғ ᴛʜᴇ ɢᴀᴍᴇ!!!\nᴊᴜᴍᴘ ᴏɴ ᴛʀᴀᴍᴘᴏʟɪɴᴇ ᴛᴏ ᴊᴜᴍᴘ ʜɪɢʜᴇʀ.\nᴊᴜᴍᴘ ᴏɴ ᴛʜᴇ ᴊᴜᴍᴘ ʙᴏᴏsᴛ ᴛᴏ ᴅᴏ ᴀ ᴅᴏᴜʙʟᴇ ᴊᴜᴍᴘ.\n\n=======================================\n                                  ※ᴄʀᴇᴅɪᴛs※\n =======================================\nᴛʜᴀɴᴋs ᴛᴏ  @JC_ProGold ғᴏʀ ᴛʜᴇ sʟɪᴍᴇ ᴄᴏsᴛᴜᴍᴇ. \n \nᴛʜᴀɴᴋs ᴛᴏ ɪ ᴅᴏɴ'ᴛ ᴋɴᴏᴡ ᴡʜᴏ ( ɪғ ʏᴏᴜ ᴋɴᴏᴡ ᴘʟᴇᴀsᴇ\nᴛᴇʟʟ ᴍᴇ. ) ғᴏʀ ᴛʜᴇ ɪɴᴛʀᴏ.\n \nᴛʜᴀɴᴋs ᴛᴏ @-InfinityCode- ғᴏʀ ᴛʜᴇ sʟɪᴍᴇ ᴘᴀʀᴛɪᴄᴀʟ ᴄᴏᴅᴇ ᴀɴᴅ ᴛʜᴇ sʟɪᴍᴇ ᴄᴏᴅᴇ.\n \nᴛʜᴀɴᴋs ᴛᴏ @Tao196 ғᴏʀ ʜᴇʟᴘɪɴɢ ᴍᴇ ғɪxɪɴɢ sᴏᴍᴇ\nɢʟɪᴛᴄʜ.\n\nᴛʜᴇ ʀᴇsᴛ ᴀʟʟ ʙʏ ᴍᴇ.\n \nʟᴏᴠᴇ sᴛᴀʀ ᴀɴᴅ ғᴏʟʟᴏᴡ ғᴏʀ ᴍᴏʀᴇ.\n\n\n\n\nTags ( Ignore ): \n\n#All #Games #Trending #All #Games #Trending\n#All #Games #Trending #All #Games #Trending\n#All #Games #Trending #All #Games #Trending\n#All #Games #Trending #All #Games #Trending\n#Tutorials #Tutorials #Tutorials #Tutorials #Tutorials \n#games #all #fun #platformer #spikes #awesome #saw\n#lava #text #like #fav #art #follow #hern1 #enjoy #lol #good #water #ground #hope #you #enjoy #thumbnail #music #sword #slime #background #enemy #turbowarp #credits #cave\n#cloud #map #grassland #rescue #map #story #intro #key #door #trampoline #jump #boost #jumpboost #good #awesome #desert #3

@Stage\n\nwhen I receive [music v]\nwait (0.1) seconds\nwait until <(level) > [26]>\nbroadcast (Challenge v)\nset [extra levels v] to [1]\nstop [other scripts in sprite v]\nforever\n    play sound [The Black Eyed Peas - Pump It \(Original Instrumental\) v] until done\nend\n\nwhen I receive [start game v]\nstop [other scripts in sprite v]\nbroadcast (Music v)\nset volume to (30) %\nforever\n    play sound [Impossible quiz theme song \(Gonna fly now by Bill conti\) v] until done\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\nplay sound [Win v] until done\nforever\n    play sound [Dance Around v] until done\nend\n\nwhen I receive [music v]\nwait (0.1) seconds\nwait until <(level) > [25]>\nstart sound [Cheer v]\nchange [☁ beaten platformer v] by (1)\n\n@Blank\n\nwhen I receive [hard reset v]\nset [personal record v] to [99999]\nset [level v] to [1]\n\nbroadcast (Hard Reset v)\n\n@Player\n\nwhen flag clicked\nshow\n\nchange y by (100)\n\ndefine Controls\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n    change [jump v] by (1)\nelse\n    set [jump v] to [0]\nend\n\nwhen I receive [new level v]\ngo to x: (-240) y: (y position)\nchange [level v] by (1)\nset [gravity v] to [0]\nset [key? v] to [0]\nif <(level) = [31]> then\n    go to x: (-240) y: (-105)\nend\n\nwhen I receive [player death v]\ngo to x: (-200) y: (-104)\nif <(pick random (1) to (20)) = [1]> then\n    start sound [bruh v]\nelse\n    start sound [Crunch v]\nend\nset [gravity v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [key? v] to [0]\nbroadcast (Update Level v)\n\nwhen I receive [start game v]\nforever\n    if <(x position) > [239]> then\n        broadcast (New Level v)\n        broadcast (Update Level v)\n    end\n    if <(username) = [NormanTheGamer]> then\n        if <key (l v) pressed?> then\n            ask [Which Level?] and wait\n            if <(answer) = []> then\n                set [level v] to (level)\n            else\n                set [level v] to (answer)\n            end\n            broadcast (Update Level v)\n            wait until <not <key (l v) pressed?>>\n        end\n        if <key (2 v) pressed?> then\n            change [level v] by (1)\n            wait until <not <key (2 v) pressed?>>\n        end\n        if <key (1 v) pressed?> then\n            change [level v] by (-1)\n            wait until <not <key (1 v) pressed?>>\n        end\n    end\n    if <key (r v) pressed?> then\n        broadcast (Player Death v)\n        wait until <not <key (r v) pressed?>>\n    end\nend\n\nwhen I receive [start game v]\nshow\nswitch costume to (front v)\ngo to x: (-190) y: (-104)\nset [gravity v] to [0]\nset [jump v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [level v] to [1]\nwait until <not <mouse down?>>\nwait (0.1) seconds\nforever\n    switch costume to (front v)\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [40]>>> then\n        change [x v] by (1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-40]>>> then\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (.9))\n    change x by (x)\n    if <(gravity) = [0]> then\n        if <<touching (level v)?> or <<touching (moving platforms v)?> or <<touching (switch blocks v)?> or <touching (key door v)?>>>> then\n            if <touching color (#8c8c8c)?> then\n                change y by (1)\n                if <touching color (#8c8c8c)?> then\n                    change y by (1)\n                    if <touching color (#8c8c8c)?> then\n                        change y by (1)\n                        if <touching color (#8c8c8c)?> then\n                            change y by (1)\n                            if <touching color (#8c8c8c)?> then\n                                change y by (1)\n                                if <touching color (#8c8c8c)?> then\n                                    change y by (-5)\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                    if <touching (moving platforms v)?> then\n                                        change x by (x drag)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <<touching (level v)?> or <<touching (moving platforms v)?> or <<touching (switch blocks v)?> or <touching (key door v)?>>>> then\n            if <touching color (#8c8c8c)?> then\n                change y by (-1)\n                if <touching color (#8c8c8c)?> then\n                    change y by (-1)\n                    if <touching color (#8c8c8c)?> then\n                        change y by (-1)\n                        if <touching color (#8c8c8c)?> then\n                            change y by (-1)\n                            if <touching color (#8c8c8c)?> then\n                                change y by (-1)\n                                if <touching color (#8c8c8c)?> then\n                                    change y by (5)\n                                    change x by ((x) * (-1))\n                                    set [x v] to [0]\n                                    if <touching (moving platforms v)?> then\n                                        change x by (x drag)\n                                        change y by (y drag)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1.5)\n    if <(gravity) = [0]> then\n        change y by (y)\n    else\n        change y by ((y) * (-1))\n    end\n    if <<touching color (#8c8c8c)?> and <<touching (level v)?> or <<touching (moving platforms v)?> or <<touching (switch blocks v)?> or <touching (key door v)?>>>>> then\n        if <(gravity) = [0]> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        else\n            change y by (y)\n            set [y v] to [0]\n        end\n    end\n    if <(gravity) = [0]> then\n        change y by (-2)\n    else\n        change y by (2)\n    end\n    if <<<touching color (#8c8c8c)?> and <<touching (level v)?> or <<touching (moving platforms v)?> or <<touching (switch blocks v)?> or <touching (key door v)?>>>>> and <(y) = [0]>> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > [0]>>> then\n            start sound [Jump v]\n            change [y v] by (18)\n        end\n        if <touching (moving platforms v)?> then\n            change x by (x drag)\n            change y by (y drag)\n        end\n    end\n    if <(gravity) = [0]> then\n        change y by (1)\n    else\n        change y by (-1)\n    end\n    if <<(x position) < [-240]> and <(level) = [1]>> then\n        set x to (-240)\n    end\n    if <<<<(y position) < [-178]> and <(gravity) = [0]>> or <<(y position) > [178]> and <(gravity) = [1]>>> or <<touching color (#ff0000)?> or <touching color (#830000)?>>> then\n        broadcast (Player Death v)\n    end\n    if <<touching color (#feff00)?> and <(jump) = [1]>> then\n        start sound [Jump v]\n        set [y v] to [18]\n    end\n    if <touching color (#ffef91)?> then\n        start sound [Jump v]\n        set [y v] to [25]\n    end\n    if <<touching color (#00caff)?> and <(jump) = [1]>> then\n        set [gravity v] to ((1) - (gravity))\n        start sound [Jump v]\n        set [y v] to [0]\n    end\n    Controls\nend\n\nwhen I receive [update level v]\nif <(level) = [32]> then\n    broadcast (End v)\nend\nif <(level) = [26]> then\n    broadcast (Game Complete v)\nend\n\nwhen I receive [start game v]\nwait until <<(x) > [0]> or <(y) > [0]>>\nset [start timer v] to [1]\n\n@Level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (1 v)\n\nwhen I receive [start game v]\nforever\n    switch costume to (level)\nend\n\n@Moving Platforms\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nset [x drag v] to [0]\nforever\n    if <(level) = [14]> then\n        show\n        go to x: (([sin v] of ((timer) * (100)) ) * (80)) y: (-50)\n    else\n        if <(level) = [16]> then\n            show\n            go to x: ((([sin v] of ((timer) * (100)) ) * (80)) + (90)) y: (100)\n        else\n            if <(level) = [18]> then\n                show\n                go to x: (0) y: ((([sin v] of ((timer) * (100)) ) * (65)) + (0))\n            else\n                if <(level) = [19]> then\n                    show\n                    go to x: ((([sin v] of ((timer) * (150)) ) * (70)) + (60)) y: (-160)\n                else\n                    if <(level) = [27]> then\n                        show\n                        go to x: ((([sin v] of ((timer) * (100)) ) * (100)) + (-30)) y: (35)\n                    else\n                        hide\n                    end\n                end\n            end\n        end\n    end\n    set [x drag v] to ((x position) - (x2))\n    set [x2 v] to (x position)\n    set [y drag v] to ((y position) - (y2))\n    set [y2 v] to (y position)\nend\n\n@Key Door\n\nwhen flag clicked\nhide\n\nwhen I receive [update level v]\nclear graphic effects\nforever\n    if <(level) = [20]> then\n        switch costume to (key door v)\n        show\n        go to x: (118) y: (-55)\n    else\n        if <(level) = [21]> then\n            switch costume to (key door v)\n            show\n            go to x: (-32) y: (140)\n        else\n            if <(level) = [23]> then\n                switch costume to (key door2 v)\n                show\n                go to x: (0) y: (-100)\n            else\n                if <(level) = [27]> then\n                    switch costume to (key door v)\n                    show\n                    go to x: (244) y: (33)\n                else\n                    if <(level) = [28]> then\n                        switch costume to (key door v)\n                        show\n                        go to x: (240) y: (-64)\n                    else\n                        if <(level) = [29]> then\n                            switch costume to (key door v)\n                            show\n                            go to x: (246) y: (-64)\n                        else\n                            if <(level) = [31]> then\n                                switch costume to (key door v)\n                                show\n                                go to x: (260) y: (126)\n                            else\n                                hide\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [update level v]\nset [key? v] to [0]\nforever\n    if <(key?) = [1]> then\n        stop [other scripts in sprite v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\n@Key\n\nwhen flag clicked\nset [key? v] to [0]\nhide\n\nwhen I receive [update level v]\nclear graphic effects\nforever\n    if <(level) = [20]> then\n        show\n        go to x: (192) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (51))\n    else\n        if <(level) = [21]> then\n            show\n            go to x: (192) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (-90))\n        else\n            if <(level) = [23]> then\n                show\n                go to x: (0) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (-50))\n            else\n                if <(level) = [27]> then\n                    show\n                    go to x: (182) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (128))\n                else\n                    if <(level) = [28]> then\n                        show\n                        go to x: (-168) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (70))\n                    else\n                        if <(level) = [29]> then\n                            show\n                            go to x: (-113) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (84))\n                        else\n                            if <(level) = [31]> then\n                                show\n                                go to x: (-209) y: ((([sin v] of ((timer) * (150)) ) * (7)) + (76))\n                            else\n                                hide\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [update level v]\nwait (1) seconds\nforever\n    if <touching (player v)?> then\n        stop [other scripts in sprite v]\n        start sound [Magic Spell v]\n        set [key? v] to [1]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        hide\n    end\nend\n\n@Switch Blocks\n\nwhen I receive [update level v]\nstop [other scripts in sprite v]\nset [switch v] to [0]\nif <<(level) = [24]> or <<(level) = [25]> or <<(level) = [28]> or <<(level) = [29]> or <(level) = [31]>>>>> then\n    show\n    broadcast (Switch v)\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [switch v]\nforever\n    set [switch v] to ((1) - (switch))\n    if <(level) = [24]> then\n        switch costume to ((1) + (switch))\n    else\n        if <(level) = [25]> then\n            switch costume to ((3) + (switch))\n        else\n            if <(level) = [28]> then\n                switch costume to ((5) + (switch))\n            else\n                if <(level) = [29]> then\n                    switch costume to ((7) + (switch))\n                else\n                    if <(level) = [31]> then\n                        switch costume to ((9) + (switch))\n                    end\n                end\n            end\n        end\n    end\n    wait (1) seconds\n    start sound [Finger Snap v]\nend\n\n@Text\n\ndefine Write Text (text)\nset [i v] to [1]\nrepeat (length of (text))\n    switch costume to (letter (i) of (text))\n    change x by ((15) * ((size) / (100)))\n    create clone of (_myself_ v)\n    change [i v] by (1)\nend\n\nwhen I receive [delete text v]\ndelete this clone\n\nwhen I receive [start game v]\nbroadcast (Delete Text v)\nset [start timer v] to [0]\nwait until <(start timer) = [1]>\nreset timer\nforever\n    broadcast (Delete Text v)\n    go to x: ((-15) * ((length of (timer)) / (2))) y: (157)\n    Write Text (timer)\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\n\nwhen I receive [game complete v]\nstop [other scripts in sprite v]\nif <(timer) < (Personal Record)> then\n    set [personal record v] to (timer)\nend\nif <(Personal Record) < (☁ World Record)> then\n    set [☁ world record v] to (Personal Record)\nend\n\nwhen I receive [end v]\nwait (0.2) seconds\nchange [☁ complete v] by (1)\n\nwhen I receive [challenge v]\ndelete this clone\n\n@Thumbnail\n\nwhen flag clicked\nset size to (100) %\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\n@Text 2\n\nwhen I receive [start game v]\nset [brightness v] effect to (0)\nset [beaten? v] to [0]\nforever\n    broadcast (Delete Text 2 v)\n    go to x: (-300) y: (160)\n    Write Text (join (level) [/25])\nend\n\ndefine Write Text (text)\nset [i v] to [1]\nrepeat (length of (text))\n    switch costume to (letter (i) of (text))\n    change x by ((15) * ((size) / (100)))\n    create clone of (_myself_ v)\n    change [i v] by (1)\nend\n\nwhen I receive [delete text 2 v]\ndelete this clone\n\nwhen I receive [game complete v]\nstop [other scripts in sprite v]\nwait (0) seconds\nset [brightness v] effect to (50)\nbroadcast (Delete Text 2 v)\ngo to x: (-8) y: (49)\nWrite Text (Personal Record)\ngo to x: (-30) y: (24)\nWrite Text (☁ World Record)\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\n\nwhen I receive [challenge v]\nforever\n    broadcast (Delete Text 2 v)\n    go to x: (-300) y: (160)\n    Write Text (join (level) [/31])\nend\n\nwhen I receive [end v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Title Screen\n\nwhen flag clicked\nbroadcast (Title Screen v)\n\nwhen I receive [title screen v]\nset size to (100) %\nset [mouse v] to [0]\nif  then\n    delete this clone\nend\nshow\nswitch costume to (1 v)\nwait (0.5) seconds\nswitch costume to (2 v)\ncreate clone of (_myself_ v)\nswitch costume to (1 v)\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nif <(costume [number v]) = [2]> then\n    go to x: (0) y: (-120)\n    set size to (0) %\n    forever\n        change size by (((150) - (size)) / (5))\n        set [brightness v] effect to (<touching (mouse-pointer v)?> * (-10))\n        if <<(mouse) = [1]> and <touching (mouse-pointer v)?>> then\n            broadcast (Start Game v)\n        end\n    end\nend\nif <(costume [number v]) = [3]> then\n    forever\n        go to x: (175) y: (150)\n        set size to (100) %\n        set [brightness v] effect to (<touching (mouse-pointer v)?> * (-10))\n        if <<(mouse) = [1]> and <touching (mouse-pointer v)?>> then\n            broadcast (Start Game v)\n        end\n    end\nend\n\nwhen I receive [start game v]\nstart sound [click xdxdxdxd v]\nif  then\n    delete this clone\nend\nhide\n\nwhen I receive [end v]\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [game complete v]\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\n\nwhen I receive [challenge v]\ndelete this clone\n\n@Mouse\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        change [mouse v] by (1)\n    else\n        set [mouse v] to [0]\n    end\nend\n\n