LavaSwitch Platformer

Instructions: WASD or Arrow Keys to move.\nHit the blue switch and the orange square turns green. Go to the green square to complete the level.\n\nUse arrow keys to select chapter and press Space to start playing.\nPress M at any time to return to the chapter select screen.

@Stage\n\nwhen I receive [stage 1 v]\nswitch backdrop to (level 1 v)\nset [chapter v] to [1]\n\nwhen I receive [stage 2 v]\nswitch backdrop to (level 11 v)\nset [chapter v] to [2]\n\nwhen backdrop switches to [level 11 v]\nset [chapter v] to [2]\n\nwhen I receive [stage 3 v]\nswitch backdrop to (level 21 v)\nset [chapter v] to [3]\n\nwhen backdrop switches to [level 21 v]\nset [chapter v] to [3]\n\nwhen flag clicked\nset [chapter v] to [1]\nswitch backdrop to (contrast v)\nwait (0.1) seconds\nbroadcast (Menu v)\n\nwhen I receive [menu v]\nset [transition v] to [0]\nswitch backdrop to ((Selected Chapter) + (30))\nrepeat until <not <(backdrop [number v]) > [30]>>\n    switch backdrop to ((Selected Chapter) + (30))\nend\n\nwhen [m v] key pressed\nbroadcast (Menu v)\n\nwhen flag clicked\nforever\n    set volume to (40) %\n    play sound [medieval2 v] until done\nend\n\nwhen I receive [next level v]\nnext backdrop\n\n@Player\n\nwhen flag clicked\nset [speed y v] to [0]\ngo to x: (-176) y: (-31)\nset [speed v] to [5]\n\nwhen backdrop switches to [level 9 v]\nwait (1) seconds\ngo to x: (-175) y: (89)\n\nwhen I receive [start game v]\nwait (0.3) seconds\nforever\n    if <<touching color (#ff7408)?> or <<touching color (#ff5e28)?> or <touching color (#000000)?>>> then\n        change [deaths v] by (1)\n        broadcast (Play Level v)\n        set [goal v] to [0]\n        set [switch v] to [0]\n        go to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\n    end\nend\n\nwhen I receive [start game v]\nwait (0.3) seconds\nforever\n    if <(Transition) = [0]> then\n        if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> and <(falling?) < [3]>> then\n            set [speed y v] to [12]\n        end\n        if <(speed y) > [-15]> then\n            change [speed y v] by (-1)\n        end\n        if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n            point in direction (-90)\n            move (Speed) steps\n            if <<<<<touching color (#8aedda)?> or <touching color (#4bc303)?>> or <touching color (#4674ff)?>> and <(direction) = [-90]>> and <<not <touching color (#666666)?>> or <(backdrop [name v]) = [19]>>> then\n                move ((-1) * (Speed)) steps\n            end\n        end\n        if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n            point in direction (90)\n            move (Speed) steps\n            if <<<<<touching color (#8aedda)?> or <touching color (#4bc303)?>> or <touching color (#4674ff)?>> and <(direction) = [90]>> and <<not <touching color (#666666)?>> or <(backdrop [name v]) = [19]>>> then\n                move ((-1) * (Speed)) steps\n            end\n        end\n    end\nend\n\nwhen flag clicked\nbroadcast (Level 1 v)\nhide\n\nwhen I receive [play level v]\nwait (0.3) seconds\nif <<<(backdrop [name v]) = [Level 1]> or <(backdrop [name v]) = [Level 11]>> or <(backdrop [name v]) = [Level 21]>> then\n    show\nend\n\nwhen I receive [play level v]\nwait (0.3) seconds\nwait until <(y position) > [180]>\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\nbroadcast (Glitched v)\nbroadcast (Play Level v)\n\nwhen backdrop switches to [level 18 v]\nwait (1) seconds\ngo to x: (-218) y: (79)\n\nwhen I receive [play level v]\nwait (1) seconds\nwait until <touching color (#ffb410)?>\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\nchange [deaths v] by (1)\nbroadcast (Play Level v)\n\ndefine Touch Ground <>\nchange [falling? v] by (1)\nrepeat until <not <<<touching color (#8aedda)?> or <touching color (#4bc303)?>> or <touching color (#4674ff)?>>>\n    if <up?> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling? v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen backdrop switches to [level 15 v]\nwait (1) seconds\ngo to x: (-215) y: (108)\n\nwhen backdrop switches to [level 23 v]\nwait (0.1) seconds\ngo to x: (-218) y: (-126)\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [level 1 v]\nwait (0.2) seconds\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\nhide\nwait (0.1) seconds\nshow\n\nwhen I receive [play level v]\nwait (0.3) seconds\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\nshow\n\nwhen I receive [start game v]\nwait (0.3) seconds\nforever\n    change y by (speed y)\n    if <(speed y) > [-15]> then\n        change [speed y v] by (-1)\n    end\n    Touch Ground <(speed y) > [0]>\nend\n\ndefine None\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <<<touching color (#8aedda)?> or <touching color (#4bc303)?>> or <touching color (#4674ff)?>>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\n\nwhen I receive [next level v]\n\nwait (0.2) seconds\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\nhide\nwait (0.1) seconds\nshow\n\nwait (0.1) seconds\n\nhide\n\n@Switch\n\nwhen flag clicked\nreset timer\ngo [backward v] (50) layers\nswitch costume to (off v)\nset [switch v] to [0]\n\nwhen I receive [play level v]\nswitch costume to (off v)\nset [switch v] to [0]\nwait (0.5) seconds\nwait until <touching (player v)?>\nswitch costume to (on v)\nset [switch v] to [1]\n\nwhen I receive [dead v]\nswitch costume to (off v)\nset [switch v] to [0]\n\nwhen flag clicked\ngo [backward v] (50) layers\nswitch costume to (locked v)\ndelete (all) of [switch x v]\ndelete (all) of [switch y v]\nadd [216] to [switch x v]\nadd [-23] to [switch y v]\nadd [211] to [switch x v]\nadd [-89] to [switch y v]\nadd [101] to [switch x v]\nadd [-8] to [switch y v]\nadd [216] to [switch x v]\nadd [40] to [switch y v]\nadd [217] to [switch x v]\nadd [84] to [switch y v]\nadd [195] to [switch x v]\nadd [92] to [switch y v]\nadd [213] to [switch x v]\nadd [88] to [switch y v]\nadd [-180] to [switch x v]\nadd [-14] to [switch y v]\nadd [78] to [switch x v]\nadd [37] to [switch y v]\nadd [-218] to [switch x v]\nadd [111] to [switch y v]\nadd [218] to [switch x v]\nadd [-20] to [switch y v]\nadd [215] to [switch x v]\nadd [27] to [switch y v]\nadd [203] to [switch x v]\nadd [36] to [switch y v]\nadd [-208] to [switch x v]\nadd [58] to [switch y v]\nadd [12] to [switch x v]\nadd [-139] to [switch y v]\nadd [-118] to [switch x v]\nadd [123] to [switch y v]\nadd [211] to [switch x v]\nadd [13] to [switch y v]\nadd [-217] to [switch x v]\nadd [-133] to [switch y v]\nadd [210] to [switch x v]\nadd [96] to [switch y v]\nadd [-212] to [switch x v]\nadd [36] to [switch y v]\nadd [215] to [switch x v]\nadd [18] to [switch y v]\nadd [-210] to [switch x v]\nadd [-44] to [switch y v]\nadd [-215] to [switch x v]\nadd [28] to [switch y v]\nadd [-133] to [switch x v]\nadd [-87] to [switch y v]\nadd [209] to [switch x v]\nadd [65] to [switch y v]\nadd [216] to [switch x v]\nadd [113] to [switch y v]\nadd [216] to [switch x v]\nadd [-23] to [switch y v]\nadd [174] to [switch x v]\nadd [98] to [switch y v]\nadd [179] to [switch x v]\nadd [90] to [switch y v]\nadd [162] to [switch x v]\nadd [117] to [switch y v]\n\nwhen I receive [play level v]\nwait (0.3) seconds\ngo to x: (item (backdrop [number v]) of [switch x v]) y: (item (backdrop [number v]) of [switch y v])\nshow\n\nwhen I receive [level 1 v]\nwait (0.1) seconds\ngo to x: (item (backdrop [number v]) of [switch x v]) y: (item (backdrop [number v]) of [switch y v])\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [level 1 v]\ngo to x: (216) y: (-23)\n\n@Spawn\n\nwhen I receive [level 1 v]\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\n\nwhen flag clicked\ngo [backward v] (50) layers\nhide\ndelete (all) of [spawn x v]\ndelete (all) of [spawn y v]\nadd [-176] to [spawn x v]\nadd [-31] to [spawn y v]\nadd [-174] to [spawn x v]\nadd [-93] to [spawn y v]\nadd [-187] to [spawn x v]\nadd [-135] to [spawn y v]\nadd [181] to [spawn x v]\nadd [-104] to [spawn y v]\nadd [-220] to [spawn x v]\nadd [-75] to [spawn y v]\nadd [-71] to [spawn x v]\nadd [-123] to [spawn y v]\nadd [215] to [spawn x v]\nadd [-115] to [spawn y v]\nadd [-206] to [spawn x v]\nadd [36] to [spawn y v]\nadd [-175] to [spawn x v]\nadd [89] to [spawn y v]\nadd [-222] to [spawn x v]\nadd [-88] to [spawn y v]\nadd [-182] to [spawn x v]\nadd [-52] to [spawn y v]\nadd [-189] to [spawn x v]\nadd [-110] to [spawn y v]\nadd [185] to [spawn x v]\nadd [-132] to [spawn y v]\nadd [-211] to [spawn x v]\nadd [-92] to [spawn y v]\nadd [-215] to [spawn x v]\nadd [108] to [spawn y v]\nadd [-122] to [spawn x v]\nadd [-145] to [spawn y v]\nadd [-192] to [spawn x v]\nadd [-145] to [spawn y v]\nadd [-218] to [spawn x v]\nadd [79] to [spawn y v]\nadd [-183] to [spawn x v]\nadd [-145] to [spawn y v]\nadd [-220] to [spawn x v]\nadd [-145] to [spawn y v]\nadd [-163] to [spawn x v]\nadd [-43] to [spawn y v]\nadd [-188] to [spawn x v]\nadd [-137] to [spawn y v]\nadd [-217] to [spawn x v]\nadd [-128] to [spawn y v]\nadd [187] to [spawn x v]\nadd [63] to [spawn y v]\nadd [-173] to [spawn x v]\nadd [-141] to [spawn y v]\nadd [-217] to [spawn x v]\nadd [-138] to [spawn y v]\nadd [-207] to [spawn x v]\nadd [-87] to [spawn y v]\nadd [-94] to [spawn x v]\nadd [94] to [spawn y v]\nadd [-111] to [spawn x v]\nadd [-45] to [spawn y v]\nadd [-211] to [spawn x v]\nadd [-137] to [spawn y v]\n\nwhen backdrop switches to [level 1 v]\ngo to x: (-176) y: (-31)\n\nwhen I receive [play level v]\nwait (0.5) seconds\ngo to x: (item (backdrop [number v]) of [spawn x v]) y: (item (backdrop [number v]) of [spawn y v])\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Goal\n\nwhen I receive [play level v]\nset [goal v] to [0]\nswitch costume to (Chapter)\nwait (1) seconds\nwait until <(Switch) = [1]>\nswitch costume to (unlocked v)\nset [goal v] to [1]\nwait until <touching (player v)?>\nif <not <[end chapter levels v] contains (backdrop [name v])?>> then\n    broadcast (Play Level v)\n    broadcast (Next Level v)\nelse\n    broadcast (Chapter Complete v)\nend\n\nwhen flag clicked\ngo [backward v] (50) layers\nset [goal v] to [0]\ndelete (all) of [goal x v]\ndelete (all) of [goal y v]\nadd [-220] to [goal x v]\nadd [-25] to [goal y v]\nadd [-212] to [goal x v]\nadd [-89] to [goal y v]\nadd [-25] to [goal x v]\nadd [-22] to [goal y v]\nadd [211] to [goal x v]\nadd [-98] to [goal y v]\nadd [-71] to [goal x v]\nadd [90] to [goal y v]\nadd [-157] to [goal x v]\nadd [-118] to [goal y v]\nadd [-205] to [goal x v]\nadd [-118] to [goal y v]\nadd [-188] to [goal x v]\nadd [114] to [goal y v]\nadd [-206] to [goal x v]\nadd [95] to [goal y v]\nadd [220] to [goal x v]\nadd [18] to [goal y v]\nadd [-218] to [goal x v]\nadd [-45] to [goal y v]\nadd [-220] to [goal x v]\nadd [-103] to [goal y v]\nadd [211] to [goal x v]\nadd [-127] to [goal y v]\nadd [211] to [goal x v]\nadd [-100] to [goal y v]\nadd [211] to [goal x v]\nadd [-139] to [goal y v]\nadd [119] to [goal x v]\nadd [-138] to [goal y v]\nadd [-215] to [goal x v]\nadd [-139] to [goal y v]\nadd [213] to [goal x v]\nadd [100] to [goal y v]\nadd [-215] to [goal x v]\nadd [-138] to [goal y v]\nadd [45] to [goal x v]\nadd [33] to [goal y v]\nadd [-219] to [goal x v]\nadd [-75] to [goal y v]\nadd [-216] to [goal x v]\nadd [-131] to [goal y v]\nadd [218] to [goal x v]\nadd [-122] to [goal y v]\nadd [214] to [goal x v]\nadd [69] to [goal y v]\nadd [-216] to [goal x v]\nadd [-148] to [goal y v]\nadd [214] to [goal x v]\nadd [-131] to [goal y v]\nadd [-217] to [goal x v]\nadd [-131] to [goal y v]\nadd [-215] to [goal x v]\nadd [33] to [goal y v]\nadd [-215] to [goal x v]\nadd [-131] to [goal y v]\nadd [214] to [goal x v]\nadd [-131] to [goal y v]\n\ngo to x: (item (backdrop [number v]) of [goal x v]) y: (item (backdrop [number v]) of [goal y v])\n\nwait (0.5) seconds\n\nwhen I receive [dead v]\nswitch costume to (Chapter)\nset [goal v] to [0]\n\nwhen backdrop switches to [level 1 v]\ngo to x: (-220) y: (-25)\n\nwhen I receive [next level v]\nhide\nwait (0.1) seconds\nshow\ngo to x: (item (backdrop [number v]) of [goal x v]) y: (item (backdrop [number v]) of [goal y v])\nswitch costume to (Chapter)\n\nwhen backdrop switches to [level 11 v]\nwait (0.1) seconds\nshow\ngo to x: (item (backdrop [number v]) of [goal x v]) y: (item (backdrop [number v]) of [goal y v])\n\nwhen backdrop switches to [level 21 v]\nwait (0.1) seconds\nshow\ngo to x: (item (backdrop [number v]) of [goal x v]) y: (item (backdrop [number v]) of [goal y v])\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [level 1 v]\nwait (0.1) seconds\nshow\ngo to x: (item (backdrop [number v]) of [goal x v]) y: (item (backdrop [number v]) of [goal y v])\n\nwhen flag clicked\ndelete (all) of [end chapter levels v]\nadd [Level 10] to [end chapter levels v]\nadd [Level 20] to [end chapter levels v]\nadd [Level 30] to [end chapter levels v]\n\n@Slider\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [transition v] to [0]\n\nwhen I receive [next level v]\nset [transition v] to [1]\nswitch costume to (Chapter)\ngo to [front v] layer\ngo to x: (-218) y: (0)\nshow\nglide (1) secs to x: (-474) y: (0)\nhide\nset [transition v] to [0]\nglide (0.5) secs to x: (-218) y: (0)\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Slider 2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [next level v]\nswitch costume to (Chapter)\ngo to [front v] layer\ngo to x: (262) y: (0)\nshow\nglide (1) secs to x: (471) y: (0)\nhide\nglide (0.5) secs to x: (262) y: (0)\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Colours To Save\n\n@Ball\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 11 v]\ngo to x: (202) y: (-51)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 11]>>\n    go to x: (202) y: (-51)\n    show\n    glide (1.9) secs to x: (-198) y: (-51)\n    hide\nend\n\nwhen backdrop switches to [level 12 v]\ngo to x: (15) y: (-109)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 12]>>\n    go to x: (15) y: (-109)\n    show\n    glide (1.3) secs to x: (-185) y: (-109)\n    hide\n    wait (0.4) seconds\nend\n\nwhen backdrop switches to [level 13 v]\ngo to x: (18) y: (-67)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 13]>>\n    go to x: (18) y: (-67)\n    show\n    glide (0.6) secs to x: (18) y: (-133)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 14 v]\ngo to x: (-134) y: (109)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 14]>>\n    go to x: (-134) y: (109)\n    show\n    glide (1) secs to x: (-134) y: (-63)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 15 v]\ngo to x: (-199) y: (39)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 15]>>\n    go to x: (-199) y: (39)\n    show\n    glide (1.9) secs to x: (213) y: (39)\n    hide\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [level 16 v]\ngo to x: (-114) y: (-73)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 16]>>\n    go to x: (-114) y: (-73)\n    show\n    glide (0.6) secs to x: (53) y: (-73)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 17 v]\ngo to x: (204) y: (-144)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 17]>>\n    go to x: (204) y: (-144)\n    show\n    glide (1.5) secs to x: (-186) y: (-144)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (-173) y: (121)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 18]>>\n    go to x: (-173) y: (121)\n    show\n    glide (1) secs to x: (-173) y: (-142)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 19 v]\ngo to x: (57) y: (-144)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 19]>>\n    go to x: (57) y: (-144)\n    show\n    glide (1.5) secs to x: (-178) y: (-144)\n    hide\n    wait (0.8) seconds\nend\n\nwhen backdrop switches to [level 20 v]\ngo to x: (-190) y: (-16)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 20]>>\n    go to x: (-190) y: (-16)\n    show\n    glide (0.8) secs to x: (-190) y: (-143)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 22 v]\ngo to x: (201) y: (-137)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 22]>>\n    go to x: (201) y: (-137)\n    show\n    glide (2.2) secs to x: (-172) y: (-137)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 26 v]\ngo to x: (-204) y: (6)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 26]>>\n    go to x: (-204) y: (6)\n    show\n    glide (1.5) secs to x: (108) y: (6)\n    hide\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [level 28 v]\ngo to x: (-43) y: (4)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (-43) y: (4)\n    show\n    glide (1.1) secs to x: (104) y: (4)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 29 v]\ngo to x: (204) y: (76)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 29]>>\n    go to x: (204) y: (76)\n    show\n    glide (1.5) secs to x: (-125) y: (76)\n    hide\n    wait (0.5) seconds\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Home Screen\n\nwhen [left arrow v] key pressed\nif <(Chapter Select Showing) = [1]> then\n    if <(costume [number v]) = [1]> then\n        set [selected chapter v] to (Chapters Total)\n        switch costume to (Selected Chapter)\n        set [chapter v] to (Selected Chapter)\n    else\n        change [selected chapter v] by (-1)\n        switch costume to (Selected Chapter)\n        set [chapter v] to (Selected Chapter)\n    end\nend\n\nwhen [right arrow v] key pressed\nif <(Chapter Select Showing) = [1]> then\n    if <(costume [number v]) = (Chapters Total)> then\n        set [selected chapter v] to [1]\n        switch costume to (Selected Chapter)\n        set [chapter v] to (Selected Chapter)\n    else\n        change [selected chapter v] by (1)\n        switch costume to (Selected Chapter)\n        set [chapter v] to (Selected Chapter)\n    end\nend\n\nwhen I receive [menu v]\nset [chapter select showing v] to [1]\nshow\nwait (0.1) seconds\nwait until <key (space v) pressed?>\nset [chapter select showing v] to [0]\nhide\nif <(Chapter) = [1]> then\n    broadcast (Stage 1 v)\nelse\n    if <(Chapter) = [2]> then\n        broadcast (Stage 2 v)\n    else\n        if <(Chapter) = [3]> then\n            broadcast (Stage 3 v)\n        else\n        end\n    end\nend\nbroadcast (Start Game v)\nbroadcast (Play Level v)\nset [deaths v] to [0]\n\nwhen flag clicked\nset [chapter select showing v] to [1]\nset [chapters total v] to [3]\nswitch costume to (stage 1 v)\ngo to x: (0) y: (0)\nshow\nset [selected chapter v] to [1]\n\n@Ball 2\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 12 v]\ngo to x: (-25) y: (82)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 12]>>\n    go to x: (-25) y: (82)\n    show\n    glide (1) secs to x: (-25) y: (-21)\n    hide\n    wait (0.2) seconds\nend\n\nwhen backdrop switches to [level 14 v]\ngo to x: (60) y: (111)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 14]>>\n    go to x: (60) y: (111)\n    show\n    glide (1) secs to x: (60) y: (-65)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 15 v]\ngo to x: (-199) y: (-103)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 15]>>\n    go to x: (-199) y: (-103)\n    show\n    glide (1.9) secs to x: (216) y: (-103)\n    hide\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [level 16 v]\ngo to x: (111) y: (-6)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 16]>>\n    go to x: (111) y: (-6)\n    show\n    glide (1) secs to x: (-59) y: (-6)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 17 v]\ngo to x: (-203) y: (-51)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 17]>>\n    go to x: (-203) y: (-51)\n    show\n    glide (1.5) secs to x: (128) y: (-51)\n    hide\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (-69) y: (5)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 18]>>\n    go to x: (-69) y: (5)\n    show\n    glide (0.6) secs to x: (-69) y: (-97)\n    hide\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [level 19 v]\ngo to x: (-205) y: (-41)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 19]>>\n    go to x: (-205) y: (-41)\n    show\n    glide (1.5) secs to x: (86) y: (-41)\n    hide\n    wait (0.8) seconds\nend\n\nwhen backdrop switches to [level 20 v]\ngo to x: (-143) y: (122)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 20]>>\n    go to x: (-143) y: (122)\n    show\n    glide (0.8) secs to x: (-143) y: (-4)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 26 v]\ngo to x: (200) y: (82)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 26]>>\n    go to x: (200) y: (82)\n    show\n    glide (1.5) secs to x: (-140) y: (82)\n    hide\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [level 28 v]\ngo to x: (201) y: (82)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (201) y: (82)\n    show\n    glide (1.1) secs to x: (30) y: (82)\n    hide\n    wait (0.5) seconds\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Ball 3\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 13 v]\ngo to x: (-173) y: (84)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 13]>>\n    go to x: (-173) y: (84)\n    show\n    glide (1.1) secs to x: (-173) y: (-130)\n    hide\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [level 14 v]\ngo to x: (10) y: (19)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 14]>>\n    go to x: (10) y: (19)\n    show\n    glide (0.8) secs to x: (10) y: (-139)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 15 v]\ngo to x: (197) y: (-33)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 15]>>\n    go to x: (197) y: (-33)\n    show\n    glide (1.9) secs to x: (-215) y: (-33)\n    hide\n    wait (0.3) seconds\nend\n\nwhen backdrop switches to [level 18 v]\ngo to x: (-17) y: (121)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 18]>>\n    go to x: (-17) y: (121)\n    show\n    glide (0.7) secs to x: (-17) y: (5)\n    hide\n    wait (0.7) seconds\nend\n\nwhen backdrop switches to [level 19 v]\ngo to x: (66) y: (127)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 19]>>\n    go to x: (66) y: (127)\n    show\n    glide (0.4) secs to x: (66) y: (89)\n    hide\n    wait (0.8) seconds\nend\n\nwhen backdrop switches to [level 20 v]\ngo to x: (178) y: (123)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 20]>>\n    go to x: (178) y: (123)\n    show\n    glide (1.2) secs to x: (178) y: (-91)\n    hide\n    wait (0.5) seconds\nend\n\nwhen backdrop switches to [level 23 v]\ngo to x: (-48) y: (120)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 23]>>\n    go to x: (-48) y: (120)\n    show\n    glide (0.8) secs to x: (-48) y: (35)\n    hide\n    wait (0.8) seconds\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Glitched Notification\n\nwhen I receive [glitched v]\ngo to x: (-77) y: (150)\nshow\nwait (8) seconds\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Ball 4\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 20 v]\ngo to x: (105) y: (54)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 20]>>\n    go to x: (105) y: (54)\n    show\n    glide (0.7) secs to x: (105) y: (-59)\n    hide\n    wait (0.8) seconds\nend\n\nwhen backdrop switches to [level 23 v]\ngo to x: (69) y: (121)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 23]>>\n    go to x: (69) y: (121)\n    show\n    glide (0.8) secs to x: (69) y: (41)\n    hide\n    wait (0.8) seconds\nend\n\nwhen backdrop switches to [level 24 v]\ngo to x: (-203) y: (-27)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 24]>>\n    go to x: (-203) y: (-28)\n    show\n    glide (1.9) secs to x: (157) y: (-28)\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 30 v]\ngo to x: (-205) y: (10)\nwait (1.7) seconds\nrepeat until <not <(backdrop [name v]) = [Level 30]>>\n    go to x: (-205) y: (10)\n    show\n    glide (2.2) secs to x: (164) y: (10)\n    hide\n    wait (1) seconds\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Missile 1\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 21 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 21]>>\n    go to x: (0) y: (98)\n    point towards (player v)\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 22 v]\nhide\nwait (2) seconds\nrepeat until <not <(backdrop [name v]) = [Level 22]>>\n    go to x: (-191) y: (127)\n    point towards (player v)\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 26 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 26]>>\n    go to x: (-69) y: (-23)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen I receive [next level v]\nhide\n\nwhen backdrop switches to [level 24 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 24]>>\n    go to x: (-214) y: (128)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 25 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 25]>>\n    go to x: (-217) y: (129)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 27 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 27]>>\n    go to x: (-215) y: (127)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (7) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 28 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (-217) y: (131)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 29 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 29]>>\n    go to x: (216) y: (45)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (7) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 30 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 30]>>\n    go to x: (-218) y: (-22)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Missile 2\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 26 v]\nhide\nwait (2) seconds\nrepeat until <not <(backdrop [name v]) = [Level 26]>>\n    go to x: (-216) y: (126)\n    point towards (player v)\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\n    wait (1) seconds\nend\n\nwhen I receive [next level v]\nhide\n\nwhen backdrop switches to [level 23 v]\nhide\nwait (2) seconds\nrepeat until <not <(backdrop [name v]) = [Level 23]>>\n    go to x: (-219) y: (128)\n    point towards (player v)\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\n    wait (1) seconds\nend\n\nwhen backdrop switches to [level 24 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 24]>>\n    go to x: (-218) y: (-62)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 25 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 25]>>\n    go to x: (216) y: (23)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 27 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 27]>>\n    go to x: (89) y: (127)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (7) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 28 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (-219) y: (-132)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 29 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 29]>>\n    go to x: (-148) y: (-68)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 30 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 30]>>\n    go to x: (111) y: (-22)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Missile 3\n\nwhen flag clicked\nhide\n\nwhen I receive [play level v]\nhide\n\nwhen I receive [next level v]\nhide\n\nwhen backdrop switches to [level 25 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 25]>>\n    go to x: (-214) y: (-74)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 27 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 27]>>\n    go to x: (-137) y: (24)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (5) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 28 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (-57) y: (130)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 29 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 29]>>\n    go to x: (-217) y: (131)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 30 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 30]>>\n    go to x: (-41) y: (83)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Missile 4\n\nwhen flag clicked\nhide\n\nwhen I receive [next level v]\nhide\n\nwhen backdrop switches to [level 28 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 28]>>\n    go to x: (215) y: (53)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6.5) steps\n    end\n    hide\nend\n\nwhen I receive [play level v]\nhide\n\nwhen backdrop switches to [level 29 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 29]>>\n    go to x: (211) y: (127)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (7) steps\n    end\n    hide\nend\n\nwhen backdrop switches to [level 30 v]\nhide\nwait (1) seconds\nrepeat until <not <(backdrop [name v]) = [Level 30]>>\n    go to x: (215) y: (130)\n    point towards (player v)\n    wait (1) seconds\n    show\n    repeat until <<touching (player v)?> or <touching color (#4674ff)?>>\n        move (6) steps\n    end\n    hide\nend\n\nwhen I receive [menu v]\nhide\nstop [other scripts in sprite v]\n\n@Chapter Complete\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [chapter complete v]\ngo to x: (0) y: (0)\nshow\nwait (1.7) seconds\nhide\nbroadcast (Menu v)\n\n@Title\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nwait (0.3) seconds\nhide\n\n