WORLDS - a platformer by bestCoconut
@Stage\n\nwhen flag clicked\nforever\n    if <<(Level) > [4]> and <not <(Level) = [8]>>> then\n        repeat (2)\n            change [brightness v] effect by (-50)\n        end\n        broadcast (world 2 v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\n\nforever\n    repeat (100)\n        change [brightness v] effect by (10)\n    end\n    repeat (100)\n        change [brightness v] effect by (-10)\n    end\nend\n\nforever\n    \n        switch backdrop to (backdrop2 v)\n    else\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) < [5]> and <(Level) > [0]>> then\n        if <(Level) = [4]> then\n            switch backdrop to (backdrop2 v)\n        else\n            switch backdrop to (backdrop6 v)\n        end\n    end\n    if <(Level) > [8]> then\n        clear graphic effects\n        if <(Level) = [10]> then\n            switch backdrop to (backdrop5 v)\n            broadcast (world 3 v)\n        else\n            switch backdrop to (backdrop4 v)\n            broadcast (world 3 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        set [brightness v] effect to (0)\n        clear graphic effects\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [13]> then\n        switch backdrop to (backdrop6 v)\n    end\n    if <(Level) > [16]> then\n        switch backdrop to (backdrop7 v)\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) < [17]> and <(Level) > [13]>> then\n        set [brightness v] effect to (100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [21]> then\n        set [brightness v] effect to (0)\n        clear graphic effects\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [26]> then\n        switch backdrop to (backdrop8 v)\n    end\n    if <(Level) = [27]> then\n        switch backdrop to (backdrop9 v)\n    end\nend\n\n@Sprite1\n\ndefine Talk (delay frames) (input) (tone) (wait)\nset [\(talk\) number v] to [1]\nset [\(talk\) say v] to []\nrepeat (length of (input))\n    set [\(talk\) say v] to (join (\(Talk\) Say) (letter (\(Talk\) Number) of (input)))\n    say (\(Talk\) Say)\n    wait ((delay frames) * (0.03)) seconds\n    if <[\(talk\) punctuation v] contains (letter (\(Talk\) Number) of (input))?> then\n        wait (0.3) seconds\n    end\n    change [\(talk\) number v] by (1)\nend\nsay (input) for (wait) seconds\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> and <not <touching (sprite21 v)?>>> then\n        change [speedx v] by (1)\n    end\n    if <<key (left arrow v) pressed?> and <not <touching (sprite21 v)?>>> then\n        change [speedx v] by (-1)\n    end\n    change x by (speedX)\n    if <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <<touching (sprite46 v)?> or <<touching (sprite56 v)?> or <<touching (sprite43 v)?> or <touching (sprite38 v)?>>>>>> then\n        change x by ((speedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((speedX) * (0.8))\n    end\n    change y by (speedY)\n    if <<touching (sprite2 v)?> or <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <<touching (sprite44 v)?> or <<touching (sprite46 v)?> or <<touching (sprite47 v)?> or <<touching (sprite54 v)?> or <<touching (sprite55 v)?> or <<touching (sprite56 v)?> or <touching (sprite38 v)?>>>>>>>>>> then\n        change y by ((speedY) * (-1))\n        set [speedy v] to [0]\n        if <(lock) = [0]> then\n            if <<key (up arrow v) pressed?> and <not <touching (sprite21 v)?>>> then\n                set [speedy v] to [10]\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\nend\n\nwhen flag clicked\ngo to x: (-258) y: (-36)\nset [speedy v] to [0]\nset [speedx v] to [0]\n\nwhen flag clicked\nset [level v] to [0]\nchange [level v] by (1)\nforever\n    if <touching (sprite3 v)?> then\n        if <(Level) = [4]> then\n            broadcast (next level v)\n            wait (0.4) seconds\n            go to x: (-278) y: (100)\n            change [level v] by (1)\n            clear graphic effects\n            set size to (100) %\n        else\n            broadcast (next level v)\n            wait (0.4) seconds\n            go to x: (-278) y: (-80)\n            change [level v] by (1)\n            clear graphic effects\n            set size to (100) %\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume3 v)\nforever\n    if <<touching (sprite5 v)?> or <<touching (sprite4 v)?> or <<touching (sprite41 v)?> or <<touching (sprite42 v)?> or <<touching (sprite50 v)?> or <<touching (sprite51 v)?> or <<touching (sprite52 v)?> or <<touching (sprite53 v)?> or <<touching (sprite11 v)?> or <<touching (sprite43 v)?> or <<touching (sprite62 v)?> or <<touching (sprite13 v)?> or <<touching (sprite58 v)?> or <<touching (sprite59 v)?> or <<touching (sprite60 v)?> or <<touching (sprite61 v)?> or <<touching (sprite62 v)?> or <<touching (sprite70 v)?> or <touching (sprite12 v)?>>>>>>>>>>>>>>>>>>> then\n        go to x: (-220) y: (-50)\n        broadcast (restart 3 v)\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    set size to (150) %\nend\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    if <touching (sprite10 v)?> then\n        if <<<touching (sprite2 v)?> or <touching (sprite10 v)?>> or <touching (sprite28 v)?>> then\n            change x by ((speedX) * (-1))\n            set [speedx v] to [0]\n        else\n            set [speedx v] to ((speedX) * (0.8))\n        end\n        change y by (speedY)\n        if <<<touching (sprite2 v)?> or <touching (sprite10 v)?>> or <touching (sprite28 v)?>> then\n            change y by ((speedY) * (-1))\n            set [speedy v] to [0]\n            if <(lock) = [0]> then\n                set [speedy v] to [19.5]\n                set [lock v] to [1]\n            end\n        else\n            change [speedy v] by (-1)\n            set [lock v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\nwhen flag clicked\n\nwhen flag clicked\nwait (4) seconds\nbroadcast (game started v)\n\nwhen I receive [color picked v]\nshow\n\nwhen flag clicked\n\nwhen flag clicked\n\nrepeat until <not <touching (sprite2 v)?>>\n    change y by (1)\nend\n\nrepeat until <not <touching (sprite2 v)?>>\n    change y by (1)\nend\n\nwhen I receive [world 2 v]\nforever\n    go to [front v] layer\n    broadcast (Light v)\nend\n\nforever\n    if <(Level) = [8]> then\n        go to x: (-13) y: (138)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite16 v)?> then\n        change y by (1)\n    end\nend\n\nrepeat until <color (#000000) is touching <not <touching (sprite2 v)?>>?>\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        broadcast (world 5 v)\n    end\nend\n\nwhen flag clicked\n\nrepeat (200)\n\nwhen flag clicked\nforever\n    set [x position 2 v] to (x position)\nend\n\nwhen flag clicked\nforever\n\nif <touching (sprite24 v)?> then\n    clear graphic effects\n    set size to (100) %\n    glide (0.3) secs to x: (-220) y: (-50)\n    repeat (10)\n        go to x: (-220) y: (-50)\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [17]>> then\n        go to x: (170) y: (100)\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [18]>> then\n        go to x: (123) y: (15)\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [19]>> then\n        repeat (10)\n            go to (sprite27 v)\n        end\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [20]>> then\n        repeat (10)\n            go to x: (230) y: (-5)\n        end\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [21]>> then\n        repeat (10)\n            go to x: (50) y: (-60)\n        end\n    end\n    if <<<touching (sprite26 v)?> or <touching (sprite27 v)?>> and <(Level) = [21]>> then\n        repeat (10)\n            go to x: (-82) y: (79)\n        end\n    end\n    if <<<touching (sprite26 v)?> or <touching (sprite27 v)?>> and <(Level) = [20]>> then\n        repeat (10)\n            go to x: (-100) y: (-99)\n        end\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [22]>> then\n        repeat (10)\n            go to x: (180) y: (65)\n        end\n    end\n    if <<<touching (sprite26 v)?> or <touching (sprite27 v)?>> and <(Level) = [22]>> then\n        repeat (10)\n            go to x: (180) y: (-100)\n        end\n    end\n    if <<<touching (sprite25 v)?> or <touching (sprite24 v)?>> and <(Level) = [23]>> then\n        go to (sprite27 v)\n        go to x: (216) y: (29)\n    end\n    if <<<touching (sprite25 v)?> or <touching (sprite24 v)?>> and <(Level) = [24]>> then\n        go to x: (67) y: (-110)\n    end\n    if <<<touching (sprite26 v)?> or <touching (sprite27 v)?>> and <(Level) = [24]>> then\n        go to x: (187) y: (-148)\n    end\n    if <<<touching (sprite26 v)?> or <touching (sprite27 v)?>> and <(Level) = [25]>> then\n        go to x: (-221) y: (67)\n    end\n    if <<<touching (sprite24 v)?> or <touching (sprite25 v)?>> and <(Level) = [25]>> then\n        go to x: (103) y: (143)\n    end\nend\n\nrepeat (10)\ngo to x: (-139) y: (-8)\n\nrepeat (10)\n\ngo to (sprite27 v)\n\nset size to (100) %\n\nrepeat (10)\n    glide (0.3) secs to x: (-220) y: (-50)\nend\n\nclear graphic effects\nhide\n\nrepeat (10)\n    switch costume to (costume2 v)\n    wait (0.2) seconds\n    switch costume to (costume3 v)\n    wait (0.2) seconds\nend\n\ngo to (sprite27 v)\n\nwhen I receive [reset v]\nclear graphic effects\nset size to (100) %\ngo to x: (-278) y: (-30)\n\nclear graphic effects\nset size to (100) %\n\nwhen I receive [next level v]\nclear graphic effects\nset size to (100) %\ngo to x: (-278) y: (-30)\n\nwhen flag clicked\nforever\n    if <touching (sprite40 v)?> then\n        go to x: (-230) y: (-50)\n        broadcast (restart 2 v)\n    end\nend\n\ngo [backward v] (1) layers\n\nrepeat (10)\n    go to x: (180) y: (-100)\nend\n\nwhen flag clicked\n\nforever\n    if <key (up arrow v) pressed?> then\n        turn right (15) degrees\n    end\n    if <not <key (up arrow v) pressed?>> then\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nforever\n    \nend\n\nwhen I receive [restart 4 v]\ngo to x: (-220) y: (-50)\nbroadcast (restart 3 v)\n\nwhen flag clicked\nforever\n    set [y position of player v] to (y position)\nend\n\nwhen flag clicked\nswitch costume to (costume3 v)\nforever\n    if <<touching (sprite58 v)?> or <<touching (sprite59 v)?> or <<touching (sprite60 v)?> or <touching (sprite61 v)?>>>> then\n        go to x: (-220) y: (-50)\n        broadcast (restart 3 v)\n        broadcast (lose v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [4]> then\n        wait (2) seconds\n        Talk [1] [Where does that hole lead to?] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        wait (2) seconds\n        Talk [1] [A cave! I need to find a way out!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [7]> then\n        wait (2) seconds\n        Talk [1] [I think were getting closer...] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        wait (2) seconds\n        Talk [1] [An exit!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        wait (2) seconds\n        Talk [1] [Cool! Candy Wonderland! Maybe this won't be so hard after all! It's even snowing!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [10]> then\n        wait (2) seconds\n        Talk [1] [What's that?] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite10 v)?> then\n        wait (0.3) seconds\n        Talk [1] [Bouncy!!!!!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        wait (2) seconds\n        Talk [1] [I'm starting to get tired of all this snow! I hope we can get out of here soon!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [13]> then\n        wait (1) seconds\n        Talk [1] [Look's like there's an exit!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [14]> then\n        wait (1) seconds\n        Talk [1] [Uh... "Welcome to WorldLand... every thing is made of worlds"...?! Even the clouds?] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        wait (1) seconds\n        Talk [1] [How do I get pass all those spikes???] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [17]> then\n        wait (3.5) seconds\n        Talk [1] [And what are does moving squares?] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite24 v)?> then\n        wait (0.3) seconds\n        Talk [1] [A portal?!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        wait (1.5) seconds\n        Talk [1] [It looks like the door is locked!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        wait (4.3) seconds\n        Talk [1] [I think I need to get the diamond!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (1508635-diamond-pixel-art v)?> then\n        wait (0.5) seconds\n        Talk [1] [I was right! The door opened!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [20]> then\n        wait (4) seconds\n        Talk [1] ["Can you beat this..." This must be hard!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        wait (2) seconds\n        Talk [1] [I think we're getting closer... ] [0.2] [1.5]\n        wait (1) seconds\n        Talk [1] [At least I hope!... These portals levels are hard!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        wait (2) seconds\n        Talk [1] [Oh no! Enemies!] [0.2] [1.5]\n        wait (1) seconds\n        Talk [1] [Now that I think of it, I think I should have stayed with the portals...] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        wait (2) seconds\n        Talk [1] [There's locked doors here to? ] [0.2] [1.5]\n        wait (1) seconds\n        Talk [1] [This is going to be hard...] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        wait (2) seconds\n        Talk [1] [Wait... Moving platforms? Uh oh...] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwait (1) seconds\nTalk [1] [This is going to be VERY hard...] [0.2] [1.5]\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        wait (2) seconds\n        Talk [1] [Not more moving platforms...] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [26]> then\n        Talk [1] [A boss? Oh no...] [0.2] [1.5]\n        wait (1) seconds\n        Talk [1] [And he has an army of enemies?????] [0.2] [1.5]\n        wait (18) seconds\n        Talk [1] [Falling spikes!!!!!!!!!!!!!!!!!] [0.2] [1.5]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        Talk [1] [I won!!!!!!!!!] [0.2] [2]\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        set [username v] to (() + ())\n        wait (2) seconds\n        Talk [1] (username) [0.2] [2]\n        Talk [1] [Thanks for playing WORLDS - a platformer by bestCoconut] [0.2] [2]\n        wait (1) seconds\n        Talk [1] [Don't forget to ☆, ❤︎ and follow!] [0.2] [2]\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\nhide variable [time v]\n\nwhen I receive [intro done v]\nset [time v] to [0]\nhide variable [time v]\nshow variable [time v]\nforever\n    if <not <(Level) = [27]>> then\n        change [time v] by (1)\n        wait (1) seconds\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\n\nwhen flag clicked\nset size to (150) %\nhide variable [☁ world record v]\nhide variable [☁ world record v]\ngo to [back v] layer\ngo to x: (120) y: (50)\nforever\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n        go to x: (0) y: (-172)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n        go to x: (60) y: (-129)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume4 v)\n        go to x: (48) y: (-53)\n    end\n    go to [back v] layer\n    if <(Level) = [4]> then\n        switch costume to (costume3 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level) = [7]> then\n        go to x: (110) y: (50)\n        switch costume to (costume7 v)\n    end\n    if <(Level) = [8]> then\n        go to x: (110) y: (50)\n        switch costume to (costume11 v)\n    end\n    if <(Level) = [9]> then\n        go to x: (110) y: (50)\n        switch costume to (costume8 v)\n    end\n    if <(Level) = [10]> then\n        go to x: (110) y: (50)\n        switch costume to (costume9 v)\n    end\n    if <(Level) = [11]> then\n        go to x: (110) y: (50)\n        switch costume to (costume10 v)\n    end\n    if <(Level) = [12]> then\n        go to x: (110) y: (50)\n        switch costume to (costume12 v)\n    end\n    if <(Level) = [13]> then\n        go to x: (110) y: (50)\n        switch costume to (costume13 v)\n    end\n    if <(Level) = [14]> then\n        go to x: (110) y: (75)\n        switch costume to (costume14 v)\n    end\n    if <(Level) = [15]> then\n        go to x: (110) y: (75)\n        switch costume to (costume15 v)\n    end\n    if <(Level) = [16]> then\n        go to x: (110) y: (75)\n        switch costume to (costume16 v)\n    end\n    if <(Level) = [17]> then\n        go to x: (110) y: (75)\n        switch costume to (costume17 v)\n    end\n    if <(Level) = [18]> then\n        go to x: (110) y: (75)\n        switch costume to (costume18 v)\n    end\n    go to [back v] layer\n    if <(Level) = [19]> then\n        go to x: (110) y: (75)\n        switch costume to (costume19 v)\n        go to [back v] layer\n    end\n    if <(Level) = [20]> then\n        go to x: (110) y: (75)\n        switch costume to (costume20 v)\n    end\n    if <(Level) = [21]> then\n        go to x: (110) y: (75)\n        switch costume to (costume21 v)\n    end\n    if <(Level) = [22]> then\n        go to x: (110) y: (75)\n        switch costume to (costume26 v)\n    end\n    if <(Level) = [23]> then\n        go to x: (110) y: (75)\n        switch costume to (costume24 v)\n    end\n    if <(Level) = [24]> then\n        go to x: (110) y: (75)\n        switch costume to (costume23 v)\n    end\n    if <(Level) = [25]> then\n        go to x: (110) y: (75)\n        switch costume to (costume25 v)\n    end\n    if <(Level) = [26]> then\n        go to x: (110) y: (75)\n        switch costume to (costume22 v)\n    end\n    if <(Level) = [27]> then\n        go to x: (110) y: (75)\n        switch costume to (costume27 v)\n    end\nend\n\ngo to x: (117) y: (2)\n\nwhen flag clicked\ngo to x: (10) y: (-170)\ngo to [front v] layer\nforever\n\ngo [backward v] (1) layers\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    repeat until <touching (sprite3 v)?>\n        go to x: (92) y: (-179)\n    end\n    stop [this script v]\nend\n\ngo to x: (10) y: (-170)\n\nwhen I receive [world 2 v]\ngo to [front v] layer\nforever\n\nwait (1) seconds\ngo [backward v] (1) layers\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    go to [back v] layer\n    if <(Level) = [5]> then\n        repeat (100)\n            go [backward v] (10) layers\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [light v]\n\nwhen flag clicked\nforever\n    if <<[] > [4]> and <[] < [9]>> then\n        go to [front v] layer\n    end\nend\n\nwhen I receive [ready v]\nforever\n    if <<[] > [4]> and <[] < [9]>> then\n        go to [front v] layer\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nshow\ngo to x: (127) y: (-6)\nset size to (130) %\nforever\n    if <(Level) = [1]> then\n        switch costume to (costume2 v)\n        show\n        point in direction (90)\n        go to x: (202) y: (-120)\n    end\n    if <(Level) = [2]> then\n        point in direction (90)\n        go to x: (199) y: (-155)\n    end\n    if <(Level) = [3]> then\n        point in direction (90)\n        go to x: (210) y: (-130)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume2 v)\n        point in direction (115)\n        go to x: (202) y: (-162)\n    end\n    if <(Level) = [5]> then\n        go to x: (195) y: (-9)\n        point in direction (102)\n    end\n    if <(Level) = [6]> then\n        go to x: (225) y: (53)\n        point in direction (90)\n    end\n    if <(Level) = [7]> then\n        go to x: (-197) y: (16)\n        point in direction (90)\n    end\n    if <(Level) = [8]> then\n        if <(Level) = [8]> then\n            go to x: (220) y: (124)\n            point in direction (90)\n        end\n    end\n    if <(Level) = [9]> then\n        go to x: (200) y: (-117)\n        point in direction (90)\n    end\n    if <(Level) = [10]> then\n        go to x: (214) y: (62)\n        point in direction (90)\n    end\n    if <(Level) = [11]> then\n        go to x: (159) y: (-30)\n        point in direction (90)\n    end\n    if <(Level) = [12]> then\n        go to x: (99) y: (-44)\n        point in direction (90)\n    end\n    if <(Level) = [13]> then\n        point in direction (115)\n        go to x: (178) y: (-120)\n    end\n    if <(Level) = [14]> then\n        point in direction (90)\n        switch costume to (costume3 v)\n        go to x: (215) y: (-92)\n    end\n    if <(Level) = [15]> then\n        point in direction (90)\n        switch costume to (costume3 v)\n        go to x: (-186) y: (75)\n    end\n    if <(Level) = [16]> then\n        point in direction (90)\n        switch costume to (costume3 v)\n        go to x: (205) y: (80)\n    end\n    if <(Level) = [17]> then\n        go to [front v] layer\n        point in direction (90)\n        switch costume to (costume2 v)\n        go to x: (220) y: (-105)\n    end\n    if <(Level) = [18]> then\n        point in direction (75)\n        switch costume to (costume2 v)\n        go to x: (217) y: (-68)\n    end\n    if <(Level) = [19]> then\n        go to [back v] layer\n        point in direction (90)\n        switch costume to (costume2 v)\n        go to x: (-100) y: (2)\n    end\n    if <(Level) = [20]> then\n        go to [back v] layer\n        go to x: (221) y: (155)\n        point in direction (81)\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [21]> then\n        go to [back v] layer\n        go to x: (220) y: (134)\n        switch costume to (costume2 v)\n        point in direction (100)\n    end\n    if <(Level) = [22]> then\n        go to [front v] layer\n        go to x: (218) y: (67)\n        switch costume to (costume2 v)\n        point in direction (100)\n    end\n    if <(Level) = [23]> then\n        go to [front v] layer\n        go to x: (219) y: (-46)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\n    if <(Level) = [24]> then\n        go to [front v] layer\n        go to x: (-14) y: (-147)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\n    if <(Level) = [25]> then\n        go to [front v] layer\n        go to x: (218) y: (121)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\n    if <(Level) = [25]> then\n        go to [front v] layer\n        go to x: (220) y: (121)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\n    if <(Level) = [26]> then\n        go to [front v] layer\n        go to x: (216) y: (-102)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\n    if <(Level) = [27]> then\n        go to [front v] layer\n        hide\n        go to x: (216) y: (-102)\n        switch costume to (costume2 v)\n        point in direction (90)\n    end\nend\n\ngo to x: (0) y: (63)\n\nwhen flag clicked\n\nforever\n    if <touching (mouse-pointer v)?> then\nend\n\nwhen I receive [world 2 v]\nforever\n    go to [front v] layer\nend\n\nhide\n\npoint in direction (105)\n\npoint in direction (120)\n\nwhen I receive [light v]\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (5)\nend\n\n@Sprite4\n\nwhen flag clicked\nshow\ngo to x: (51) y: (-177)\nforever\n    go [backward v] (1) layers\n    go to [back v] layer\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n        show\n    end\n    if <(Level) = [2]> then\n        go to x: (-19) y: (-147)\n        switch costume to (costume2 v)\n    end\nend\n\ngo to x: (48) y: (-47)\n\ngo to x: (-19) y: (-147)\npoint in direction (91)\nrepeat (10)\n    change y by (1)\n    wait (0.1) seconds\n    turn right (0.2) degrees\nend\nrepeat (10)\n    change y by (-1)\n    wait (0.1) seconds\n    turn right (-0.2) degrees\nend\npoint in direction (90)\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [3]> then\n        go to x: (38) y: (-38)\n        go to [back v] layer\n        switch costume to (costume3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume4 v)\n        go to x: (90) y: (-2)\n    end\n    if <(Level) = [5]> then\n        go to x: (96) y: (-29)\n        switch costume to (costume5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume7 v)\n        go to x: (-12) y: (-11)\n    end\n    if <(Level) = [8]> then\n        hide\n    end\nend\n\npoint in direction (90)\n\nrepeat (10)\n    change y by (1)\n    wait (0.1) seconds\n    turn right (0.2) degrees\nend\nshow\npoint in direction (91)\nchange y by (1)\nwait (0.1) seconds\nturn right (0.2) degrees\nrepeat (10)\n    change y by (-1)\n    wait (0.1) seconds\n    turn right (-0.2) degrees\nend\npoint in direction (90)\n\nswitch costume to (costume3 v)\n\nrepeat (10)\n\nrepeat (10)\n    change y by (-1)\n    wait (0.1) seconds\n    turn right (-0.2) degrees\nend\n\nwhen I receive [world 2 v]\n\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Sprite8\n\nwhen flag clicked\nhide variable [level v]\nset size to (150) %\n\nwhen flag clicked\nshow\nforever\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume3 v)\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume4 v)\n    end\n    if <(Level) = [5]> then\n        switch costume to (costume5 v)\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume7 v)\n    end\n    if <(Level) = [8]> then\n        switch costume to (costume8 v)\n    end\n    if <(Level) = [9]> then\n        switch costume to (costume9 v)\n    end\n    if <(Level) = [10]> then\n        switch costume to (costume10 v)\n    end\n    if <(Level) = [11]> then\n        switch costume to (costume11 v)\n    end\n    if <(Level) = [12]> then\n        switch costume to (costume12 v)\n    end\n    if <(Level) = [13]> then\n        switch costume to (costume13 v)\n    end\n    if <(Level) = [14]> then\n        switch costume to (costume14 v)\n    end\n    if <(Level) = [15]> then\n        switch costume to (costume15 v)\n    end\n    if <(Level) = [16]> then\n        switch costume to (costume16 v)\n    end\n    if <(Level) = [17]> then\n        switch costume to (costume17 v)\n    end\n    if <(Level) = [18]> then\n        switch costume to (costume18 v)\n    end\n    if <(Level) = [19]> then\n        switch costume to (costume19 v)\n    end\n    if <(Level) = [20]> then\n        switch costume to (costume20 v)\n    end\n    if <(Level) = [21]> then\n        switch costume to (costume21 v)\n    end\n    if <(Level) = [22]> then\n        switch costume to (costume22 v)\n        set [brightness v] effect to (100)\n    end\n    if <(Level) = [23]> then\n        switch costume to (costume23 v)\n        set [brightness v] effect to (100)\n    end\n    if <(Level) = [24]> then\n        switch costume to (costume24 v)\n        set [brightness v] effect to (100)\n    end\n    if <(Level) = [25]> then\n        switch costume to (costume25 v)\n        set [brightness v] effect to (100)\n    end\n    if <(Level) = [26]> then\n        switch costume to (costume26 v)\n        set [brightness v] effect to (100)\n    end\n    if <(Level) = [27]> then\n        hide\n        switch costume to (costume26 v)\n        set [brightness v] effect to (100)\n    end\nend\n\nwhen I receive [world 2 v]\nforever\n    go to [front v] layer\nend\n\n\n    hide\nelse\n    show\nend\n\nforever\n\nwhen flag clicked\n\nwhen flag clicked\nclear graphic effects\n\nforever\n    if <(Level) > [4]> then\n        change [brightness v] effect by (2)\n        if <(Level) > [8]> then\n            set [brightness v] effect to (0)\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen flag clicked\npoint in direction (80)\nforever\n    repeat (20)\n        turn right (1) degrees\n    end\n    repeat (20)\n        turn right (-1) degrees\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nclear graphic effects\nshow\ngo to x: (51) y: (-177)\nforever\n    go [backward v] (1) layers\n    go to [back v] layer\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n        show\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n        go to x: (-17) y: (-159)\n        point in direction (91)\n    end\n    if <(Level) = [3]> then\n        go to x: (-63) y: (-34)\n        point in direction (90)\n        switch costume to (costume3 v)\n        go to [back v] layer\n    end\n    if <(Level) = [4]> then\n        switch costume to (costume4 v)\n        go to x: (90) y: (-2)\n    end\n    if <(Level) = [5]> then\n        go to x: (96) y: (-28)\n        switch costume to (costume5 v)\n        go to [front v] layer\n    end\n    if <(Level) = [6]> then\n        switch costume to (costume6 v)\n        go to [front v] layer\n    end\n    if <(Level) = [7]> then\n        switch costume to (costume7 v)\n        go to [front v] layer\n        go to x: (-12) y: (-11)\n        hide\n    end\n    if <(Level) = [8]> then\n        switch costume to (costume7 v)\n        go to [front v] layer\n        go to x: (-12) y: (-11)\n        show\n        go to [front v] layer\n    end\n    if <(Level) = [9]> then\n        switch costume to (costume2 v)\n        go to x: (-5) y: (-61)\n        show\n        go to [back v] layer\n        go [backward v] (10) layers\n    end\n    if <(Level) = [10]> then\n        switch costume to (lollipops-clip-art-png-clip-art-3 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [11]> then\n        switch costume to (lollipops-clip-art-png-clip-art-4 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [12]> then\n        switch costume to (lollipops-clip-art-png-clip-art-5 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [13]> then\n        switch costume to (lollipops-clip-art-png-clip-art-6 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [14]> then\n        switch costume to (costume8 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [15]> then\n        switch costume to (costume9 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [16]> then\n        switch costume to (costume10 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [17]> then\n        switch costume to (costume11 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [18]> then\n        switch costume to (costume12 v)\n        go to x: (50) y: (-62)\n        show\n    end\n    if <(Level) = [19]> then\n        switch costume to (costume13 v)\n        go to x: (48) y: (-8)\n        show\n        go to [back v] layer\n    end\n    if <(Level) = [20]> then\n        switch costume to (costume14 v)\n        go to [back v] layer\n    end\n    if <(Level) = [21]> then\n        switch costume to (costume15 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\n    if <(Level) = [22]> then\n        switch costume to (costume1 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\n    if <(Level) = [23]> then\n        switch costume to (costume16 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\n    if <(Level) = [24]> then\n        switch costume to (costume17 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\n    if <(Level) = [25]> then\n        switch costume to (costume18 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\n    if <(Level) = [26]> then\n        switch costume to (costume1 v)\n        go to [back v] layer\n        go to x: (50) y: (-95)\n        show\n    end\nend\n\nwhen flag clicked\ngo to [back v] layer\nstop [this script v]\n\nforever\n\nwhen flag clicked\nforever\n    repeat until <touching (sprite3 v)?>\n        go to x: (51) y: (-177)\n        stop [this script v]\n    end\nend\n\nhide\n\nforever\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <(Level) < [5]> then\nend\n\nset [ghost v] effect to (20)\n\n@Sprite6\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <<(Level) = [5]> or <<(Level) = [6]> or <<(Level) = [7]> or <<<(Level) = [18]> or <(Level) = [20]>> or <<(Level) = [25]> or <(Level) = [21]>>>>>> then\n        if <(Level) = [5]> then\n            switch costume to (costume2 v)\n        end\n        if <<(Level) = [7]> = [6]> then\n            switch costume to (costume3 v)\n        end\n        if <(Level) = [7]> then\n            switch costume to (costume4 v)\n        end\n        if <(Level) = [18]> then\n            switch costume to (costume5 v)\n            go to [back v] layer\n        end\n        if <(Level) = [6]> then\n            switch costume to (costume1 v)\n        end\n        go to [front v] layer\n        if <(Level) = [20]> then\n            switch costume to (costume6 v)\n            show\n        end\n        go to [front v] layer\n        if <(Level) = [21]> then\n            switch costume to (costume7 v)\n            show\n        end\n        go to [front v] layer\n        if <(Level) = [25]> then\n            switch costume to (costume1 v)\n            show\n        end\n        go to [front v] layer\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [world 2 v]\nforever\n    go to [front v] layer\nend\n\n@Sprite7\n\nwhen flag clicked\nset size to (115) %\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    set [ghost v] effect to (0)\n    go to (sprite1 v)\n    go to [back v] layer\nend\n\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <<<(Level) > [4]> and <(Level) < [9]>> or <<(Level) < [21]> and <(Level) > [16]>>> then\n        if <<(Level) < [22]> and <(Level) > [16]>> then\n            go to [front v] layer\n            show\n        end\n        if <(Level) > [21]> then\n            hide\n        end\n        if <<(Level) > [4]> and <(Level) < [9]>> then\n            show\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [light v]\ngo to [back v] layer\nstop [this script v]\n\nwhen I receive [light v]\nforever\n    if <<(Level) < [22]> and <(Level) > [16]>> then\n        go to [front v] layer\n        show\n    end\nend\n\nwhen I receive [next level v]\nforever\n    if <<(Level) < [22]> and <(Level) > [16]>> then\n        go to [front v] layer\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<(Level) < [22]> and <(Level) > [16]>> or <<(Level) < [27]> and <(Level) > [21]>>> then\n        go to [front v] layer\n        show\n    end\nend\n\nwhen flag clicked\nforever\n\nwhen flag clicked\n\nforever\n\nchange [whirl v] effect by (3)\n\nwhen flag clicked\nforever\n    if <(Level) = [26]> then\n        show\n        set [ghost v] effect to (((X position 2) * (5)) - (800))\n    end\n    if <(Level) = [27]> then\n        if <(X position 2) > [160]> then\n            show\n            clear graphic effects\n        else\n            hide\n        end\n    end\nend\n\n@Sprite10\n\nwhen flag clicked\nforever\n    if <(Level) < [10]> then\n        go to [back v] layer\n        switch costume to (costume1 v)\n    else\n        if <(Level) = [10]> then\n            switch costume to (costume2 v)\n            go [backward v] (1) layers\n            go to x: (20) y: (26)\n        end\n        if <(Level) = [11]> then\n            go to x: (194) y: (-3)\n            go [backward v] (1) layers\n            switch costume to (costume3 v)\n        end\n        if <(Level) = [12]> then\n            go [backward v] (1) layers\n            go to x: (194) y: (-3)\n            switch costume to (costume4 v)\n        end\n        if <(Level) = [13]> then\n            go [backward v] (1) layers\n            go to x: (194) y: (-3)\n            switch costume to (costume1 v)\n        end\n        if <(Level) = [20]> then\n            go [backward v] (1) layers\n            go to x: (194) y: (-3)\n            switch costume to (costume5 v)\n        end\n        if <(Level) = [23]> then\n            go [forward v] (1) layers\n            go to x: (-21) y: (-93)\n            switch costume to (costume6 v)\n        end\n        if <(Level) = [24]> then\n            go to x: (-21) y: (-93)\n            switch costume to (costume1 v)\n        end\n        if <(Level) = [22]> then\n            go to x: (-21) y: (-93)\n            switch costume to (costume1 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) < [14]> and <(Level) > [8]>> then\n        go to [back v] layer\n    else\n        go [backward v] (1) layers\n        go to [back v] layer\n    end\nend\n\n@Sprite9\n\nwhen flag clicked\nif  then\n\nwhen I receive [light v]\nshow\nstop [this script v]\n\nwhen flag clicked\nhide\nforever\n    set [ghost v] effect to (pick random (30) to (35))\n    go to (sprite3 v)\n    go to [back v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset size to (115) %\n\nforever\n\nwhen I receive [world 3 v]\nhide\nstop [this script v]\n\nwhen flag clicked\nclear graphic effects\nforever\n    if <(Level) > [7]> then\n        hide\n        hide\n        set [ghost v] effect to (0100)\n        stop [this script v]\n    end\nend\n\nwhen I receive [light v]\nrepeat (20)\n    change [ghost v] effect by (-3)\nend\nforever\n    set [ghost v] effect to (pick random (30) to (35))\n    go to (sprite3 v)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <<(Level) > [17]> and <(Level) < [25]>> then\n        show\n        set [ghost v] effect to (0)\n    end\n    if <(Level) > [8]> then\n        hide\n    end\n    if <<(Level) > [8]> and <(Level) < [17]>> then\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen I receive [light v]\nset size to (100) %\nset [brightness v] effect to (0)\nif <(Level) = [27]> then\n    stop [other scripts in sprite v]\n    set size to (0) %\n    hide\nend\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n    if <(Level) = [8]> then\n        hide\n        set [ghost v] effect to (100)\n    end\n    if <(Level) = [27]> then\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) < [21]> then\n        hide\n        set [ghost v] effect to (40)\n    end\nend\n\nwhen I receive [light v]\nforever\n    if <<(Level) > [8]> and <(Level) < [17]>> then\n        hide\n        go to [back v] layer\n        set [ghost v] effect to (100)\n    end\nend\n\ngo to [back v] layer\n\nwhen flag clicked\nforever\n\nchange [color v] effect by (0.1)\n\nwhen I receive [world 2 v]\nforever\n    if <<(Level) > [7]> and <(Level) < [17]>> then\n        hide\n        set [ghost v] effect to (100)\n    end\nend\n\nwhen I receive [light v]\ngo to [back v] layer\ngo [backward v] (1) layers\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        stop [other scripts in sprite v]\n        set size to (0) %\n        hide\n    end\nend\n\nset [ghost v] effect to (100)\n\n@Sprite14\n\nwhen flag clicked\nforever\n    if <(Level) = [5]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite15\n\nwhen flag clicked\nforever\n    if <(Level) = [9]> then\n        go [backward v] (1) layers\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [light v]\ngo to [back v] layer\n\n@Sprite16\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    if <(Level) = [9]> then\n        switch costume to (costume1 v)\n        show\n    end\n    if <(Level) = [1]> then\n        hide\n    end\n    if <(Level) = [11]> then\n        show\n        switch costume to (costume2 v)\n    end\n    if <(Level) = [12]> then\n        hide\n    end\n    if <(Level) = [19]> then\n        show\n        switch costume to (costume3 v)\n        set [ghost v] effect to (100)\n    end\n    if <(Level) = [20]> then\n        show\n        switch costume to (costume3 v)\n        set [ghost v] effect to (100)\n    end\n    if <(Level) = [21]> then\n        show\n        switch costume to (costume4 v)\n        set [ghost v] effect to (100)\n    end\n    if <(Level) = [25]> then\n        show\n        switch costume to (costume5 v)\n        set [ghost v] effect to (100)\n    end\n    if <(Level) = [26]> then\n        hide\n    end\nend\n\n@Sprite17\n\nwhen flag clicked\nforever\n    if <<(Level) > [8]> and <(Level) < [12]>> then\n        go to [back v] layer\n        show\n    end\n    if <not <<(Level) > [8]> and <(Level) < [12]>>> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) > [8]> and <(Level) < [12]>> then\n        repeat (500)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    repeat until <(y position) < [-150]>\n        change y by (-2)\n    end\n    set x to (pick random (-300) to (300))\n    set y to (100)\n    if <(Level) > [13]> then\n    end\nend\n\nwhen I start as a clone\nforever\n    set [ghost v] effect to (0)\n    set size to (pick random (75) to (125)) %\n    set x to (pick random (-300) to (300))\n    set y to (200)\n    repeat until <(y position) < [-150]>\n        change y by (pick random (-3) to (-4))\n        change [ghost v] effect by (pick random (0) to (1))\n    end\n    set x to (pick random (-300) to (300))\n    set y to (200)\n    if <(Level) > [13]> then\n        delete this clone\n    end\nend\n\nforever\n\n@Sprite18\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nwhen I receive [next level v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (51)\n    change [ghost v] effect by (2)\nend\nset [ghost v] effect to (100)\n\nwhen I receive [light v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [reset v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (51)\n    change [ghost v] effect by (2)\nend\nset [ghost v] effect to (100)\n\n@Sprite19\n\nwhen flag clicked\nset [hide clouds v] to [0]\nset [brightness v] effect to (10)\nset [pixelate v] effect to (80)\nshow\nset x to (-280)\nforever\n    move (1) steps\n    if <(hide clouds) = [1]> then\n        delete this clone\n    else\n        show\n    end\n    if <(x position) > [220]> then\n        set [brightness v] effect to (pick random (5) to (15))\n        hide\n        set [ghost v] effect to (100)\n        wait (pick random (1) to (15)) seconds\n        show\n        set [ghost v] effect to (0)\n        set size to (pick random (50) to (100)) %\n        go to x: (-280) y: (pick random (0) to (150))\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [world 2 v]\nhide\n\nset size to (pick random (50) to (100)) %\ngo to x: (-280) y: (pick random (0) to (150))\n\nwhen I receive [world 2 v]\nforever\n    set [hide clouds v] to [1]\nend\n\nhide\n\nwhen flag clicked\nforever\n    if <(hide clouds) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nforever\n\nwhen flag clicked\nforever\n    if <<(Level) < [14]> and <(Level) > [4]>> then\n        hide\n    end\n    if <<<(Level) < [5]> and <(Level) > [0]>> or <<(Level) < [16]> and <(Level) > [13]>>> then\n        if <<(Level) < [5]> and <(Level) > [0]>> then\n            switch costume to (cloud v)\n            show\n        end\n        if <<(Level) < [17]> and <(Level) > [13]>> then\n            switch costume to (cloud2 v)\n            clear graphic effects\n            show\n        end\n    end\nend\n\nclear graphic effects\n\nwhen flag clicked\nforever\n    if <(Level) > [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Sprite20\n\nwhen flag clicked\nset [brightness v] effect to (10)\nset [pixelate v] effect to (80)\nshow\nset x to (-280)\nforever\n    move (0.5) steps\n    if <(x position) > [240]> then\n        set [brightness v] effect to (pick random (5) to (15))\n        set size to (pick random (20) to (50)) %\n        go to x: (-280) y: (pick random (0) to (150))\n    end\nend\n\nwhen I start as a clone\nset [brightness v] effect to (10)\nset [pixelate v] effect to (80)\nshow\ngo to x: (pick random (-200) to (200)) y: (pick random (0) to (150))\nforever\n    move (1) steps\n    if <(x position) > [240]> then\n        set [brightness v] effect to (pick random (5) to (15))\n        set size to (pick random (50) to (100)) %\n        go to x: (-280) y: (pick random (0) to (150))\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I receive [world 2 v]\nforever\n    hide\nend\n\nwhen flag clicked\nforever\n    if <(hide clouds) = [1]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) < [14]> and <(Level) > [4]>> then\n        hide\n    end\n    if <<<(Level) < [5]> and <(Level) > [0]>> or <<(Level) < [16]> and <(Level) > [13]>>> then\n        if <<(Level) < [5]> and <(Level) > [0]>> then\n            switch costume to (cloud v)\n            show\n        end\n        if <<(Level) < [17]> and <(Level) > [13]>> then\n            switch costume to (cloud2 v)\n            clear graphic effects\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Sprite22\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <(Level) = [9]> then\n        wait (1.5) seconds\n        show\n        switch costume to (costume1 v)\n        repeat (9)\n            next costume\n        end\n        wait (0.5) seconds\n        next costume\n        wait (0.5) seconds\n        next costume\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        stop [this script v]\n    else\n        hide\n    end\nend\n\n@Sprite23\n\nwhen flag clicked\nhide\nwait (pick random (3) to (15)) seconds\nbroadcast (ready v)\nshow\nset [brightness v] effect to (10)\nset [pixelate v] effect to (80)\nset x to (-280)\nforever\n    move (1.2) steps\n    if <(x position) > [250]> then\n        set [brightness v] effect to (pick random (5) to (15))\n        hide\n        set [ghost v] effect to (100)\n        wait (pick random (1) to (10)) seconds\n        set [ghost v] effect to (0)\n        show\n        set size to (pick random (50) to (100)) %\n        go to x: (-280) y: (pick random (0) to (150))\n        set size to (pick random (50) to (100)) %\n        go to x: (-280) y: (pick random (0) to (150))\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [world 2 v]\nhide\n\nif <[] = [1]> then\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n\nwhen I start as a clone\nforever\n    if <(Level) = [14]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [ready v]\nforever\n    if <<(Level) < [14]> and <(Level) > [4]>> then\n        hide\n    end\n    if <<<(Level) < [5]> and <(Level) > [0]>> or <<(Level) < [16]> and <(Level) > [13]>>> then\n        if <<(Level) < [5]> and <(Level) > [0]>> then\n            switch costume to (cloud v)\n            show\n        end\n        if <<(Level) < [17]> and <(Level) > [13]>> then\n            switch costume to (cloud2 v)\n            clear graphic effects\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@Sprite21\n\nwhen flag clicked\nhide\n\n@Sprite25\n\nwhen flag clicked\nforever\n    go to (sprite24 v)\n    turn right (-3) degrees\nend\n\nwhen flag clicked\nforever\n    if <(Level) < [17]> then\n        hide\n    else\n        if <not <<(Level) = [27]> or <(Level) = [26]>>> then\n            show\n        end\n        if <(Level) = [26]> then\n            hide\n        end\n        if <(Level) = [27]> then\n            hide\n        end\n    end\nend\n\n@Sprite24\n\nwhen flag clicked\nforever\n    if <(Level) < [17]> then\n        hide\n    end\n    if <(Level) = [17]> then\n        show\n        go to x: (-175) y: (-74)\n    end\n    if <(Level) = [18]> then\n        show\n        go to x: (48) y: (-65)\n    end\n    if <(Level) = [19]> then\n        show\n        go to x: (215) y: (100)\n    end\n    if <(Level) = [19]> then\n        show\n        go to x: (215) y: (100)\n    end\n    if <(Level) = [20]> then\n        show\n        go to x: (-125) y: (-78)\n    end\n    if <(Level) = [21]> then\n        show\n        go to x: (-28) y: (124)\n    end\n    if <(Level) = [22]> then\n        show\n        go to x: (178) y: (-61)\n    end\n    if <(Level) = [23]> then\n        show\n        go to x: (217) y: (-108)\n    end\n    if <(Level) = [24]> then\n        show\n        go to x: (221) y: (-129)\n    end\n    if <(Level) = [25]> then\n        show\n        go to x: (-222) y: (109)\n    end\n    if <(Level) = [26]> then\n        hide\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    turn right (3) degrees\nend\n\nif <(Level) = [25]> then\n    show\n    go to x: (-221) y: (109)\nend\n\n@Sprite26\n\nwhen flag clicked\nforever\n    if <(Level) < [17]> then\n        hide\n    end\n    if <(Level) = [17]> then\n        show\n        go to x: (170) y: (135)\n    end\n    if <(Level) = [18]> then\n        show\n        go to x: (117) y: (8)\n    end\n    if <(Level) = [19]> then\n        show\n        go to x: (-100) y: (80)\n    end\n    if <(Level) = [20]> then\n        show\n        go to x: (224) y: (50)\n    end\n    if <(Level) = [21]> then\n        show\n        go to x: (51) y: (-28)\n    end\n    if <(Level) = [22]> then\n        show\n        go to x: (185) y: (106)\n    end\n    if <(Level) = [23]> then\n        show\n        go to x: (215) y: (30)\n    end\n    if <(Level) = [24]> then\n        show\n        go to x: (66) y: (-78)\n    end\n    if <(Level) = [25]> then\n        show\n        go to x: (77) y: (160)\n    end\n    if <(Level) = [26]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    turn right (3) degrees\nend\n\nif <(Level) = [19]> then\n    show\n    go to x: (-100) y: (80)\nend\n\ngo to x: (224) y: (50)\n\n@Sprite27\n\nwhen flag clicked\nforever\n    if <(Level) < [17]> then\n        hide\n    else\n        if <not <<(Level) = [27]> or <(Level) = [26]>>> then\n            show\n        end\n        if <(Level) = [26]> then\n            hide\n        end\n        if <(Level) = [27]> then\n            hide\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    go to (sprite26 v)\n    turn right (-3) degrees\nend\n\n@Sprite28\n\nwhen flag clicked\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [19]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [open  v]\nforever\n    go to [back v] layer\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat (60)\n        change y by (-1)\n    end\nend\n\nwhen I receive [reset v]\n\ngo to x: (36) y: (28)\nswitch costume to (costume1 v)\n\n@1508635-diamond-pixel-art\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [19]> then\n        point in direction (83)\n        show\n        go to x: (120) y: (160)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        broadcast (open  v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n        hide\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (10000) layers\n    go [forward v] ((100) * (100)) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (83)\nshow\ngo to x: (120) y: (160)\n\n@1508635-diamond-pixel-art2\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [20]> then\n        point in direction (90)\n        show\n        go to x: (215) y: (-146)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        broadcast (open 2 v)\n        hide\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (100000) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (90)\nshow\ngo to x: (215) y: (-146)\n\n@Sprite29\n\nwhen flag clicked\ngo to x: (-55) y: (161)\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [20]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [open 2 v]\nforever\n    go to [back v] layer\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat (60)\n        change x by (-1)\n    end\nend\n\nwhen I receive [reset v]\ngo to x: (-55) y: (161)\nswitch costume to (costume1 v)\n\n@Sprite30\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [20]> then\n        hide\n        switch costume to (costume1 v)\n        wait (2) seconds\n        show\n        repeat (14)\n            next costume\n            wait (0.01) seconds\n        end\n        wait (1) seconds\n        repeat (50)\n            change [ghost v] effect by (2)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\n@Sprite31\n\nwhen flag clicked\ngo to x: (1) y: (-3)\nset size to (300) %\nforever\n    if <<(Level) > [16]> and <(Level) < [22]>> then\n        clear graphic effects\n        go to [front v] layer\n        show\n        stop [this script v]\n    else\n        hide\n    end\nend\n\nchange [color v] effect by (0.3)\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <<(Level) > [16]> and <(Level) < [22]>> then\n        clear graphic effects\n        show\n    else\n        hide\n    end\nend\n\n@Sprite32\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (115) %\nset [ghost v] effect to (0)\n\nwhen flag clicked\n\nforever\nend\n\nset [ghost v] effect to (pick random (30) to (35))\ngo to (sprite1 v)\ngo to [back v] layer\n\nwhen flag clicked\nclear graphic effects\nforever\n    hide\nend\n\nif <<(Level) > [16]> and <(Level) < [21]>> then\n    show\n    set [brightness v] effect to ()\nend\nif <not <<(Level) > [17]> and <(Level) < [21]>>> then\n    hide\nend\n\n@Sprite33\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (30) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        if <(Level) = [19]> then\n            show\n            go to (1508635-diamond-pixel-art v)\n        end\n    else\n        hide\n    end\nend\n\nwhen I receive [open  v]\nforever\n    hide\nend\n\nforever\n    if <(Level) = [20]> then\n        show\n        go to (1508635-diamond-pixel-art2 v)\n    end\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art v)\n\n@Sprite36\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (30) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [20]> then\n        if <(Level) = [20]> then\n            show\n            go to (1508635-diamond-pixel-art2 v)\n        end\n    else\n        hide\n    end\nend\n\nif <(Level) = [20]> then\n    show\n    go to (1508635-diamond-pixel-art2 v)\nend\n\nwhen I receive [open 2 v]\nforever\n    hide\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art2 v)\n\n@1508635-diamond-pixel-art3\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [21]> then\n        point in direction (90)\n        show\n        go to x: (-153) y: (76)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        hide\n        broadcast (open 3 v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (100000) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (90)\nshow\ngo to x: (-153) y: (76)\n\n@Sprite37\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (30) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        if <(Level) = [21]> then\n            show\n            go to (1508635-diamond-pixel-art3 v)\n        end\n    else\n        hide\n    end\nend\n\nif <(Level) = [20]> then\n    show\n    go to (1508635-diamond-pixel-art2 v)\nend\n\nwhen I receive [open 3 v]\nforever\n    hide\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art3 v)\n\n@Sprite38\n\nwhen flag clicked\ngo to x: (-23) y: (19)\nswitch costume to (costume1 v)\n\nwhen I receive [open 3 v]\ngo to [back v] layer\nswitch costume to (costume2 v)\nwait (0.5) seconds\nrepeat (70)\n    change y by (-1)\nend\n\nwhen I receive [light v]\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [21]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [reset v]\n\nwhen I receive [reset v]\n\ngo to x: (-23) y: (19)\nswitch costume to (costume1 v)\n\ngo to x: (-23) y: (19)\nswitch costume to (costume1 v)\n\n@Sprite39\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: (170) y: (156)\n    go to [front v] layer\nend\n\nwhen this sprite clicked\nbroadcast (next level v)\nbroadcast (skip v)\nwait (0.4) seconds\ngo to x: (170) y: (156)\nchange [level v] by (1)\nclear graphic effects\nset size to (100) %\n\nwhen flag clicked\nshow\nforever\n    go to x: (170) y: (156)\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [27]> or <(Level) = [26]>> then\n        hide\n    else\n        show\n        if <(Level) = [1]> then\n            show\n            go to [back v] layer\n        end\n    end\nend\n\n@restart-button-png-15\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(Level) = [27]> or <(Level) = [26]>> then\n        hide\n    else\n        if <(Level) = [1]> then\n            show\n            go to [back v] layer\n        else\n            show\n            go to [front v] layer\n        end\n    end\nend\n\nwhen flag clicked\nshow\nforever\n    go to x: (219) y: (156)\nend\n\nclear graphic effects\n\nwhen this sprite clicked\nbroadcast (reset v)\n\nwhen flag clicked\nforever\n    go to x: (219) y: (156)\nend\n\ngo to [front v] layer\nclear graphic effects\n\nif  then\nend\n\n@Sprite41\n\nwhen flag clicked\ngo to x: (230) y: (78)\nforever\n    if <(Level) = [23]> then\n        repeat (25)\n            move (-5.5) steps\n        end\n        repeat (25)\n            move (5.5) steps\n        end\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nwhen flag clicked\n\nforever\n    if <(Level) = [23]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite40\n\nwhen flag clicked\ngo to x: (7) y: (7)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 2 v]\ngo to x: (7) y: (7)\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        show\n        go to [front v] layer\n        if <(x position) > (X position 2)> then\n            move (-2.5) steps\n        end\n        if <(x position) < (X position 2)> then\n            move (2.5) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(Level) = [22]> then\n        change y by (enemy Y position)\n        if <<touching (sprite2 v)?> or <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <touching (sprite38 v)?>>>> then\n            change y by ((enemy Y position) * (-1))\n            set [enemy y position v] to [0]\n        else\n            change [enemy y position v] by (-1)\n            set [enemy lock v] to [0]\n        end\n    end\nend\n\nif <(lock 2) = [0]> then\n    set [speed y 2 v] to [10]\n    set [lock 2 v] to [1]\nend\n\n@Sprite43\n\nwhen flag clicked\ngo to x: (-15) y: (70)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 3 v]\ngo to x: (-15) y: (70)\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\ngo to x: (7) y: (7)\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n\nwhen flag clicked\nforever\n    if <(x position) > (X position 2)> then\n        change [speedx60 v] by (-0.5)\n    end\n    if <(X position 2) > (x position)> then\n        change [speedx60 v] by (0.5)\n    end\n    change x by (speedX60)\n    if <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <touching (sprite38 v)?>>> then\n        change x by ((speedX60) * (-1))\n        set [speedx60 v] to [0]\n    else\n        set [speedx60 v] to ((speedX60) * (0.8))\n    end\n    change y by (speedY60)\n    if <<touching (sprite2 v)?> or <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <<touching (sprite44 v)?> or <touching (sprite38 v)?>>>>> then\n        change y by ((speedY60) * (-1))\n        set [speedy60 v] to [0]\n    else\n        change [speedy60 v] by (-1)\n        set [enemy lock 60 v] to [0]\n    end\nend\n\nif <(lock) = [0]> then\n\nset [speed y 2 v] to [10]\nset [lock 2 v] to [1]\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n    if <touching (sprite10 v)?> then\n        if <<<touching (sprite2 v)?> or <touching (sprite10 v)?>> or <touching (sprite28 v)?>> then\n            change x by ((speedX60) * (-1))\n            set [speedx60 v] to [0]\n        else\n            set [speedx60 v] to ((speedX60) * (0.8))\n        end\n        change y by (speedY60)\n        if <<<touching (sprite2 v)?> or <touching (sprite10 v)?>> or <touching (sprite28 v)?>> then\n            change y by ((speedY60) * (-1))\n            set [speedy60 v] to [0]\n            if <(enemy lock 1) = [0]> then\n                set [speedy60 v] to [19]\n                set [enemy lock 60 v] to [1]\n            end\n        else\n            change [speedy60 v] by (-1)\n            set [enemy lock 60 v] to [0]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [23]>\n    go to x: (-15) y: (70)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        go to x: (-15) y: (70)\n    end\nend\n\n@Sprite44\n\nwhen flag clicked\ngo to x: (161) y: (-15)\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [23]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [open 4 v]\nforever\n    go to [back v] layer\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat (100)\n        change x by (-1)\n    end\n    stop [other scripts in sprite v]\n    hide\n    stop [this script v]\nend\n\nwhen I receive [reset v]\ngo to x: (161) y: (-15)\nswitch costume to (costume1 v)\n\n@1508635-diamond-pixel-art5\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [24]> then\n        point in direction (90)\n        show\n        go to x: (-193) y: (114)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        hide\n        broadcast (open  5 v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (100000) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (90)\nshow\ngo to x: (-153) y: (76)\n\n@1508635-diamond-pixel-art4\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [23]> then\n        point in direction (90)\n        show\n        go to x: (202) y: (113)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        hide\n        broadcast (open 4 v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (100000) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (90)\nshow\ngo to x: (-153) y: (76)\n\n@Sprite45\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (30) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [23]> then\n        if <(Level) = [23]> then\n            show\n            go to (1508635-diamond-pixel-art4 v)\n        end\n    else\n        hide\n    end\nend\n\nif <(Level) = [20]> then\n    show\n    go to (1508635-diamond-pixel-art2 v)\nend\n\nwhen I receive [open 4 v]\nstop [other scripts in sprite v]\nforever\n    hide\nend\n\nwhen I receive [light v]\ngo to [back v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art3 v)\n\nstop [this script v]\n\n@Sprite46\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n        go to x: (107) y: (90)\n        repeat (80)\n            move (-2) steps\n        end\n        repeat (80)\n            move (2) steps\n        end\n    else\n        hide\n    end\nend\n\n@Sprite48\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (38) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        if <(Level) = [24]> then\n            show\n            go to (1508635-diamond-pixel-art5 v)\n        end\n    else\n        hide\n    end\nend\n\nif <(Level) = [20]> then\n    show\n    go to (1508635-diamond-pixel-art2 v)\nend\n\nwhen I receive [open  5 v]\nforever\n    hide\nend\n\nwhen I receive [light v]\ngo to [back v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art3 v)\n\nstop [this script v]\n\n@Sprite47\n\nwhen flag clicked\ngo to x: (210) y: (118)\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [open  5 v]\nforever\n    go to [back v] layer\n    switch costume to (costume2 v)\n    wait (0.5) seconds\n    repeat (150)\n        change x by (1)\n    end\n    hide\n    stop [other scripts in sprite v]\n    stop [this script v]\nend\n\nwhen I receive [reset v]\ngo to x: (210) y: (118)\nswitch costume to (costume1 v)\n\n@Sprite50\n\nwhen flag clicked\ngo to x: (-15) y: (70)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 3 v]\ngo to x: (-15) y: (70)\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\ngo to x: (7) y: (7)\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n\nwhen flag clicked\nforever\n    if <(x position) > (X position 2)> then\n        change [speed x 4 v] by (-0.5)\n    end\n    if <(X position 2) > (x position)> then\n        change [speed x 4 v] by (0.5)\n    end\n    change x by (speed X 4)\n    if <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <touching (sprite38 v)?>>> then\n        change x by ((speed X 4) * (-1))\n        set [speed x 4 v] to [0]\n    else\n        set [speed x 4 v] to ((speed X 4) * (0.8))\n    end\n    change y by (speed Y 4)\n    if <<touching (sprite2 v)?> or <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <<touching (sprite44 v)?> or <<touching (sprite47 v)?> or <touching (sprite38 v)?>>>>>> then\n        change y by ((speed Y 4) * (-1))\n        set [speed y 4 v] to [0]\n        if <(lock 3) = [0]> then\n            set [speed y 4 v] to [10]\n            set [lock 3 v] to [1]\n        end\n    else\n        change [speed y 4 v] by (-1)\n        set [lock 3 v] to [0]\n    end\nend\n\nif <(lock) = [0]> then\n\nset [speed y 2 v] to [10]\nset [lock 2 v] to [1]\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [23]>\n    go to x: (-15) y: (70)\nend\n\nwhen flag clicked\nrepeat until <(Level) = [24]>\n    go to x: (-15) y: (70)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        go to x: (-15) y: (70)\n    end\nend\n\n@Sprite49\n\nwhen flag clicked\nclear graphic effects\nset [ghost v] effect to (100)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Sprite51\n\nwhen flag clicked\ngo to x: (-15) y: (70)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 3 v]\ngo to x: (30) y: (70)\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (10)\n    change [ghost v] effect by (12)\nend\ndelete this clone\n\ngo to x: (7) y: (7)\n\nwhen flag clicked\ngo to [front v] layer\ngo [backward v] (1) layers\nforever\n\nwhen flag clicked\nforever\n    if <(x position) > (X position 2)> then\n        change [x speed 5 v] by (-0.5)\n    end\n    if <(X position 2) > (x position)> then\n        change [x speed 5 v] by (0.5)\n    end\n    change x by (X speed 5)\n    if <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <touching (sprite38 v)?>>> then\n        change x by ((X speed 5) * (-1))\n        set [x speed 5 v] to [0]\n    else\n        set [x speed 5 v] to ((X speed 5) * (0.8))\n    end\n    change y by (Y speed 5)\n    if <<touching (sprite2 v)?> or <<<touching (sprite2 v)?> or <touching (sprite28 v)?>> or <<touching (sprite29 v)?> or <<touching (sprite44 v)?> or <<touching (sprite47 v)?> or <touching (sprite38 v)?>>>>>> then\n        change y by ((Y speed 5) * (-1))\n        set [y speed 5 v] to [0]\n        if <(lock 4) = [0]> then\n            set [y speed 5 v] to [10]\n            set [lock 4 v] to [1]\n        end\n    else\n        change [y speed 5 v] by (-1)\n        set [lock 4 v] to [0]\n    end\n    set [speed y 2 v] to [10]\n    set [lock 2 v] to [1]\nend\n\nif <(lock) = [0]> then\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nrepeat until <(Level) = [23]>\n    go to x: (-15) y: (70)\nend\n\nwhen flag clicked\nrepeat until <(Level) = [24]>\n    go to x: (30) y: (70)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite5 v)?> then\n        go to x: (-15) y: (70)\n    end\nend\n\nwhen I receive [enemy start v]\n\nforever\n\n@Sprite52\n\nwhen flag clicked\n\ngo to x: (7) y: (7)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 2 v]\ngo to x: (7) y: (7)\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (43) y: (-165)\nend\nforever\n    if <(Level) = [24]> then\n        show\n        go to x: (81) y: (-163)\n        repeat (37)\n            move (-3) steps\n        end\n        repeat (37)\n            move (3) steps\n        end\n    else\n        hide\n    end\nend\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite53\n\nwhen flag clicked\n\ngo to x: (7) y: (7)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 2 v]\ngo to x: (7) y: (7)\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (-142) y: (77)\nend\nforever\n    if <(Level) = [24]> then\n        show\n        go to x: (-132) y: (77)\n        repeat (37)\n            move (-3) steps\n        end\n        repeat (37)\n            move (3) steps\n        end\n    else\n        hide\n    end\nend\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [24]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite54\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        show\n        go to x: (87) y: (49)\n        repeat (35)\n            move (-2) steps\n        end\n        repeat (35)\n            move (2) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen [space v] key pressed\n\n@Sprite55\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        show\n        go to x: (-134) y: (77)\n        repeat (35)\n            move (2) steps\n        end\n        repeat (35)\n            move (-2) steps\n        end\n    else\n        hide\n    end\nend\n\nwhen [space v] key pressed\n\n@Sprite56\n\nwhen flag clicked\ngo to x: (258) y: (106)\n\nwhen I receive [open 6 v]\ngo to [back v] layer\nswitch costume to (costume2 v)\nwait (0.5) seconds\nrepeat (70)\n    go to [back v] layer\n    change y by (-1)\nend\nnext costume\nhide\n\nwhen I receive [light v]\nforever\n    go to [front v] layer\nend\n\nwhen I receive [reset v]\n\nwhen I receive [reset v]\n\ngo to x: (-23) y: (19)\nswitch costume to (costume1 v)\n\ngo to x: (-23) y: (19)\nswitch costume to (costume1 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    if <(Level) = [25]> then\n        show\n        stop [this script v]\n    else\n        hide\n    end\nend\n\nswitch costume to (costume1 v)\n\nwhen I receive [light v]\n\nstop [this script v]\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        show\n    else\n        hide\n    end\nend\n\n@1508635-diamond-pixel-art6\n\nwhen flag clicked\nset [ghost v] effect to (0)\nforever\n    if <(Level) = [25]> then\n        point in direction (90)\n        show\n        go to x: (-96) y: (-23)\n    else\n        hide\n    end\nend\n\nwhen flag clicked\n\nforever\n    point in direction (83)\n    repeat (30)\n        turn right (1) degrees\n    end\n    repeat (30)\n        turn left (1) degrees\n    end\nend\n\nwhen flag clicked\nclear graphic effects\nforever\n    go to [front v] layer\n    if <touching (sprite1 v)?> then\n        hide\n        broadcast (open 6 v)\n        repeat (20)\n            change [ghost v] effect by (5)\n        end\n        set [ghost v] effect to (100)\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [forward v] (100000) layers\nend\n\nwhen I receive [light v]\ngo to [front v] layer\n\nwhen I receive [reset v]\n\npoint in direction (90)\nshow\ngo to x: (-153) y: (76)\n\n@Sprite57\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    set [ghost v] effect to (pick random (38) to (40))\n    go [forward v] (10000) layers\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        if <(Level) = [25]> then\n            show\n            go to (1508635-diamond-pixel-art6 v)\n        end\n    else\n        hide\n    end\nend\n\nif <(Level) = [20]> then\n    show\n    go to (1508635-diamond-pixel-art2 v)\nend\n\nwhen I receive [open 6 v]\nforever\n    hide\nend\n\nwhen I receive [light v]\ngo to [back v] layer\n\nwhen I receive [reset v]\n\nshow\ngo to (1508635-diamond-pixel-art3 v)\n\nstop [this script v]\n\n@Sprite11\n\nwhen flag clicked\n\ngo to x: (7) y: (7)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 2 v]\ngo to x: (7) y: (7)\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (111) y: (-67)\nend\nforever\n    if <(Level) = [25]> then\n        show\n        go to x: (111) y: (-67)\n        repeat (60)\n            move (-5) steps\n        end\n        repeat (60)\n            move (5) steps\n        end\n    else\n        hide\n    end\nend\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite12\n\nwhen flag clicked\n\ngo to x: (7) y: (7)\n\nmove (10) steps\n\nset x to (7)\nwait (0.75) seconds\n\nwhen I receive [restart 2 v]\ngo to x: (7) y: (7)\nrepeat until <touching (sprite2 v)?>\n    change y by (-4)\nend\n\nrepeat until <touching (sprite2 v)?>\n    change y by (-5)\nend\n\nwhen flag clicked\nrepeat (10)\n    go to x: (-189) y: (-104)\nend\nforever\n    if <(Level) = [25]> then\n        show\n        go to x: (-188) y: (-108)\n        repeat (60)\n            move (5) steps\n        end\n        repeat (60)\n            move (-5) steps\n        end\n    else\n        hide\n    end\nend\n\nif <(x position) > (X position 2)> then\n    move (-2.5) steps\nend\nif <(x position) < (X position 2)> then\n    move (2.5) steps\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [25]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite13\n\nwhen flag clicked\nforever\n    if <(Level) = [26]> then\n        show\n        point in direction (90)\n        go to x: (169) y: (100)\n        repeat until <touching (sprite2 v)?>\n            change y by (-10)\n        end\n        point in direction (90)\n        wait (3) seconds\n        stop [this script v]\n    else\n        hide\n    end\nend\n\nwait (4) seconds\nrepeat (10)\n    broadcast (enemy start v)\n    wait (0.5) seconds\nend\nwait (4) seconds\n\nbroadcast (enemy start v)\n\nwhen I receive [next enemy v]\ngo to x: (167) y: (-109)\nrepeat (25)\n    change y by (7)\nend\nrepeat until <touching (sprite2 v)?>\n    change y by (-20)\nend\nbroadcast (next enemy 2 v)\ngo to x: (165) y: (-143)\n\nwhen I receive [enemy defeated v]\nstop [other scripts in sprite v]\nclear graphic effects\nrepeat (77)\n    turn right (15) degrees\n    change [ghost v] effect by (5)\n    change [brightness v] effect by (3)\n    move (-7) steps\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    set y to (Y position of player)\nend\n\nwhen I receive [lose v]\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        hide\n    end\nend\n\n@Sprite58\n\nwhen I receive [next enemy v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    set size to (70) %\n    if <(Level) = [26]> then\n        hide\n        go to x: (170) y: (-114)\n        wait (7) seconds\n        show\n        repeat (60)\n            move (-9) steps\n        end\n    else\n        hide\n    end\nend\n\n@Sprite59\n\nwhen I receive [next enemy v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nclear graphic effects\nforever\n    set size to (70) %\n    if <(Level) = [26]> then\n        wait (5) seconds\n        repeat (4)\n            hide\n            go to x: (170) y: (-114)\n            wait (4) seconds\n            show\n            repeat (60)\n                move (-9) steps\n            end\n        end\n        broadcast (next enemy v)\n    else\n        hide\n    end\nend\n\nstop [other scripts in sprite v]\n\n@Sprite60\n\nwhen I receive [next enemy v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nforever\n    set size to (70) %\n    if <(Level) = [26]> then\n        wait (6) seconds\n        hide\n        go to x: (170) y: (-114)\n        wait (5) seconds\n        show\n        repeat (60)\n            move (-9) steps\n        end\n    else\n        hide\n    end\nend\n\n@Sprite61\n\nwhen I receive [next enemy v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [next enemy v]\nhide\nset [ghost v] effect to (100)\ngo to x: (0) y: (100)\n\nwhen flag clicked\nforever\n    set size to (70) %\n    if <(Level) = [26]> then\n        hide\n        go to x: (170) y: (-114)\n        wait (0) seconds\n        show\n        repeat (60)\n            move (-9) steps\n        end\n    else\n        hide\n    end\nend\n\n@Sprite62\n\ndefine Random X position\ngo to x: (pick random (-240) to (240)) y: (173)\n\nRandom X position\n\nwhen flag clicked\nhide\nhide\nhide\n\nwhen I receive [next enemy v]\nwait (pick random (0) to (3)) seconds\nrepeat (10)\n    create clone of (_myself_ v)\n    wait (0.08) seconds\nend\nrepeat (17)\n    show\n    set y to (180)\n    Random X position\n    repeat until <touching (sprite2 v)?>\n        change y by (pick random (6) to (11))\n    end\nend\nhide\n\nbroadcast (enemy defeated v)\n\nwhen I start as a clone\nforever\n    show\n    set y to (pick random (0) to (180))\n    Random X position\n    repeat (17)\n        show\n        set y to (180)\n        Random X position\n        repeat until <touching (sprite2 v)?>\n            change y by (pick random (-9) to (-10))\n        end\n    end\n    broadcast (enemy defeated v)\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [27]> then\n        hide\n    end\nend\n\n@Sprite42\n\nwhen flag clicked\nset size to (100) %\ngo to x: (-145) y: (34)\nclear graphic effects\nwait (0.3) seconds\nforever\n    repeat (30)\n        change [ghost v] effect by (1)\n        change y by (1.5)\n        change size by (1)\n    end\n    repeat (30)\n        change [ghost v] effect by (-1)\n        change y by (-1.5)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\npoint in direction (75)\nforever\n    repeat (20)\n        turn right (2) degrees\n    end\n    repeat (20)\n        turn right (-2) degrees\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nset size to (35) %\nchange [ghost v] effect by (40)\nglide (1) secs to (sprite66 v)\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nrepeat (100)\n    change [ghost v] effect by (1)\nend\n\n@Sprite63\n\nwhen flag clicked\nclear graphic effects\ngo to x: (-12) y: (37)\nwait (0.6) seconds\nforever\n    repeat (30)\n        change y by (1.5)\n        change [ghost v] effect by (1)\n        change size by (1)\n    end\n    repeat (30)\n        change y by (-1.5)\n        change [ghost v] effect by (-1)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\nset size to (100) %\npoint in direction (75)\nforever\n    repeat (20)\n        turn right (2) degrees\n    end\n    repeat (20)\n        turn right (-2) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nset size to (40) %\nchange [ghost v] effect by (20)\nglide (1) secs to (sprite65 v)\ndelete this clone\n\nrepeat (10)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nrepeat (100)\n    change [ghost v] effect by (1)\nend\n\n@follow\n\nwhen flag clicked\nset size to (100) %\ngo to x: (130) y: (43)\nset [ghost v] effect to (20)\nforever\n    repeat (30)\n        change y by (1.5)\n        change size by (1)\n    end\n    repeat (30)\n        change size by (-1)\n        change y by (-1.5)\n    end\nend\n\nwhen flag clicked\npoint in direction (75)\nforever\n    repeat (20)\n        turn right (2) degrees\n    end\n    repeat (20)\n        turn right (-2) degrees\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        create clone of (_myself_ v)\n        wait (0.1) seconds\n    end\nend\n\nwhen I start as a clone\nset size to (30) %\nchange [ghost v] effect by (23)\nglide (1) secs to (sprite64 v)\ndelete this clone\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nrepeat (100)\n    change [ghost v] effect by (1)\nend\n\n@Sprite64\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    move (10) steps\n    turn right (7) degrees\nend\n\ngo to x: (221) y: (54)\n\n@Sprite65\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    move (10) steps\n    turn right (7) degrees\nend\n\ngo to x: (221) y: (54)\n\n@Sprite66\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    move (10) steps\n    turn right (7) degrees\nend\n\n@Sprite34\n\nwhen flag clicked\nswitch costume to (costume1 v)\nforever\n    repeat until <(Level) = [2]>\n        go to [front v] layer\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n        go [backward v] (1) layers\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nshow\nclear graphic effects\nwait (0.3) seconds\nbroadcast (intro v)\n\nwhen flag clicked\n\nwhen I receive [intro 2 v]\nrepeat (50)\n    next costume\n    next costume\nend\nrepeat (5)\n    next costume\n    next costume\nend\nwait (1) seconds\nbroadcast (intro 3 v)\nwait (3.5) seconds\nbroadcast (intro done v)\n\nwhen I receive [intro done v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Sprite35\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    change [color v] effect by (3)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen I receive [intro v]\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [intro v]\nset size to (70) %\ngo to x: (0) y: (10)\npoint in direction (60)\nforever\n    repeat (10)\n        repeat (15)\n            turn right (4) degrees\n            change size by (3)\n        end\n        repeat (15)\n            turn left (4) degrees\n            change size by (-3)\n        end\n        repeat (15)\n            turn left (-4) degrees\n            change size by (3)\n        end\n        repeat (15)\n            turn right (-4) degrees\n            change size by (-3)\n        end\n    end\nend\n\nwhen I receive [intro v]\n\nwhen I start as a clone\n\nwhen I start as a clone\n\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nset size to (40) %\nset [ghost v] effect to (40)\nglide (0.5) secs to (sprite67 v)\ndelete this clone\n\nrepeat (100)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [intro done v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\nwhen I receive [intro 3 v]\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    next costume\n    wait (pick random (0.5) to (2)) seconds\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    change [color v] effect by (3)\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\n@Sprite67\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    move (51) steps\n    turn right (21) degrees\nend\n\n@Sprite68\n\nwhen I start as a clone\ngo to x: (0) y: (0)\nset size to (150) %\nset [ghost v] effect to (0)\nglide (1.5) secs to (sprite67 v)\nrepeat (10)\n    change [ghost v] effect by (3)\nend\ndelete this clone\n\nwhen I receive [intro v]\nrepeat (100)\n    create clone of (_myself_ v)\nend\nbroadcast (intro 2 v)\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen I start as a clone\nforever\n    change [color v] effect by (3)\n    change [ghost v] effect by (1)\n    change size by (-2)\nend\n\nwhen I receive [intro done v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\n\n@Sprite69\n\nwhen flag clicked\n\nforever\n    if <<(Level) > [8]> and <(Level) < [12]>> then\nend\n\nwhen flag clicked\nset [delete all clones v] to [0]\nforever\n    repeat until <(y position) < [-150]>\n        change y by (-2)\n    end\n    set x to (pick random (-300) to (300))\n    set y to (200)\nend\n\nif <(Level) > [13]> then\n\nwhen I start as a clone\nset [color v] effect to (pick random (0) to (1000))\nforever\n    set size to (pick random (50) to (200)) %\n    show\n    go to [front v] layer\n    set [ghost v] effect to (pick random (0) to (40))\n    set size to (pick random (30) to (70)) %\n    set x to (pick random (-300) to (300))\n    set y to (200)\n    repeat until <(y position) < [-150]>\n        change y by (pick random (-10) to (-12))\n        change [ghost v] effect by (pick random (0) to (1))\n    end\n    set x to (pick random (-300) to (300))\n    set y to (200)\nend\n\nforever\n\nwhen I receive [intro 3 v]\nrepeat (100)\n    create clone of (_myself_ v)\nend\nset x to (pick random (-300) to (300))\nset y to (100)\nstop [this script v]\n\nwhen I receive [intro 3 v]\nshow\nforever\n    if <(Level) = [1]> then\n        hide\n        go to [front v] layer\n    end\nend\n\nwhen I receive [intro done v]\nforever\n    stop [other scripts in sprite v]\n    set [delete all clones v] to [1]\n    hide\n    clear graphic effects\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [intro v]\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\nwhen I receive [intro 2 v]\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [intro 3 v]\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I receive [intro 3 v]\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    if <(Level) = [1]> then\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(delete all clones) = [1]> then\n        delete this clone\n    end\nend\n\n@Sprite70\n\nwhen flag clicked\ngo to x: (219) y: (-172)\nforever\n    if <(Level) = [23]> then\n        repeat (43)\n            move (-4) steps\n        end\n        repeat (43)\n            move (4) steps\n        end\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\ngo [backward v] (1) layers\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (0)\nrepeat (7)\n    change [ghost v] effect by (17)\nend\ndelete this clone\n\nwhen flag clicked\n\nforever\n    if <(Level) = [23]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite71\n\nwhen flag clicked\nforever\n    if <(Level) = [1]> then\n        switch costume to (costume1 v)\n        show\n        clear graphic effects\n    end\n    if <(Level) = [2]> then\n        switch costume to (costume2 v)\n        show\n    end\n    if <(Level) = [3]> then\n        switch costume to (costume3 v)\n        show\n    end\n    if <(Level) = [4]> then\n        hide\n        broadcast (text 1 v)\n    end\nend\n\n@Sprite72\n\n
WORLDS - a platformer by bestCoconut \n(PART 2 IS OUT AND IT'S A SCROLLING PLATFORMER\nhttps://scratch.mit.edu/projects/391561792)\n(scroll down for instructions)\n-----------------------------------------------------------------\nClick the green flag x 2\n-----------------------------------------------------------------\nThis is probably my best and definitely my longest platformer. It has 27 levels, which include 6 different worlds: grassland, a cave, candy wonderland, a land made of worlds (not sure what to call it, maybe WorldLand), portal temple, and finally on the harder boss world with almost all the features of the other worlds (bounce, spikes, lava, portals, gems), and enemies, moving platforms and a final boss fight at the end of the game (level 26).\nI worked on this for many weeks, so why not ☆ and ❤︎? (or maybe even a follow!) I also put this project in a contest (Unique Platformer Challenge). If you think I should win, a favourite or love would also help! :D\nIf this gets 500+ views (or 100 ❤︎ and 75 ☆), I will make a part 2! (which might be also my first scrolling platformer!) :D\n-----------------------------------------------------------------\nHow to play:\n---------------------------------------------------------\n▻ EVERY LEVEL IS 100% POSSIBLE (though some levels, like 20 or 24, are pretty hard)\n▻ Get to the green flag to get to the next level\n▻ Use ←→↑↓ to move (not WASD) \n▻ Don't touch spikes, lava or enemies!\n▻ Portals (the moving squares) teleport you to different places\n▻ Get the gem to open the door\n▻ Purple is bouncy\n▻ And again, why not leave a like or maybe even a follow? :D (I will make/try to make a scrolling platformer if I get 50 followers)\n-----------------------------------------------------------------\nAchievements:\n✓ Shared\n✓ 10 views\n✓ 10 x ❤︎\n✓ 10 x ☆\n✓ 100 views\n✓ 15 x ❤︎\n✓ 15 x ☆\n✘ 100 x ❤︎\n✘ 100 x ☆\n✘ 1000 views\n✘ Get this on trending (probably not but still :D)\n-----------------------------------------------------------------\nTrending or 1000 views or 50 followers = I'll make a part 2! And it will be a scrolling platformer!\n-----------------------------------------------------------------\nCheck out some of my other platformers:\nhttps://scratch.mit.edu/projects/382738342\nhttps://scratch.mit.edu/projects/369177667\n-----------------------------------------------------------------\nContest link:\nhttps://scratch.mit.edu/studios/26318536/projects/