Danger - A platformer

Instructions: Spam the green flag for better quality\n- Use Arrow keys or wasd to move\n- This is also mobile so you can tap the screen to move\n- Move into the sign to see what it says\n- You can not move or skip while the sign is reading \n- Press M to mute and unmute\n-Type skip to skip the level\n

@Stage\n\nwhen flag clicked\nforever\n    if <<[0] < (Level)> and <(Level) < [10]>> then\n        switch backdrop to (blue  v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<[9] < (Level)> and <(Level) < [19]>> then\n        switch backdrop to (rain v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    play sound [Jim Yosef & Anna Yvette - Linked \[NCS Release\] v] until done\nend\n\nwhen flag clicked\nset volume to (100) %\nset [mute v] to [No]\nforever\n    if <key (m v) pressed?> then\n        if <(Mute) = [No]> then\n            set volume to (0) %\n            set [mute v] to [Yes]\n            broadcast (Mute v)\n            wait (.2) seconds\n        else\n            if <(Mute) = [Yes]> then\n                set volume to (100) %\n                set [mute v] to [No]\n                broadcast (Unmute v)\n                wait (.2) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [19]> then\n        switch backdrop to (light v)\n    end\nend\n\n@Player\n\nwhen I receive [next level v]\ngo to x: (-193) y: (20)\nchange [level v] by (1)\nset [deaths in a level v] to [0]\nset [skiped v] to [0]\nbroadcast (Delete clones v)\n\nwhen flag clicked\nhide\nhide variable [level v]\nset [how many clones v] to [0]\nset [how many clones v] to [0]\nset size to (100) %\n\nwhen I start as a clone\nchange [how many clones v] by (1)\nset size to (100) %\nrepeat (10)\n    change size by (-4)\n    change [ghost v] effect by (10)\nend\nchange [how many clones v] by (-1)\ndelete this clone\n\nwhen I receive [start game v]\nset [yv v] to [0]\nset [xv v] to [0]\nset [change? v] to [0]\nswitch costume to (costume1 v)\nshow\nset size to (90) %\ngo to x: (-193) y: (20)\nforever\n    if <(TEXT reading) = [False]> then\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            change [xv v] by (1)\n            point in direction (90)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n            change [xv v] by (-1)\n            point in direction (-90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                    set [yv v] to [13]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yv v] by (-1)\n        change y by (Yv)\n        if <touching (level v)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <touching (level v)?> then\n            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n                set [yv v] to [15]\n            end\n        end\n        change y by (1)\n        if <touching (trampoline v)?> then\n            set [yv v] to [20]\n        end\n        if <touching (danger v)?> then\n            go to x: (-193) y: (30)\n            change [deaths in a level v] by (1)\n            set [yv v] to [-4]\n        end\n    else\n        if <(TEXT reading) = [True]> then\n            repeat (60)\n                change [ghost v] effect by (.5)\n            end\n            wait until <(TEXT reading) = [False]>\n        end\n    end\nend\n\nwhen I receive [start game v]\nset [level v] to [1]\nset [next level glitch fix v] to [1]\nforever\n    if <<(x position) > [222]> and <not <(Level) = [19]>>> then\n        set [next level glitch fix v] to [1]\n        broadcast (NEXT LEVEL v)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        go to x: (-193) y: (20)\n        set size to (90) %\n    end\nend\n\nwhen I receive [start game v]\nshow\n\nwhen I receive [start game v]\nforever\n    if <(y position) < [-178]> then\n        go to x: (-193) y: (30)\n        change [deaths in a level v] by (1)\n        set [yv v] to [-4]\n    end\n    if <key (r v) pressed?> then\n        go to x: (-193) y: (30)\n        set [yv v] to [-4]\n        wait (1) seconds\n    end\nend\n\nchange [color v] effect by (10)\n\nset [color v] effect to (0)\n\nwhen flag clicked\nhide\nclear graphic effects\nset [text reading v] to [False]\nset [deaths in a level v] to [0]\n\nchange [color v] effect by (25)\n\nwhen I receive [text reading v]\nset [text reading v] to [True]\n\nwhen I receive [text not reading v]\nset [text reading v] to [False]\nrepeat (60)\n    change [ghost v] effect by (-.5)\nend\n\nset [level save v] to [1]\n\nset [level save v] to [1]\n\nwhen flag clicked\nforever\n    \nend\n\ndefine Trampoline physics\n\n@Level\n\nwhen flag clicked\nhide\nset [level v] to [1]\ngo to x: (23) y: (26)\n\nwhen I receive [time before start v]\nset [level v] to [1]\nshow\nforever\n    switch costume to (Level)\nend\n\ngo to [front v] layer\n\nbroadcast (Start game v)\n\nforever\n\nset [level v] to [16]\n\n@My Intro\n\nwhen flag clicked\nhide\nReset\nset [waiting v] to [0]\nset [clonenumber v] to [0]\nset [sides v] to [0]\nset [value v] to [0]\nset [velocity v] to [0]\ncreate clone of (_myself_ v)\nswitch costume to (me v)\nstart sound [Electro-Light - Symbolism v]\nwait (1.82) seconds\nset [clonenumber v] to [1]\nset [i v] to [5]\nrepeat (10)\n    create clone of (_myself_ v)\n    if <(sides) = [1]> then\n        set [sides v] to [0]\n        change [value v] by (10)\n        change [i v] by (-.4)\n    else\n        set [sides v] to [1]\n    end\nend\nset [clonenumber v] to [2]\nwait (.3) seconds\nrepeat (4)\n    create clone of (_myself_ v)\n    change [value v] by (10)\n    wait (0.1) seconds\nend\nclear graphic effects\nswitch costume to (me v)\ngo [forward v] (99) layers\ngo to [front v] layer\nset size to (0) %\nshow\nrepeat until <(round (size)) = [50]>\n    change size by (((50) - (size)) / (3))\nend\ncreate clone of (_myself_ v)\nwait until <touching color (#fbffe6)?>\nrepeat until <(round (size)) = [100]>\n    change size by (((100) - (size)) / (5))\nend\nset [velocity v] to [17]\nset [waiting v] to [1]\nset [clonenumber v] to [3]\ncreate clone of (_myself_ v)\nset [clonenumber v] to [4]\ncreate clone of (_myself_ v)\nset [waiting v] to [2]\nrepeat (25)\n    go [forward v] (99) layers\n    set [velocity v] to ((velocity) * (.95))\n    set size to ((100) + (velocity)) %\nend\nreset timer\nrepeat until <(timer) > [3]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((150) - (size)) / (3))\nend\npoint in direction (90)\nset [value v] to [5]\nrepeat (16)\n    turn right (value) degrees\n    change [value v] by (1)\nend\nrepeat until <(round (direction)) = [90]>\n    turn right (((90) - (direction)) / (5)) degrees\nend\nrepeat until <(timer) > [6]>\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\n    change size by (((175) - (size)) / (3))\nend\nset [velocity v] to [12]\nrepeat (30)\n    change size by (velocity)\n    change [velocity v] by (-1)\n    change [ghost v] effect by (3.3)\n    go to x: (pick random (-3) to (3)) y: (pick random (-3) to (3))\nend\nbroadcast (Intro End Animation v)\nhide\n\nwhen I start as a clone\nif <(clonenumber) = [0]> then\n    Reset\n    show\n    set size to (0) %\n    point in direction (-15)\n    switch costume to (square v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    repeat (15)\n        change [value v] by (1)\n        turn right (value) degrees\n        change [velocity v] by (1)\n        change size by (velocity)\n    end\n    set [value v] to [8]\n    repeat (30)\n        set [value v] to (((value) * (0.69)) + ((90) - (direction)))\n        turn right (value) degrees\n    end\n    repeat (12)\n        next costume\n    end\n    repeat until <(round (size)) = [2000]>\n        switch costume to (blank v)\n        change size by (((2000) - (size)) / (5))\n        switch costume to (square13 v)\n    end\nend\n\ndefine Reset\nclear graphic effects\nset size to (100) %\npoint in direction (90)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [1]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    switch costume to (square13 v)\n    set [brightness v] effect to (value)\n    go to x: (0) y: (0)\n    set [i v] to (i)\n    if <(sides) = [1]> then\n        repeat until <(round (y position)) = [180]>\n            change y by (((180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    else\n        repeat until <(round (y position)) = [-180]>\n            change y by (((-180) - (y position)) / (i))\n            change [ghost v] effect by (5)\n        end\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [2]> then\n    Reset\n    show\n    switch costume to (blank v)\n    set size to (150) %\n    point in direction (90)\n    set [brightness v] effect to (value)\n    go to x: (240) y: (-180)\n    point in direction (-135)\n    switch costume to (screen v)\n    repeat until <(round (direction)) = [90]>\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    point in direction (90)\n    wait until <(waiting) = [1]>\n    delete this clone\nend\n\nwhen I start as a clone\nif <(clonenumber) = [3]> then\n    Reset\n    show\n    go to [front v] layer\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (5)\n        change [brightness v] effect by (-20)\n    end\nend\n\nwhen I start as a clone\nif <(clonenumber) = [4]> then\n    Reset\n    clear graphic effects\n    show\n    go to [front v] layer\n    go [forward v] (999) layers\n    switch costume to (screennormal v)\n    set size to (100) %\n    point in direction (90)\n    set [brightness v] effect to (100)\n    go to x: (0) y: (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Move and Clones\nset [clonenumber v] to [5]\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (80)\ncreate clone of (_myself_ v)\ngo to x: (-150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (150) y: (-80)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (0)\n\nwhen I start as a clone\nif <(clonenumber) = [5]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    point in direction (90)\n    switch costume to (sidesquareline v)\n    set [velocity v] to [0]\n    set [value v] to [0]\n    go to [front v] layer\n    repeat until <(round (size)) = [300]>\n        change size by (((300) - (size)) / (15))\n        change [ghost v] effect by (4)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nwait until <(waiting) = [2]>\nreset timer\nrepeat until <(timer) > [6]>\n    Move and Clones\n    wait (1) seconds\nend\n\nwhen I receive [intro end animation v]\nbroadcast (Time before start v)\nif <not <(costume [number v]) = [14]>> then\n    repeat (20)\n        change size by (((0) - (size)) / (5))\n        change [ghost v] effect by (5)\n    end\nelse\n    broadcast (Show STARTING buttons v)\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n        switch costume to (blank v)\n        switch costume to (square v)\n    end\n    set [velocity v] to [12]\n    repeat (30)\n        change size by (velocity)\n        change [velocity v] by (-1)\n        change [ghost v] effect by (3.3)\n        turn right (([abs v] of (velocity) ) / (2)) degrees\n    end\n    delete this clone\nend\n\nwhen flag clicked\nhide variable [mute v]\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [color v] effect to (0)\ngo to [back v] layer\nclear graphic effects\nwait (1.5) seconds\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\n\nshow\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nforever\n    set [timer v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (Timer)\nshow\ngo to [front v] layer\n\nchange [color v] effect by (10)\n\n@Rain\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset [rain count v] to [0]\n\nwhen I start as a clone\nchange [rain count v] by (1)\nshow\ngo to [front v] layer\nif <(Wind) = [0]> then\n    point in direction (90)\n    show\n    go to [front v] layer\n    go to x: (pick random (-230) to (230)) y: (190)\n    forever\n        repeat until <<<touching (level v)?> or <touching (player v)?>> or <<touching (danger v)?> or <touching (sign v)?>>>\n            change y by (-8)\n        end\n        if <(pick random (1) to (2)) = [1]> then\n            create clone of (_myself_ v)\n        end\n        delete this clone\n    end\nend\nif <(Wind) = [1]> then\n    point in direction (-135)\n    show\n    go to [back v] layer\n    go to x: (pick random (-230) to (230)) y: (180)\n    forever\n        repeat until <<touching (danger a platformer words v)?> or <touching (_edge_ v)?>>\n            change y by (-10)\n        end\n        create clone of (_myself_ v)\n        delete this clone\n    end\nend\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [start game v]\nset [wind v] to [0]\nhide\ngo to [back v] layer\nforever\n    if <<(Level) > [9]> and <(Level) < [18]>> then\n        go to [front v] layer\n        create clone of (_myself_ v)\n    end\n    wait (.1) seconds\nend\n\nrepeat (20)\nend\n\nset [level v] to [10]\n\n\n\n@Danger a platformer WORDS\n\nwhen flag clicked\nhide\nset [start v] to [False]\n\nwhen I receive [time before start v]\nshow\nhide variable [level v]\ngo to x: (-2) y: (129)\nrepeat until <(Start) = [True]>\n    change y by ([sin v] of ((timer) * (300)) )\n    go to [front v] layer\nend\nhide\n\nwhen I receive [start game v]\nset [start v] to [True]\n\n@play button\n\nwhen flag clicked\nhide\nclear graphic effects\ngo to x: (0) y: (20)\nset [ghost v] effect to (0)\n\nwhen I receive [time before start v]\ngo to x: (0) y: (25)\nwait (.5) seconds\nset [ghost v] effect to (100)\nshow\nrepeat (80)\n    change [ghost v] effect by (-1.25)\nend\nrepeat until <(Start) = [True]>\n    show\nend\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\nhide\n\nwhen I receive [time before start v]\ngo to x: (0) y: (20)\nrepeat until <(Start) = [True]>\n    if <touching (mouse-pointer v)?> then\n        repeat (5)\n            change size by (3)\n        end\n        wait until <<not <touching (mouse-pointer v)?>> or <mouse down?>>\n        if <mouse down?> then\n            broadcast (Start game v)\n            set [start v] to [true]\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        repeat (5)\n            change size by (-3)\n        end\n    end\nend\nhide\n\n@clouds\n\nwhen I start as a clone\ngo to [back v] layer\ngo [backward v] (10) layers\nshow\nif <not <<(Level) = [11]> or <<(Level) = [12]> or <<(Level) = [13]> or >>>> then\n    if <<[9] < (Level)> and <(Level) < [18]>> then\n        set [brightness v] effect to (pick random (30) to (60))\n        switch costume to (pick random (1) to (4))\n        go to x: (0) y: (0)\n        set [right? v] to (pick random (0) to (1))\n        go to (random position v)\n        set [x v] to ((x position) + ((-1) * ([x position v] of [level v])))\n        set [y v] to ((y position) + ((-1) * ([x position v] of [level v])))\n        set [ghost v] effect to (pick random (50) to (90))\n        set [ghost v] to [100]\n        forever\n            if <not <(Ghost) = [70]>> then\n                change [ghost v] effect by (-1)\n                change [ghost v] by (-1)\n            end\n            if <(Right?) = [0]> then\n                change [x v] by (1)\n            else\n                change [x v] by (-1)\n            end\n            go to x: ((X) + ([x position v] of [level v])) y: ((Y) + ([x position v] of [level v]))\n            if <<(round (x position)) = (round ((X) + ([x position v] of [level v])))> and <(round (y position)) = (round ((Y) + ([x position v] of [level v])))>> then\n            if <<touching (level v)?> or <touching (level v)?>> then\n                if <not <<(Level) = [11]> or <<(Level) = [12]> or <<(Level) = [13]> or >>>> then\n                    if <(pick random (1) to (2)) = [2]> then\n                        create clone of (_myself_ v)\n                    end\n                end\n                delete this clone\n            end\n        end\n    else\n        set [brightness v] effect to (100)\n        switch costume to (pick random (1) to (4))\n        go to x: (0) y: (0)\n        set [right? v] to (pick random (0) to (1))\n        go to (random position v)\n        set [x v] to ((x position) + ((-1) * ([x position v] of [level v])))\n        set [y v] to ((y position) + ((-1) * ([x position v] of [level v])))\n        set [ghost v] effect to (100)\n        set [ghost v] to [100]\n        forever\n            if <not <(Ghost) = [70]>> then\n                change [ghost v] effect by (-1)\n                change [ghost v] by (-1)\n            end\n            if <(Right?) = [0]> then\n                change [x v] by (1)\n            else\n                change [x v] by (-1)\n            end\n            go to x: ((X) + ([x position v] of [level v])) y: ((Y) + ([x position v] of [level v]))\n            if <<(round (x position)) = (round ((X) + ([x position v] of [level v])))> and <(round (y position)) = (round ((Y) + ([x position v] of [level v])))>> then\n            if  then\n                if <(pick random (1) to (2)) = [2]> then\n                    create clone of (_myself_ v)\n                end\n                delete this clone\n            end\n        end\n    end\n    go to [front v] layer\n    change [clone count v] by (1)\n    show\n    clear graphic effects\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [time before start v]\nset [clone count v] to [0]\nhide\nforever\n    if <<not <(Clone Count) = [5]>> and <not <(Level) > [17]>>> then\n        if <[10] < (Level)> then\n            wait (.45) seconds\n            create clone of (_myself_ v)\n        else\n            wait (pick random (.5) to (.7)) seconds\n            create clone of (_myself_ v)\n        end\n    end\nend\n\n@color\n\nwhen flag clicked\nhide\nclear graphic effects\ngo to x: (0) y: (-35)\nset [ghost v] effect to (0)\nset size to (100) %\n\nwhen I receive [time before start v]\ngo to x: (0) y: (-35)\nwait (.5) seconds\nset [ghost v] effect to (100)\nshow\nrepeat (80)\n    change [ghost v] effect by (-1.25)\nend\nrepeat until <(Start) = [True]>\n    show\nend\nrepeat (40)\n    change [ghost v] effect by (2.5)\nend\nhide\n\nwhen I receive [time before start v]\nSIZE AND CLICK\n\ndefine SIZE AND CLICK\nset [size down? v] to [False]\ngo to x: (0) y: (-35)\nrepeat until <(Start) = [True]>\n    if <touching (mouse-pointer v)?> then\n        repeat (5)\n            change size by (3)\n        end\n        wait until <<not <touching (mouse-pointer v)?>> or <mouse down?>>\n        if <mouse down?> then\n            say [Coming soon!] for (2) seconds\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n        if <(Size down?) = [False]> then\n            repeat (5)\n                change size by (-3)\n            end\n        end\n        set [size down? v] to [False]\n    end\nend\nhide\n\n@danger\n\nwhen flag clicked\nhide\npoint in direction (90)\n\ndefine Clone at x: (x) y: (y) Costume: (costume) Size: (size) Moving? (true or false) Direction: (direction)\ngo to x: (x) y: (y)\nswitch costume to (costume)\nset [size v] to (size)\nset [moving v] to (direction)\npoint in direction (direction)\ncreate clone of (_myself_ v)\n\nwhen I receive [start game v]\nforever\n    wait until <(Level) = [3]>\n    Clone at x: [50] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [-50] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [4]>\n    Clone at x: [6] y: [-130] Costume: [4] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [5]>\n    Clone at x: [80] y: [-30] Costume: [3] Size: [150] Moving? [False] Direction: [90]\n    Clone at x: [-30] y: [-36] Costume: [3] Size: [125] Moving? [False] Direction: [90]\n    Clone at x: [-120] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [180] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [224] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [6]>\n    Clone at x: [-110] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [-30] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [50] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [130] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [210] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [7]>\n    Clone at x: [-30] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [85] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [130] y: [-51] Costume: [1] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [9]>\n    Clone at x: [-75] y: [87] Costume: [1] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [66] y: [87] Costume: [1] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [110] y: [87] Costume: [1] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [-120] y: [87] Costume: [1] Size: [100] Moving? [False] Direction: [-90]\n    wait until <(Level) = [10]>\n    Clone at x: [75] y: [12] Costume: [2] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [220] y: [-42] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [220] y: [80] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    wait until <(Level) = [11]>\n    Clone at x: [220] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [179] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [138] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [97] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [56] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [15] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [-26] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    wait until <(Level) = [12]>\n    Clone at x: [-130] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [-25] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [80] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [185] y: [87] Costume: [3] Size: [100] Moving? [False] Direction: [-90]\n    wait until <(Level) = [13]>\n    Clone at x: [-25] y: [95] Costume: [4] Size: [100] Moving? [False] Direction: [-90]\n    Clone at x: [210] y: [-100] Costume: [4] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [14]>\n    Clone at x: [-50] y: [-43] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    Clone at x: [140] y: [-43] Costume: [3] Size: [100] Moving? [False] Direction: [90]\n    wait until <(Level) = [17]>\n    Clone at x: [-230] y: [-60] Costume: [1] Size: [50] Moving? [False] Direction: [90]\n    Clone at x: [-207] y: [-60] Costume: [1] Size: [50] Moving? [False] Direction: [90]\n    Clone at x: [-185] y: [-60] Costume: [1] Size: [50] Moving? [False] Direction: [90]\n    Clone at x: [80] y: [107] Costume: [1] Size: [30] Moving? [False] Direction: [90]\n    Clone at x: [47] y: [-35] Costume: [3] Size: [80] Moving? [False] Direction: [-90]\n    Clone at x: [80] y: [-35] Costume: [3] Size: [80] Moving? [False] Direction: [-90]\n    Clone at x: [115] y: [-35] Costume: [3] Size: [80] Moving? [False] Direction: [-90]\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (Size) %\ngo to [front v] layer\nshow\n\nwhen I receive [delete clones v]\ndelete this clone\n\nshow\nforever\n    set size to (80) %\n    switch costume to (3 v)\n    go to [front v] layer\n    go to x: (80) y: (-35)\n    point in direction (-90)\nend\n\nwhen I receive [start game v]\n\ndefine Clone enemy at X (x) Y (y) Follow? (yes or no) Direction (direction)\n\nforever\n    wait until <(Level) = [10]>\nend\n\nhide\n\n@Sign\n\nwhen I receive [start game v]\nSign block \n\nwhen flag clicked\nhide\nclear graphic effects\ngo to [front v] layer\nset size to (130) %\nswitch costume to (light v)\nset [floating? v] to []\n\ndefine SET SIGN x: (x) y: (y) Level: (level) Floating: (yes or no)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nset [floating? v] to (yes or no)\n\nshow\nclear graphic effects\ngo to [front v] layer\nset size to (130) %\n\nwait until <(Level) = []>\nif <(Level) = []> then\n    SET SIGN x: [] y: [] Level: [] Floating: []\nend\n\ndefine Sign block \nhide\nforever\n    wait until <(Level) = [1]>\n    SET SIGN x: [0] y: [-47] Level: [1] Floating: [no]\n    wait until <(Level) = [2]>\n    SET SIGN x: [-100] y: [-47] Level: [2] Floating: [no]\n    wait until <(Level) = [3]>\n    SET SIGN x: [-150] y: [-47] Level: [3] Floating: [no]\n    wait until <(Level) = [4]>\n    SET SIGN x: [-120] y: [-47] Level: [4] Floating: [no]\n    wait until <(Level) = [8]>\n    SET SIGN x: [-120] y: [-47] Level: [8] Floating: [no]\n    wait until <(Level) = [10]>\n    SET SIGN x: [-150] y: [-46] Level: [9] Floating: [yes]\nend\n\nwhen I receive [delete clones v]\ndelete this clone\n\nwhen I start as a clone\nshow\nset [level save v] to [1]\nforever\n    if <touching (player v)?> then\n        if <(Level save) = [1]> then\n            broadcast (Text v)\n            set [level save v] to [0]\n        end\n    end\nend\n\nset [level save v] to [1]\n\nwhen I receive [next level v]\nset [level save v] to [0]\n\nforever\n    go to [front v] layer\n    show\n    go to x: (-150) y: (-46)\nend\n\nwhen I start as a clone\n\nforever\n    if <(Floating?) = [Yes]> then\n        repeat (10)\n            change y by (1)\n        end\n        repeat (10)\n            change y by (-1)\n        end\n    end\nend\n\nset [floating? v] to [Yes]\n\n@Sign text\n\ndefine Text (text) at x: (x) y: (y)\nset [ghost v] effect to (0)\nset size to (188) %\ngo to x: (x) y: (y)\nset [i v] to [1]\nbroadcast (TEXT READING v)\nrepeat (length of (text))\n    set [letter v] to (letter (I) of (text))\n    change [i v] by (1)\n    switch costume to (blank v)\n    switch costume to (letter)\n    if <(costume [number v]) = [1]> then\n        switch costume to (join (letter) [_])\n    end\n    create clone of (_myself_ v)\n    change x by (16)\n    if <(letter (I) of (text)) = [@]> then\n        set x to (-180)\n        change y by (-30)\n    end\n    wait () seconds\nend\n\nwhen flag clicked\nhide\nset [ghost v] effect to (-100)\nset [brightness v] effect to (0)\nswitch costume to (blank v)\nset size to (188) %\n\nwhen I receive [next level v]\nbroadcast (delete text v)\n\nwhen I receive [delete text v]\ndelete this clone\n\nwhen I receive [text v]\nif <(Level) = [1]> then\n    set [i v] to [1]\n    Text [Welcome] at x: [-50] y: [120]\n    wait (2) seconds\n    set [i v] to [0]\n    broadcast (Text not reading v)\nelse\n    if <(Level) = [2]> then\n        set [i v] to [1]\n        Text [Don't fall in!] at x: [-165] y: [100]\n        wait (2) seconds\n        set [i v] to [0]\n        broadcast (Text not reading v)\n    else\n        if <(Level) = [3]> then\n            set [i v] to [1]\n            Text [Don't touch the spikes!] at x: [-165] y: [100]\n            wait (2) seconds\n            set [i v] to [0]\n            broadcast (Text not reading v)\n        else\n            if <(Level) = [4]> then\n                set [i v] to [1]\n                Text [Lava!] at x: [-165] y: [100]\n                wait (1) seconds\n                Text [Here? ] at x: [-80] y: [100]\n                wait (1) seconds\n                Text [@Just jump over it.] at x: [-185] y: [75]\n                wait (2) seconds\n                set [i v] to [0]\n                broadcast (Text not reading v)\n            else\n                if <(Level) = [8]> then\n                    set [i v] to [1]\n                    Text [Look! a Trampoline!@Try jumping on it] at x: [-165] y: [100]\n                    wait (2) seconds\n                    set [i v] to [0]\n                    broadcast (Text not reading v)\n                else\n                    if <(Level) = [10]> then\n                        set [i v] to [1]\n                        Text [It's raining!] at x: [-165] y: [100]\n                        wait (2) seconds\n                        set [i v] to [0]\n                        broadcast (Text not reading v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nText [Press space or click@the screen to continue] at x: [-165] y: [80]\nwait until <<key (space v) pressed?> or <mouse down?>>\n\nset [text reading v] to [False]\n\nset [i v] to [1]\nText [so once you s] at x: [0] y: [50]\nwait (1) seconds\nset [i v] to [0]\n\nwhen I start as a clone\nif <<(Level) > [9]> and <(Level) < [21]>> then\n    set [brightness v] effect to (0)\nelse\n    set [brightness v] effect to (-100)\nend\nshow\ngo to [front v] layer\nwait until <(I) = [0]>\ndelete this clone\n\nhide\n\nset [level save v] to [1]\n\nwhen I receive [start game v]\nset [have i mentioned that you can skip? v] to [no]\nforever\n    if <<(Deaths in a level) = [20]> and <(Have I mentioned that you can skip?) = [No]>> then\n        set [i v] to [1]\n        Text [Too hard?] at x: [-100] y: [100]\n        wait (1) seconds\n        Text [Type skip to skip the level] at x: [-200] y: [75]\n        wait (2) seconds\n        set [i v] to [0]\n        set [can i skip? v] to [Yes]\n        set [have i mentioned that you can skip? v] to [Yes]\n        broadcast (Text not reading v)\n    end\nend\n\nwhen I receive [start game v]\nforever\n    if <(TEXT reading) = [False]> then\n        if <key (s v) pressed?> then\n            wait until <key (k v) pressed?>\n            if <key (k v) pressed?> then\n                wait until <key (i v) pressed?>\n                if <key (i v) pressed?> then\n                    wait until <key (p v) pressed?>\n                    if <key (p v) pressed?> then\n                        broadcast (NEXT LEVEL v)\n                        wait (1) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [start game v]\nset [lvl 18 text v] to [no]\nforever\n    if <<(Level) = [18]> and <(LVL 18 TEXT) = [No]>> then\n        set [i v] to [1]\n        Text [I see light!] at x: [-100] y: [100]\n        wait (1) seconds\n        set [lvl 18 text v] to [Yes]\n        broadcast (Text not reading v)\n    end\nend\n\n@Trampoline\n\nwhen I receive [start game v]\nforever\n    wait until <(Level) = [8]>\n    Clone at x: [109] y: [-63] Size: [100] Costume: [2]\n    wait until <(Level) = [9]>\n    Clone at x: [-90] y: [-63] Size: [100] Costume: [2]\n    Clone at x: [90] y: [-63] Size: [100] Costume: [2]\n    wait until <(Level) = [12]>\n    Clone at x: [-125] y: [-63] Size: [100] Costume: [3]\n    Clone at x: [-20] y: [-63] Size: [100] Costume: [3]\n    Clone at x: [85] y: [-63] Size: [100] Costume: [3]\n    Clone at x: [190] y: [-63] Size: [100] Costume: [3]\nend\n\nwhen flag clicked\nhide\n\ndefine Clone at x: (x) y: (y) Size: (size) Costume: (costume)\ngo to x: (x) y: (y)\nset [size v] to (size)\nswitch costume to (costume)\ncreate clone of (_myself_ v)\n\nshow\nforever\n    set size to (100) %\n    switch costume to (3 v)\n    go to x: (-20) y: (-63)\n    go to [back v] layer\nend\n\nwhen I start as a clone\nset size to (Size) %\nclear graphic effects\nshow\ngo to [back v] layer\n\nwhen I receive [delete clones v]\ndelete this clone\n\n@SO CLOSE\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <(Level) = [18]> then\n        show\n    else\n        hide\n    end\nend\n\n