Dungeon Escape 2.1 (a platformer) #Games

Instructions: -------------------------CONTROLS------------------------\n>WASD or arrow keys to move\n>Space or click to attack\n>Mobile version coming soon\n\n--------------------------UPDATES-------------------------\n>New levels: Level 3, Level 4\n>Game code and login feature added\n>New skins: Honey, Maroon, Carbon Fiber, Industrial, Pirate\n\n-------------------------BUG FIXES------------------------\n>Key repeating bug fixed\n>Killed by retracting spikes bug fixed\n\n--------------------------CREDITS--------------------------\n>Thanks for @FUNUT for the YouTube Scratch tutorial.\n>Thanks for Infraction for the copyright-free music.

@Stage\n\nwhen flag clicked\nswitch backdrop to (loading v)\nset [seconds v] to (pick random (2.5) to (5.0))\nset [preview level v] to [Level 1]\nset [key v] to [No]\nset [paused v] to [No]\nset [deaths in game v] to [0]\nset [timer v] to [0]\nset [skin v] to [Blue]\nset [a carbon fiber v] to [0]\nset [a desert v] to [0]\nset [a ghost v] to [0]\nset [a honey v] to [0]\nset [a industrial v] to [0]\nset [a jungle v] to [0]\nset [a maroon v] to [0]\nset [a ninja v] to [0]\nset [a pirate v] to [0]\nset [a winter v] to [0]\nset [area 1 filled v] to [0]\nset [area 2 filled v] to [0]\nreset timer\nset [game code \(generated\) v] to []\nhide variable [game code \(generated\) v]\n\nwhen I receive [home v]\nswitch backdrop to (home  v)\nset [deaths in game v] to [0]\nset [timer v] to [0]\nset [area 1 filled v] to [0]\nset [area 2 filled v] to [0]\nset [key v] to [0]\nset [game code \(generated\) v] to []\nhide variable [game code \(generated\) v]\n\nwhen I receive [level 1 v]\nLevel Code (costume) [Level 1]\n\nwhen I receive [info v]\nswitch backdrop to (info v)\n\nwhen I receive [skins v]\nswitch backdrop to (skins v)\n\nwhen I receive [level 1 2 v]\nSection Code (costume) [Level 1 2]\n\nwhen I receive [level 1 complete v]\nswitch backdrop to (level 1 completed v)\nchange [timer v] by (timer)\nif <(A Winter) = [0]> then\n    set [a winter v] to [Yes]\n    set [area 1 filled v] to [1]\nelse\n    set [area 1 filled v] to [0]\nend\nif <(Timer) < [25]> then\n    if <(A Ninja) = [0]> then\n        set [a ninja v] to [Yes]\n        set [area 2 filled v] to [1]\n    end\nelse\n    set [area 2 filled v] to [0]\nend\n\nwhen I receive [level 2 v]\nLevel Code (costume) [Level 2]\n\nwhen I receive [level 2 complete v]\nswitch backdrop to (level 2 completed v)\nchange [timer v] by (timer)\nif <(A Jungle) = [0]> then\n    set [a jungle v] to [Yes]\n    set [area 1 filled v] to [1]\nelse\n    set [area 1 filled v] to [0]\nend\nif <(Timer) < [30]> then\n    if <(A Ghost) = [0]> then\n        set [a ghost v] to [Yes]\n        set [area 2 filled v] to [1]\n    end\nelse\n    set [area 2 filled v] to [0]\nend\n\nwhen I receive [settings v]\nswitch backdrop to (settings v)\n\nwhen I receive [level 3 complete v]\nswitch backdrop to (level 3 completed v)\nchange [timer v] by (timer)\nif <(A Desert) = [0]> then\n    set [a desert v] to [Yes]\n    set [area 1 filled v] to [1]\nelse\n    set [area 1 filled v] to [0]\nend\nif <(Timer) < [40]> then\n    if <(A Carbon Fiber) = [0]> then\n        set [a carbon fiber v] to [Yes]\n        set [area 2 filled v] to [1]\n    end\nelse\n    set [area 2 filled v] to [0]\nend\n\nwhen I receive [level 4 complete v]\nswitch backdrop to (level 4 completed v)\nchange [timer v] by (timer)\nif <(A Honey) = [0]> then\n    set [a honey v] to [Yes]\n    set [area 1 filled v] to [1]\nelse\n    set [area 1 filled v] to [0]\nend\nif <(Timer) < [45]> then\n    if <(A Industrial) = [0]> then\n        set [a industrial v] to [Yes]\n        set [area 2 filled v] to [1]\n    end\nelse\n    set [area 2 filled v] to [0]\nend\n\nwhen I receive [level 5 complete v]\nswitch backdrop to (level 5 completed v)\nchange [timer v] by (timer)\nif <(A Maroon) = [0]> then\n    set [a maroon v] to [Yes]\n    set [area 1 filled v] to [1]\nelse\n    set [area 1 filled v] to [0]\nend\nif <(Timer) < [35]> then\n    if <(A Pirate) = [0]> then\n        set [a pirate v] to [Yes]\n        set [area 2 filled v] to [1]\n    end\nelse\n    set [area 2 filled v] to [0]\nend\n\ndefine Level Code (costume) (?)\nswitch backdrop to (?)\nset [key v] to [0]\nset [velocity x v] to [0]\nset [velocity y v] to [0]\nset [timer v] to [0]\nreset timer\n\nwhen I receive [level 3 v]\nLevel Code (costume) [Level 3]\n\nwhen I receive [level 4 v]\nLevel Code (costume) [Level 4]\n\nwhen I receive [level 5 v]\nLevel Code (costume) [Level 5]\n\ndefine Section Code (costume) (?)\nswitch backdrop to (?)\nset [key v] to [0]\nset [velocity x v] to [0]\nset [velocity y v] to [0]\nset [timer v] to [0]\n\nwhen I receive [level 2 2 v]\nSection Code (costume) [Level 2 2]\n\nwhen I receive [level 3 2 v]\nSection Code (costume) [Level 3 2]\n\nwhen I receive [level 4 2 v]\nSection Code (costume) [Level 4 2]\n\nwhen I receive [level 5 2 v]\nSection Code (costume) [Level 5 2]\n\nwhen I receive [level 1 3 v]\nSection Code (costume) [Level 1 3]\n\nwhen I receive [level 2 3 v]\nSection Code (costume) [Level 2 3]\n\nwhen I receive [level 3 3 v]\nSection Code (costume) [Level 3 3]\n\nwhen I receive [level 4 3 v]\nSection Code (costume) [Level 4 3]\n\nwhen I receive [level 5 3 v]\nSection Code (costume) [Level 5 3]\n\nwhen I receive [new game v]\nswitch backdrop to (loading v)\nwait (0.4) seconds\nbroadcast (Animation v)\nwait (0.7) seconds\nbroadcast (Home v)\n\nwhen I receive [login page v]\nswitch backdrop to (login page v)\n\nwhen I receive [login v]\nswitch backdrop to (login v)\nask [Game Code] and wait\nif <(length of (answer)) = [13]> then\n    Code Skins\n    Code Customization\n    switch backdrop to (login g v)\n    wait (0.4) seconds\n    broadcast (Animation v)\n    wait (0.7) seconds\n    broadcast (Home v)\nelse\n    switch backdrop to (login f v)\n    wait (2) seconds\n    broadcast (Login v)\nend\n\ndefine Code Skins\nif <<<(letter (1) of (answer)) = [1]> or <(letter (1) of (answer)) = [2]>> or <<(letter (1) of (answer)) = [3]> or <<(letter (1) of (answer)) = [4]> or <(letter (1) of (answer)) = [5]>>>> then\n    set [a winter v] to [Yes]\nend\nif <<<(letter (2) of (answer)) = [1]> or <(letter (2) of (answer)) = [2]>> or <<(letter (2) of (answer)) = [3]> or <<(letter (2) of (answer)) = [4]> or <(letter (2) of (answer)) = [5]>>>> then\n    set [a jungle v] to [Yes]\nend\nif <<<(letter (3) of (answer)) = [1]> or <(letter (3) of (answer)) = [2]>> or <<(letter (3) of (answer)) = [3]> or <<(letter (3) of (answer)) = [4]> or <(letter (3) of (answer)) = [5]>>>> then\n    set [a desert v] to [Yes]\nend\nif <<<(letter (4) of (answer)) = [1]> or <(letter (4) of (answer)) = [2]>> or <<(letter (4) of (answer)) = [3]> or <<(letter (4) of (answer)) = [4]> or <(letter (4) of (answer)) = [5]>>>> then\n    set [a honey v] to [Yes]\nend\nif <<<(letter (5) of (answer)) = [1]> or <(letter (5) of (answer)) = [2]>> or <<(letter (5) of (answer)) = [3]> or <<(letter (5) of (answer)) = [4]> or <(letter (5) of (answer)) = [5]>>>> then\n    set [a maroon v] to [Yes]\nend\nif <<<(letter (6) of (answer)) = [1]> or <(letter (6) of (answer)) = [2]>> or <<(letter (6) of (answer)) = [3]> or <<(letter (6) of (answer)) = [4]> or <(letter (6) of (answer)) = [5]>>>> then\n    set [a ninja v] to [Yes]\nend\nif <<<(letter (7) of (answer)) = [1]> or <(letter (7) of (answer)) = [2]>> or <<(letter (7) of (answer)) = [3]> or <<(letter (7) of (answer)) = [4]> or <(letter (7) of (answer)) = [5]>>>> then\n    set [a ghost v] to [Yes]\nend\nif <<<(letter (8) of (answer)) = [1]> or <(letter (8) of (answer)) = [2]>> or <<(letter (8) of (answer)) = [3]> or <<(letter (8) of (answer)) = [4]> or <(letter (8) of (answer)) = [5]>>>> then\n    set [a carbon fiber v] to [Yes]\nend\nif <<<(letter (9) of (answer)) = [1]> or <(letter (9) of (answer)) = [2]>> or <<(letter (9) of (answer)) = [3]> or <<(letter (9) of (answer)) = [4]> or <(letter (9) of (answer)) = [5]>>>> then\n    set [a industrial v] to [Yes]\nend\nif <<<(letter (10) of (answer)) = [1]> or <(letter (10) of (answer)) = [2]>> or <<(letter (10) of (answer)) = [3]> or <<(letter (10) of (answer)) = [4]> or <(letter (10) of (answer)) = [5]>>>> then\n    set [a pirate v] to [Yes]\nend\n\ndefine Code Customization\nif <<[6] > (letter (11) of (answer))> and <not <(letter (11) of (answer)) = [0]>>> then\n    set [preview level v] to (join [Level ] (letter (11) of (answer)))\nend\nif <(letter (12) of (answer)) = [0]> then\n    broadcast (Code Volume 100 v)\nelse\n    broadcast (Code Volume 0 v)\nend\nif <(letter (13) of (answer)) = [a]> then\n    set [skin v] to [Blue]\nend\nif <(letter (13) of (answer)) = [b]> then\n    set [skin v] to [Winter]\nend\nif <(letter (13) of (answer)) = [c]> then\n    set [skin v] to [Jungle]\nend\nif <(letter (13) of (answer)) = [d]> then\n    set [skin v] to [Desert]\nend\nif <(letter (13) of (answer)) = [e]> then\n    set [skin v] to [Honey]\nend\nif <(letter (13) of (answer)) = [f]> then\n    set [skin v] to [Maroon]\nend\nif <(letter (13) of (answer)) = [g]> then\n    set [skin v] to [Ninja]\nend\nif <(letter (13) of (answer)) = [h]> then\n    set [skin v] to [Ghost]\nend\nif <(letter (13) of (answer)) = [i]> then\n    set [skin v] to [Carbon Fiber]\nend\nif <(letter (13) of (answer)) = [j]> then\n    set [skin v] to [Industrial]\nend\nif <(letter (13) of (answer)) = [k]> then\n    set [skin v] to [Pirate]\nend\n\nwhen I receive [game code v]\nhide variable [game code \(generated\) v]\nswitch backdrop to (game code v)\nCode generate\nwait (Seconds) seconds\nshow variable [game code \(generated\) v]\n\ndefine Code generate\nset [game code \(generated\) v] to []\nif <(A Winter) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Jungle) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Desert) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Honey) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Maroon) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Ninja) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Ghost) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Carbon Fiber) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Industrial) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nif <(A Pirate) = [Yes]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (5)))\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (6) to (9)))\nend\nset [game code \(generated\) v] to (join (Game Code \(Generated\)) (letter (7) of (Preview Level)))\nif <(Volume) = [100]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [0])\nelse\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) (pick random (1) to (9)))\nend\nif <(Skin) = [Blue]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [a])\nend\nif <(Skin) = [Winter]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [b])\nend\nif <(Skin) = [Jungle]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [c])\nend\nif <(Skin) = [Desert]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [d])\nend\nif <(Skin) = [Honey]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [e])\nend\nif <(Skin) = [Maroon]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [f])\nend\nif <(Skin) = [Ninja]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [g])\nend\nif <(Skin) = [Ghost]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [h])\nend\nif <(Skin) = [Carbon Fiber]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [i])\nend\nif <(Skin) = [Industrial]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [j])\nend\nif <(Skin) = [Pirate]> then\n    set [game code \(generated\) v] to (join (Game Code \(Generated\)) [k])\nend\n\n@Start Level Button\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((180) - (size)) / (3))\n    else\n        change size by (((150) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [skins v]\nhide\n\nwhen this sprite clicked\nif <not <(Preview Level) = [Level 6]>> then\n    broadcast (Preview Level)\nend\n\nwhen I receive [game code v]\nhide\n\nwhen I receive [info v]\nhide\n\n@Skins Button\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (3))\n    else\n        change size by (((75) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [info v]\nhide\n\nwhen this sprite clicked\nbroadcast (Skins v)\nhide\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [game code v]\nhide\n\n@Info Button\n\nwhen I receive [skins v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (3))\n    else\n        change size by (((75) - (size)) / (3))\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [settings v]\nhide\n\nwhen this sprite clicked\nbroadcast (Info v)\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [game code v]\nhide\n\n@Settings Button\n\nwhen I receive [skins v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (3))\n    else\n        change size by (((75) - (size)) / (3))\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen this sprite clicked\nbroadcast (Settings v)\nhide\n\nwhen I receive [info v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [game code v]\nhide\n\n@Game Code Button\n\nwhen I receive [skins v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((105) - (size)) / (3))\n    else\n        change size by (((75) - (size)) / (3))\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen this sprite clicked\nbroadcast (Game Code v)\nhide\n\nwhen I receive [info v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [settings v]\nhide\n\n@Pause Button\n\nwhen flag clicked\nhide\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((95) - (size)) / (3))\n    else\n        change size by (((70) - (size)) / (3))\n    end\nend\n\nwhen I receive [home v]\nhide\n\nwhen I receive [level 1 complete v]\nhide\n\nwhen I receive [level 1 v]\nshow\n\nwhen I receive [level 2 v]\nshow\n\nwhen this sprite clicked\nbroadcast (Pause v)\nset [paused v] to [Yes]\nchange [timer v] by (timer)\nhide\n\nwhen I receive [level 2 complete v]\nhide\n\nwhen I receive [resume v]\nshow\n\nwhen I receive [level 3 v]\nshow\n\nwhen I receive [level 3 complete v]\nhide\n\nwhen I receive [level 4 v]\nshow\n\nwhen I receive [level 4 complete v]\nhide\n\nwhen I receive [level 5 complete v]\nhide\n\nwhen I receive [level 5 v]\nshow\n\n@Resume Button\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 3 v]\nhide\n\nwhen I receive [level 2 2 v]\nhide\n\nwhen I receive [level 1 3 v]\nhide\n\nwhen I receive [level 1 2 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 3 2 v]\nhide\n\nwhen I receive [level 3 3 v]\nhide\n\nwhen I receive [level 4 2 v]\nhide\n\nwhen I receive [level 4 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [level 5 2 v]\nhide\n\nwhen I receive [level 5 3 v]\nhide\n\nwhen I receive [pause v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((200) - (size)) / (3))\n        switch costume to (costume2 v)\n    else\n        change size by (((150) - (size)) / (3))\n        switch costume to (costume1 v)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Resume v)\nset [paused v] to [No]\nreset timer\nhide\n\nwhen I receive [home v]\nhide\n\nwhen flag clicked\nhide\n\n@Exit Button\n\nwhen I receive [resume v]\nhide\n\nwhen I receive [home v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [pause v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((140) - (size)) / (3))\n    else\n        change size by (((105) - (size)) / (3))\n    end\nend\n\nwhen this sprite clicked\nbroadcast (Home v)\nset [paused v] to [No]\nreset timer\nhide\n\n@Restart Button\n\nwhen I receive [resume v]\nhide\n\nwhen this sprite clicked\nbroadcast ([backdrop name v] of [_stage_ v])\nset [paused v] to [No]\nbroadcast (Resume v)\nreset timer\nhide\n\nwhen I receive [pause v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((140) - (size)) / (3))\n    else\n        change size by (((105) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\n@Back\n\nwhen flag clicked\nhide\nforever\n    Size Changing\nend\n\nwhen I receive [skins v]\ngo to x: (197) y: (140)\nshow\n\nwhen I receive [level 1 complete v]\ngo to x: (197) y: (130)\nshow\n\nwhen I receive [level 2 complete v]\ngo to x: (197) y: (100)\nshow\n\nwhen I receive [info v]\ngo to x: (197) y: (130)\nshow\n\nwhen this sprite clicked\nbroadcast (Home v)\nhide variable [game code v]\nset [game code v] to [0]\nhide\n\nwhen I receive [settings v]\ngo to x: (197) y: (130)\nshow\n\ndefine Size Changing\nif <touching (mouse-pointer v)?> then\n    change size by (((80) - (size)) / (3))\nelse\n    change size by (((55) - (size)) / (3))\nend\n\nwhen I receive [level 3 complete v]\ngo to x: (197) y: (100)\nshow\n\nwhen I receive [level 4 complete v]\ngo to x: (197) y: (100)\nshow\n\nwhen I receive [level 5 complete v]\ngo to x: (197) y: (100)\nshow\n\nwhen I receive [game code v]\ngo to x: (197) y: (130)\nshow\n\n@Left Arrow\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((165) - (size)) / (3))\n    else\n        change size by (((115) - (size)) / (3))\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [skins v]\nhide\n\nwhen I receive [info v]\nhide\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 2]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 1]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 3]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 2]\nend\n\nwhen I receive [level 3 v]\nhide\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 4]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 3]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 5]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 4]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 6]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 5]\nend\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [save v]\nhide\n\nwhen I receive [game code v]\nhide\n\n@Preview\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    switch costume to (Preview Level)\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [skins v]\nhide\n\nwhen I receive [info v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [level 3 v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [game code v]\nhide\n\n@Right Arrow\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((165) - (size)) / (3))\n    else\n        change size by (((115) - (size)) / (3))\n    end\nend\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [skins v]\nhide\n\nwhen I receive [info v]\nhide\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 1]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 2]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 2]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 3]\nend\n\nwhen I receive [level 3 v]\nhide\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 3]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 4]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 4]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 5]\nend\n\nwhen this sprite clicked\nif <(Preview Level) = [Level 5]> then\n    wait (0.1) seconds\n    set [preview level v] to [Level 6]\nend\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [level 4 v]\nhide\n\nwhen I receive [level 5 v]\nhide\n\nwhen I receive [game code v]\nhide\n\nwhen I receive [save v]\nhide\n\n@Level\n\nwhen flag clicked\nhide\n\nwhen I receive [level 1 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 2 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 3 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 4 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 5 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\n@Player\n\nwhen flag clicked\nhide\n\ndefine Platform Gravity: (gravity) Jump Height: (jump height) Side Movement Speed (side movement) Friction (friction)\nif <(Paused) = [No]> then\n    set [costume v] to (costume [name v])\n    if <(letter (length of (costume [name v])) of (costume [name v])) = [p]> then\n        switch costume to (hitboxjump v)\n    else\n        switch costume to (hitbox v)\n    end\n    change [velocity y v] by (gravity)\n    change y by (Velocity Y)\n    if <touching (level v)?> then\n        repeat until <not <touching (level v)?>>\n            if <<(letter (length of (costume [name v])) of (costume [name v])) = [p]> and <touching (level v)?>> then\n                switch costume to (join (Skin) [1])\n                set [costume v] to (costume [name v])\n                switch costume to (hitbox v)\n                change y by (((([abs v] of (Velocity Y) ) / (Velocity Y)) * (gravity)) * (-1))\n            end\n            change y by ((([abs v] of (Velocity Y) ) / (Velocity Y)) * (gravity))\n        end\n        set [velocity y v] to (<<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(([abs v] of (Velocity Y) ) / (Velocity Y)) = [-1]>> * (jump height))\n    end\n    set [velocity x v] to (((Velocity X) + ((<<key (left arrow v) pressed?> or <key (a v) pressed?>> * ((side movement) * (-1))) + (<<key (right arrow v) pressed?> or <key (d v) pressed?>> * (side movement)))) * (friction))\n    change x by (Velocity X)\n    if <touching (level v)?> then\n        repeat until <not <touching (level v)?>>\n            change x by ((([abs v] of (Velocity X) ) / (Velocity X)) * (-1))\n        end\n    end\n    switch costume to (Costume)\nend\n\nwhen I receive [level 1 v]\nshow\ngo to x: (-180) y: (-80)\npoint in direction (90)\nforever\n    Movement Code\nend\n\nwhen I receive [level 1 v]\nforever\n    Costumes Code\nend\n\nwhen I receive [level 1 v]\nforever\n    Direction Code\nend\n\nwhen I receive [level 1 2 v]\nshow\ngo to x: (-220) y: (-95)\npoint in direction (90)\n\nwhen I receive [level 1 3 v]\nshow\ngo to x: (-180) y: (-103)\npoint in direction (90)\n\nwhen I receive [level 2 v]\nshow\ngo to x: (-225) y: (154)\npoint in direction (90)\nforever\n    Movement Code\nend\n\nwhen I receive [level 2 v]\nforever\n    Costumes Code\nend\n\nwhen I receive [level 2 v]\nforever\n    Direction Code\nend\n\nwhen I receive [level 2 2 v]\nshow\ngo to x: (-223) y: (0)\npoint in direction (90)\n\nwhen I receive [level 2 3 v]\nshow\ngo to x: (-150) y: (125)\npoint in direction (90)\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\nwhen I receive [level 1 v]\nforever\n    if <<touching (spikes v)?> or <touching (spikes 2 v)?>> then\n        Dying Code\n    end\nend\n\nwhen I receive [level 2 v]\nforever\n    if <<touching (spikes v)?> or <touching (spikes 2 v)?>> then\n        Dying Code\n    end\nend\n\ndefine Dying Code\nset [paused v] to [Yes]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nbroadcast ([backdrop name v] of [_stage_ v])\nclear graphic effects\nset [paused v] to [No]\n\ndefine Costumes Code\nif <(Paused) = [No]> then\n    if <(Velocity Y) = [0]> then\n        switch costume to (join (Skin) [1])\n        wait (0.15) seconds\n        switch costume to (join (Skin) [2])\n        wait (0.15) seconds\n    end\n    if <[0] < (Velocity Y)> then\n        switch costume to (join (Skin) [Jump])\n    end\n    if <(Velocity Y) < [0]> then\n        switch costume to (join (Skin) [Splat])\n    end\nend\n\ndefine Direction Code\nif <(Paused) = [No]> then\n    set rotation style [left-right v]\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n    end\nend\n\ndefine Movement Code\nif <not <touching (water v)?>> then\n    Platform Gravity: [-1] Jump Height: [12.5] Side Movement Speed [3] Friction [0.7]\n    set [touching water v] to [0]\nend\nif <touching (water v)?> then\n    Platform Gravity: [-0.1] Jump Height: [5] Side Movement Speed [1] Friction [0.7]\n    set [touching water v] to [1]\nend\n\nwhen I receive [level 3 v]\nshow\ngo to x: (-220) y: (-112)\npoint in direction (90)\nforever\n    Movement Code\nend\n\nwhen I receive [level 3 2 v]\nshow\ngo to x: (-210) y: (-50)\npoint in direction (90)\n\nwhen I receive [level 3 3 v]\nshow\ngo to x: (-35) y: (165)\npoint in direction (-90)\n\nwhen I receive [level 3 v]\nforever\n    if <<touching (spikes v)?> or <touching (spikes 2 v)?>> then\n        Dying Code\n    end\nend\n\nwhen I receive [level 3 v]\nforever\n    Direction Code\nend\n\nwhen I receive [level 3 v]\nforever\n    Costumes Code\nend\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\nwhen I receive [dying v]\nDying Code\n\nwhen I receive [level 4 v]\ngo to x: (-220) y: (-100)\npoint in direction (90)\nshow\nforever\n    Movement Code\nend\n\nwhen I receive [level 4 2 v]\nshow\ngo to x: (-220) y: (-40)\npoint in direction (90)\n\nwhen I receive [level 4 3 v]\nshow\ngo to x: (40) y: (115)\npoint in direction (90)\n\nwhen I receive [level 5 v]\nshow\ngo to x: (-1) y: (-112)\npoint in direction (90)\nforever\n    Movement Code\nend\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\nwhen I receive [level 5 2 v]\nshow\ngo to x: (-210) y: (0)\npoint in direction (90)\n\nwhen I receive [level 5 3 v]\nshow\ngo to x: (-215) y: (0)\npoint in direction (90)\n\nwhen I receive [level 4 v]\nforever\n    if <<touching (spikes v)?> or <touching (spikes 2 v)?>> then\n        Dying Code\n    end\nend\n\nwhen I receive [level 5 v]\nforever\n    if <<touching (spikes v)?> or <touching (spikes 2 v)?>> then\n        Dying Code\n    end\nend\n\nwhen I receive [level 4 v]\nforever\n    Direction Code\nend\n\nwhen I receive [level 5 v]\nforever\n    Direction Code\nend\n\nwhen I receive [level 4 v]\nforever\n    Costumes Code\nend\n\nwhen I receive [level 5 v]\nforever\n    Costumes Code\nend\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nset [paused v] to [No]\nhide\n\n@Exit\n\nwhen flag clicked\nhide\nforever\n    if <<touching (player v)?> and <(Key) = [1]>> then\n        if <([backdrop name v] of [_stage_ v]) = [Level 1]> then\n            broadcast (Level 1 2 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 1 2]> then\n            broadcast (Level 1 3 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 1 3]> then\n            broadcast (Level 1 complete v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 2]> then\n            broadcast (Level 2 2 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 2 2]> then\n            broadcast (Level 2 3 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 2 3]> then\n            broadcast (Level 2 complete v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 3]> then\n            broadcast (Level 3 2 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 3 2]> then\n            broadcast (Level 3 3 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 3 3]> then\n            broadcast (Level 3 complete v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 4]> then\n            broadcast (Level 4 2 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 4 2]> then\n            broadcast (Level 4 3 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 4 3]> then\n            broadcast (Level 4 complete v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 5]> then\n            broadcast (Level 5 2 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 5 2]> then\n            broadcast (Level 5 3 v)\n        end\n        if <([backdrop name v] of [_stage_ v]) = [Level 5 3]> then\n            broadcast (Level 5 complete v)\n        end\n    end\nend\n\nwhen I receive [level 1 v]\nshow\ngo to x: (225) y: (-102)\n\nwhen I receive [level 1 2 v]\nshow\ngo to x: (225) y: (125)\n\nwhen I receive [level 1 3 v]\nshow\ngo to x: (225) y: (-102)\n\nwhen I receive [level 1 complete v]\nhide\n\nwhen I receive [level 2 v]\nshow\ngo to x: (225) y: (-3)\n\nwhen I receive [level 2 2 v]\nshow\ngo to x: (-225) y: (133)\n\nwhen I receive [level 2 3 v]\nshow\ngo to x: (225) y: (109)\n\nwhen I receive [level 2 complete v]\nhide\n\nwhen I receive [level 3 v]\nshow\ngo to x: (27) y: (42)\n\nwhen I receive [level 3 2 v]\nshow\ngo to x: (225) y: (-102)\n\nwhen I receive [level 3 3 v]\nshow\ngo to x: (34) y: (149)\n\nwhen I receive [level 3 complete v]\nhide\n\nwhen I receive [level 4 complete v]\nhide\n\nwhen I receive [level 4 3 v]\nshow\ngo to x: (225) y: (137)\n\nwhen I receive [level 4 2 v]\nshow\ngo to x: (225) y: (-3)\n\nwhen I receive [level 4 v]\nshow\ngo to x: (-225) y: (108)\n\nwhen I receive [level 5 complete v]\nhide\n\nwhen I receive [level 5 3 v]\nshow\ngo to x: (225) y: (-130)\n\nwhen I receive [level 5 2 v]\nshow\ngo to x: (225) y: (139)\n\nwhen I receive [level 5 v]\nshow\ngo to x: (240) y: (108)\n\nwhen I receive [home v]\nhide\n\n@BackGround\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 complete v]\nhide\n\nwhen flag clicked\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 1 v]\nshow\n\nwhen I receive [level 2 v]\nshow\n\nwhen I receive [level 3 v]\nshow\n\nwhen I receive [level 3 complete v]\nhide\n\nwhen I receive [level 4 v]\nshow\n\nwhen I receive [level 5 v]\nshow\n\nwhen I receive [level 4 complete v]\nhide\n\nwhen I receive [level 5 complete v]\nhide\n\nwhen I receive [level 1 complete v]\nhide\n\nwhen I receive [home v]\nhide\n\n@ForeGround\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 complete v]\nhide\n\nwhen I receive [level 2 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 3 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 3 complete v]\nhide\n\nwhen I receive [level 1 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 4 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 4 complete v]\nhide\n\nwhen I receive [level 5 complete v]\nhide\n\nwhen I receive [level 5 v]\nshow\nforever\n    switch costume to ([backdrop name v] of [_stage_ v])\nend\n\nwhen I receive [level 1 complete v]\nhide\n\nwhen I receive [home v]\nhide\n\n@Key\n\nwhen I receive [level 1 v]\nshow\ngo to x: (0) y: (125)\n\nwhen I receive [level 1 2 v]\nshow\ngo to x: (0) y: (100)\n\nwhen I receive [level 1 3 v]\nshow\ngo to x: (200) y: (120)\n\nwhen I receive [level 2 v]\nshow\ngo to x: (-90) y: (-90)\n\nwhen I receive [level 2 2 v]\nshow\ngo to x: (200) y: (140)\n\nwhen I receive [level 2 3 v]\nshow\ngo to x: (-175) y: (-50)\n\nwhen I receive [home v]\nhide\n\nwhen flag clicked\nhide\n\ndefine Collected\nif <touching (player v)?> then\n    hide\n    set [key v] to [1]\n    broadcast (Go v)\n    stop [this script v]\nend\n\nwhen I receive [level 3 v]\nshow\ngo to x: (157) y: (45)\n\nwhen I receive [level 3 2 v]\nshow\ngo to x: (-216) y: (123)\n\nwhen I receive [level 3 3 v]\nshow\ngo to x: (-205) y: (-85)\n\nwhen I receive [level 4 v]\nshow\ngo to x: (-188) y: (15)\n\nwhen I receive [level 5 v]\nshow\ngo to x: (-185) y: (-75)\n\nwhen I receive [level 4 2 v]\nshow\ngo to x: (-217) y: (155)\n\nwhen I receive [level 4 3 v]\nshow\ngo to x: (-220) y: (140)\n\nwhen I receive [level 5 2 v]\nshow\ngo to x: (172) y: (-125)\n\nwhen I receive [level 5 3 v]\nshow\ngo to x: (143) y: (140)\n\nwhen I receive [level 1 v]\nforever\n    Collected\nend\n\nwhen I receive [level 1 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 1 3 v]\nforever\n    Collected\nend\n\nwhen I receive [level 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 2 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 2 3 v]\nforever\n    Collected\nend\n\nwhen I receive [level 3 v]\nforever\n    Collected\nend\n\nwhen I receive [level 3 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 3 3 v]\nforever\n    Collected\nend\n\nwhen I receive [level 4 v]\nforever\n    Collected\nend\n\nwhen I receive [level 5 v]\nforever\n    Collected\nend\n\nwhen I receive [level 4 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 4 3 v]\nforever\n    Collected\nend\n\nwhen I receive [level 5 2 v]\nforever\n    Collected\nend\n\nwhen I receive [level 5 3 v]\nforever\n    Collected\nend\n\nwhen I receive [home v]\nhide\n\nwhen I receive [home v]\nhide\n\n@KeyMove\n\nwhen I receive [go v]\nshow\nset rotation style [left-right v]\nrepeat until <(Key) = [0]>\n    go to (player v)\nend\nhide\n\nwhen flag clicked\nhide\nforever\n    if <(Paused) = [No]> then\n        set rotation style [left-right v]\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            point in direction (-90)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            point in direction (90)\n        end\n    end\nend\n\nwhen I receive [level 1 complete v]\nhide\n\nwhen I receive [level 2 complete v]\nhide\n\nwhen I receive [level 3 complete v]\nhide\n\nwhen I receive [level 4 complete v]\nhide\n\nwhen I receive [level 5 complete v]\nhide\n\n@Fighting Animation\n\nwhen I receive [level 1 v]\nforever\n    Action\nend\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 1 v]\nset rotation style [left-right v]\nforever\n    Direction\nend\n\nwhen I receive [level 2 v]\nforever\n    go to (player v)\nend\n\nwhen I receive [level 1 v]\nforever\n    go to (player v)\nend\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nhide\n\ndefine Action\nif <<key (space v) pressed?> or <mouse down?>> then\n    if <(Paused) = [No]> then\n        show\n        switch costume to (1 v)\n        wait (0.02) seconds\n        switch costume to (2 v)\n        wait (0.02) seconds\n        switch costume to (3 v)\n        wait (0.02) seconds\n        switch costume to (4 v)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        clear graphic effects\n        hide\n    end\nend\n\nwhen I receive [level 2 v]\nforever\n    Action\nend\n\nwhen I receive [level 3 v]\nforever\n    Action\nend\n\ndefine Direction\nif <(Paused) = [No]> then\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (-90)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (90)\n    end\nend\n\nwhen I receive [level 2 v]\nset rotation style [left-right v]\nforever\n    Direction\nend\n\nwhen I receive [level 3 v]\nset rotation style [left-right v]\nforever\n    Direction\nend\n\nwhen I receive [level 3 v]\nforever\n    go to (player v)\nend\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen flag clicked\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 4 v]\nforever\n    Action\nend\n\nwhen I receive [level 5 v]\nforever\n    Action\nend\n\nwhen I receive [level 4 v]\nset rotation style [left-right v]\nforever\n    Direction\nend\n\nwhen I receive [level 5 v]\nset rotation style [left-right v]\nforever\n    Direction\nend\n\nwhen I receive [level 4 v]\nforever\n    go to (player v)\nend\n\nwhen I receive [level 5 v]\nforever\n    go to (player v)\nend\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\nhide\n\n@Paused Text\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 3 v]\nhide\n\nwhen I receive [level 2 2 v]\nhide\n\nwhen I receive [level 1 3 v]\nhide\n\nwhen I receive [level 1 2 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [pause v]\nshow\n\nwhen I receive [resume v]\nhide\n\n@Spikes\n\nwhen flag clicked\nhide\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 1 v]\nshow\nforever\n    Costume\nend\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nhide\n\ndefine Costume\nif <(Paused) = [No]> then\n    switch costume to (join ([backdrop name v] of [_stage_ v]) [a])\n    wait (0.3) seconds\n    switch costume to (join ([backdrop name v] of [_stage_ v]) [b])\n    wait (0.3) seconds\nend\n\nwhen I receive [level 2 v]\nshow\nforever\n    Costume\nend\n\nwhen I receive [level 3 v]\nshow\nforever\n    Costume\nend\n\nwhen I receive [level 4 v]\nshow\nforever\n    Costume\nend\n\nwhen I receive [level 5 v]\nshow\nforever\n    Costume\nend\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\nhide\n\n@Spikes 2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        broadcast ([backdrop name v] of [_stage_ v])\n        change [deaths in game v] by (1)\n    end\nend\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 2 v]\nshow\nswitch costume to (level 2 v)\ngo to x: (0) y: (0)\nforever\n    if <(Paused) = [No]> then\n        Movement (wait speed) [0.65]\n    end\nend\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 2 2 v]\nstop [other scripts in sprite v]\nhide\n\ndefine Movement (wait speed) (s)\nshow\nrepeat (20)\n    change y by (-0.5)\nend\nhide\nwait (s) seconds\nshow\nrepeat (20)\n    change y by (0.5)\nend\nwait (0.65) seconds\n\nwhen I receive [level 3 v]\nshow\nswitch costume to (level 3 v)\ngo to x: (0) y: (0)\nforever\n    if <(Paused) = [No]> then\n        Movement (wait speed) [0.75]\n    end\nend\n\nwhen I receive [level 3 2 v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 4 3 v]\nshow\nswitch costume to (level 4 3 v)\ngo to x: (0) y: (0)\nforever\n    if <(Paused) = [No]> then\n        Movement (wait speed) [0.75]\n    end\nend\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 5 3 v]\nshow\nswitch costume to (level 5 3 v)\ngo to x: (0) y: (0)\nforever\n    if <(Paused) = [No]> then\n        Movement (wait speed) [0.75]\n    end\nend\n\n@Water\n\nwhen flag clicked\nhide\nset [ghost v] effect to (50)\n\nwhen I receive [home v]\nhide\n\nwhen I receive [level 1 2 v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [level 1 3 v]\nhide\n\nwhen I receive [level 2 v]\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [level 2 2 v]\nhide\n\nwhen I receive [level 3 v]\nswitch costume to (costume3 v)\nshow\n\nwhen I receive [level 3 2 v]\nhide\n\nwhen I receive [level 5 2 v]\nswitch costume to (costume4 v)\nshow\n\nwhen I receive [level 5 3 v]\nhide\n\n@Blue Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nset [skin v] to [Blue]\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(Skin) = [Blue]> then\n            say [Selected]\n        else\n            say [Default]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(Skin) = [Blue]> then\n        switch costume to (selected v)\n    else\n        switch costume to (unselected v)\n    end\nend\n\n@Winter Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Winter) = [Yes]> then\n    set [skin v] to [Winter]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Winter) = [Yes]> then\n            if <(Skin) = [Winter]> then\n                say [Selected]\n            else\n                say [Winter]\n            end\n        end\n        if <(A Winter) = [0]> then\n            say [Complete Practice Level to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Winter) = [Yes]> then\n        if <(Skin) = [Winter]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\nswitch costume to (selected v)\n\n@Jungle Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Jungle) = [Yes]> then\n    set [skin v] to [Jungle]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Jungle) = [Yes]> then\n            if <(Skin) = [Jungle]> then\n                say [Selected]\n                switch costume to (selected v)\n            else\n                say [Jungle]\n                switch costume to (unselected v)\n            end\n        end\n        if <(A Jungle) = [0]> then\n            say [Complete Level 1 to unlock]\n            switch costume to (unknown v)\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Jungle) = [Yes]> then\n        if <(Skin) = [Jungle]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Desert Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Desert) = [Yes]> then\n    set [skin v] to [Desert]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Desert) = [Yes]> then\n            if <(Skin) = [Desert]> then\n                say [Selected]\n            else\n                say [Desert]\n            end\n        end\n        if <(A Desert) = [0]> then\n            say [Complete Level 2 to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Desert) = [Yes]> then\n        if <(Skin) = [Desert]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Honey Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Honey) = [Yes]> then\n    set [skin v] to [Honey]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Honey) = [Yes]> then\n            if <(Skin) = [Honey]> then\n                say [Selected]\n            else\n                say [Honey]\n            end\n        end\n        if <(A Honey) = [0]> then\n            say [Complete Level 3 to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Honey) = [Yes]> then\n        if <(Skin) = [Honey]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Maroon Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Maroon) = [Yes]> then\n    set [skin v] to [Maroon]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Maroon) = [Yes]> then\n            if <(Skin) = [Maroon]> then\n                say [Selected]\n            else\n                say [Maroon]\n            end\n        end\n        if <(A Maroon) = [0]> then\n            say [Complete Level 4 to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Maroon) = [Yes]> then\n        if <(Skin) = [Maroon]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Ninja Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Ninja) = [Yes]> then\n    set [skin v] to [Ninja]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Ninja) = [Yes]> then\n            if <(Skin) = [Ninja]> then\n                say [Selected]\n            else\n                say [Ninja]\n            end\n        end\n        if <(A Ninja) = [0]> then\n            say [Complete Practice level in 25 seconds to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Ninja) = [Yes]> then\n        if <(Skin) = [Ninja]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Ghost Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Ghost) = [Yes]> then\n    set [skin v] to [Ghost]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Ghost) = [Yes]> then\n            if <(Skin) = [Ghost]> then\n                say [Selected]\n            else\n                say [Ghost]\n            end\n        end\n        if <(A Ghost) = [0]> then\n            say [Complete Level 1 in 45 seconds to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Ghost) = [Yes]> then\n        if <(Skin) = [Ghost]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Carbon Fiber Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Carbon Fiber) = [Yes]> then\n    set [skin v] to [Carbon Fiber]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Carbon Fiber) = [Yes]> then\n            if <(Skin) = [Carbon Fiber]> then\n                say [Selected]\n            else\n                say [Carbon Fiber]\n            end\n        end\n        if <(A Carbon Fiber) = [0]> then\n            say [Complete Level 2 in ? seconds to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Carbon Fiber) = [Yes]> then\n        if <(Skin) = [Carbon Fiber]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Industrial Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Industrial) = [Yes]> then\n    set [skin v] to [Industrial]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Industrial) = [Yes]> then\n            if <(Skin) = [Industrial]> then\n                say [Selected]\n            else\n                say [Industrial]\n            end\n        end\n        if <(A Industrial) = [0]> then\n            say [Complete Level 3 in 45 seconds to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Industrial) = [Yes]> then\n        if <(Skin) = [Industrial]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Pirate Button\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen this sprite clicked\nif <(A Pirate) = [Yes]> then\n    set [skin v] to [Pirate]\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (3))\n        if <(A Pirate) = [Yes]> then\n            if <(Skin) = [Pirate]> then\n                say [Selected]\n            else\n                say [Pirate]\n            end\n        end\n        if <(A Pirate) = [0]> then\n            say [Complete Level 4 in 35 seconds to unlock]\n        end\n    else\n        change size by (((80) - (size)) / (3))\n        say []\n    end\nend\n\nwhen I receive [skins v]\nshow\nforever\n    if <(A Pirate) = [Yes]> then\n        if <(Skin) = [Pirate]> then\n            switch costume to (selected v)\n        else\n            switch costume to (unselected v)\n        end\n    else\n        switch costume to (unknown v)\n    end\nend\n\n@Unlock (Red,Coffee,Summer)\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\ndefine Costume (?)\nif <(Area 1 filled) = [1]> then\n    switch costume to (?)\n    show\nelse\n    hide\nend\n\nwhen I receive [level 2 complete v]\nforever\n    Costume [Jungle Unlocked]\nend\n\nwhen I receive [level 3 complete v]\nforever\n    Costume [Desert Unlocked]\nend\n\nwhen flag clicked\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 4 complete v]\nforever\n    Costume [Honey Unlocked]\nend\n\nwhen I receive [level 5 complete v]\nforever\n    Costume [Maroon Unlocked]\nend\n\nwhen I receive [level 1 complete v]\nforever\n    Costume [Winter Unlocked]\nend\n\nwhen flag clicked\nhide\n\n@Unlock (Ninja)\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\nhide\n\ndefine Costume (?)\nif <(Area 2 filled) = [1]> then\n    switch costume to (?)\n    show\nelse\n    hide\nend\nif <(Area 1 filled) = [1]> then\n    go to x: (0) y: (-55)\nend\nif <(Area 1 filled) = [0]> then\n    go to x: (0) y: (15)\nend\n\nwhen I receive [level 2 complete v]\nforever\n    Costume [Ghost]\nend\n\nwhen I receive [level 3 complete v]\nforever\n    Costume [Carbon Fiber]\nend\n\nwhen flag clicked\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 1 complete v]\nforever\n    Costume [Ninja]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [level 4 complete v]\nforever\n    Costume [Industrial]\nend\n\nwhen I receive [level 5 complete v]\nforever\n    Costume [Pirate]\nend\n\n@Shade\n\nwhen flag clicked\nhide\n\nwhen I receive [pause v]\nshow\n\nwhen I receive [resume v]\nhide\n\nwhen I receive [home v]\nhide\n\nwhen I receive [level 1 v]\nhide\n\nwhen I receive [level 2 v]\nhide\n\nwhen I receive [level 1 2 v]\nhide\n\nwhen I receive [level 1 3 v]\nhide\n\nwhen I receive [level 2 2 v]\nhide\n\nwhen I receive [level 2 3 v]\nhide\n\n@Cover\n\nwhen flag clicked\nswitch costume to (black v)\nshow\nset [ghost v] effect to (0)\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nwait (Seconds) seconds\nbroadcast (Animation v)\nwait (0.7) seconds\nbroadcast (Login Page v)\n\nwhen I receive [new game v]\n\nwhen I receive [animation v]\nshow\nAnimation\n\ndefine Animation\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nclear graphic effects\nhide\n\n@Load Circle\n\nwhen flag clicked\ngo to x: (-100) y: (-55)\nshow\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [login page v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [new game v]\ngo to x: (-100) y: (-55)\nshow\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [home v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [game code v]\ngo to x: (0) y: (-50)\nshow\nforever\n    turn right (5) degrees\nend\n\nwhen I receive [game code v]\nwait (Seconds) seconds\nstop [other scripts in sprite v]\nhide\n\n@Enemy 1\n\nwhen flag clicked\nhide\n\nwhen I receive [home v]\nhide\n\nwhen I receive [action v]\nforever\n    if <([backdrop name v] of [_stage_ v]) = [Level 1 3]> then\n        glide (1.5) secs to x: (-115) y: (94)\n        wait (1) seconds\n        point in direction (90)\n        glide (1.5) secs to x: (20) y: (94)\n        wait (1) seconds\n        point in direction (-90)\n    end\n    if <([backdrop name v] of [_stage_ v]) = [Level 2 2]> then\n        glide (0.5) secs to x: (-225) y: (122)\n        wait (1.5) seconds\n        point in direction (90)\n        glide (0.5) secs to x: (-179) y: (122)\n        wait (1.5) seconds\n        point in direction (-90)\n    end\n    if <([backdrop name v] of [_stage_ v]) = [Level 2 3]> then\n        glide (1) secs to x: (-210) y: (-114)\n        wait (1) seconds\n        point in direction (90)\n        glide (1) secs to x: (-100) y: (-114)\n        wait (1) seconds\n        point in direction (-90)\n    end\n    if <([backdrop name v] of [_stage_ v]) = [Level 3 2]> then\n        glide (0.5) secs to x: (180) y: (-114)\n        wait (1) seconds\n        point in direction (-90)\n        glide (0.5) secs to x: (120) y: (-114)\n        wait (1) seconds\n        point in direction (90)\n    end\n    if <([backdrop name v] of [_stage_ v]) = [Level 4]> then\n        glide (1) secs to x: (20) y: (-11)\n        wait (1) seconds\n        point in direction (-90)\n        glide (1) secs to x: (-120) y: (-11)\n        wait (1) seconds\n        point in direction (90)\n    end\nend\n\nwhen I receive [level 1 3 v]\ngo to x: [20] go to y: [94] direction: [-90]\n\nwhen I receive [action v]\nforever\n    switch costume to (costume1 v)\n    wait (0.15) seconds\n    switch costume to (costume2 v)\n    wait (0.15) seconds\nend\n\nwhen I receive [action v]\nforever\n    if <touching (fighting animation v)?> then\n        switch costume to (costume3 v)\n        wait until <not <touching (fighting animation v)?>>\n        stop [other scripts in sprite v]\n        hide\n    end\n    if <touching (player v)?> then\n        broadcast (Dying v)\n    end\nend\n\nwhen I receive [resume v]\nif <([backdrop name v] of [_stage_ v]) = [Level 1 3]> then\n    go to x: [20] go to y: [94] direction: [-90]\nend\nif <([backdrop name v] of [_stage_ v]) = [Level 2 2]> then\n    go to x: [-179] go to y: [122] direction: [-90]\nend\nif <([backdrop name v] of [_stage_ v]) = [Level 2 3]> then\n    go to x: [-100] go to y: [-114] direction: [-90]\nend\nif <([backdrop name v] of [_stage_ v]) = [Level 3 2]> then\n    go to x: [120] go to y: [-114] direction: [-90]\nend\nif <([backdrop name v] of [_stage_ v]) = [Level 4]> then\n    go to x: [20] go to y: [-11] direction: [-90]\nend\n\nwhen I receive [pause v]\nstop [other scripts in sprite v]\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 2 2 v]\ngo to x: [-179] go to y: [122] direction: [-90]\n\nwhen I receive [level 2 3 v]\ngo to x: [-100] go to y: [-114] direction: [-90]\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 3 2 v]\ngo to x: [120] go to y: [-114] direction: [-90]\n\ndefine go to x: (x) go to y: (y) direction: (d)\ngo to x: (x) y: (y)\npoint in direction (d)\nbroadcast (Action v)\nshow\n\nwhen I receive [level 4 v]\ngo to x: [20] go to y: [-11] direction: [-90]\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [level 4 2 v]\nstop [other scripts in sprite v]\nhide\n\n@Bubble\n\nwhen I start as a clone\ngo to (player v)\nshow\nset size to (pick random (40) to (90)) %\n\nwhen I start as a clone\nrepeat until <<<touching (level v)?> and <touching (spikes v)?>> or <not <touching (water v)?>>>\n    change x by (pick random (1) to (3))\n    wait (pick random (0) to (0.5)) seconds\n    change x by (pick random (-1) to (-3))\n    wait (pick random (0) to (0.5)) seconds\nend\n\nwhen I start as a clone\nrepeat until <<touching (level v)?> or <not <touching (water v)?>>>\n    switch costume to (costume1 v)\n    change y by (2)\nend\nswitch costume to (costume2 v)\nwait (0.1) seconds\nhide\ndelete this clone\n\nwhen I receive [level 1 v]\nforever\n    Cloning\nend\n\nwhen I receive [home v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level 1 complete v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level 2 complete v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level 3 complete v]\nstop [other scripts in sprite v]\ndelete this clone\n\ndefine Cloning\nhide\ngo to (player v)\nif <(Touching water) = [1]> then\n    wait (pick random (0.1) to (0.7)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [level 2 v]\nforever\n    Cloning\nend\n\nwhen I receive [level 3 v]\nforever\n    Cloning\nend\n\nwhen I receive [level 4 v]\nforever\n    Cloning\nend\n\nwhen I receive [level 5 v]\nforever\n    Cloning\nend\n\nwhen I receive [level 4 complete v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [level 5 complete v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@Customize C\n\nwhen flag clicked\nswitch costume to (on v)\nhide\nforever\n    set [volume v] to (volume)\n    if <(costume [name v]) = [On]> then\n        set volume to (100) %\n    end\n    if <(costume [name v]) = [Off]> then\n        set volume to (0) %\n    end\nend\n\nwhen I receive [settings v]\nshow\n\nwhen this sprite clicked\nnext costume\n\nwhen flag clicked\nforever\n    play sound [Music v] until done\nend\n\nwhen I receive [home v]\nhide\n\nwhen I receive [code volume 100 v]\nswitch costume to (on v)\n\nwhen I receive [code volume 0 v]\nswitch costume to (off v)\n\n@Login\n\nwhen I receive [login page v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((115) - (size)) / (3))\n    else\n        change size by (((90) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (Login v)\nhide\n\nwhen I receive [new game v]\nhide\n\n@New Game\n\nwhen I receive [login page v]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((115) - (size)) / (3))\n    else\n        change size by (((90) - (size)) / (3))\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [login v]\nhide\n\nwhen this sprite clicked\nbroadcast (New Game v)\nhide\n\n