Click Code Platformer - Mobile friendly

Instructions:           Neon World\n=============================================\n- Say in the the comments if this was/wasn't generic.\n-100% possible\n-Follow me to be notified on any new platformers I make!\nPropose this to be featured here:\nhttps://scratch.mit.edu/studios/28715018/\n

@Stage\n\nwhen flag clicked\nset [level v] to [1]\nset [screen v] to [gameplay]\nbroadcast (message1 v)\n\n@Blank\n\n@Player\n\ndefine Physics (jump height) (gravity) (friction) (speed)\nswitch costume to (hitbox v)\nchange y by (Y Velocity)\nif <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n    repeat ([abs v] of (((Y Velocity) + (0)) * (1)) )\n        if <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n            change y by ((-1) * (([abs v] of (Y Velocity) ) / (Y Velocity)))\n        end\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <not <(Y Velocity) > [0]>>> then\n        set [y velocity v] to (jump height)\n    else\n        set [y velocity v] to [0]\n    end\nelse\n    change [y velocity v] by (gravity)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    change [x velocity v] by (speed)\n    point in direction (90)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    change [x velocity v] by ((-1) * (speed))\n    point in direction (-90)\nend\nchange x by (X Velocity)\nif <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n    set [old y v] to (y position)\n    repeat ([abs v] of (X Velocity) )\n        if <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n            change y by (1)\n        end\n    end\n    if <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n        set y to (old y)\n        repeat ([ceiling v] of ([abs v] of (X Velocity) ) )\n            if <<<<<touching (level v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<touching (red v)?> and <(RED SOLID) = [1]>>>> or <touching (purple v)?>> or <touching (locked v)?>> or <<touching (moving v)?> or <<touching (moving2 v)?> or >>> then\n                change x by ((-1) * (([abs v] of (X Velocity) ) / (X Velocity)))\n            end\n        end\n        set [x velocity v] to [0]\n    end\nend\nset [x velocity v] to ((X Velocity) * (friction))\nswitch costume to (idle v)\nif <<<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> or <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    switch costume to (Walk)\nend\nif <(Y Velocity) > [1]> then\n    switch costume to (jump v)\nend\nif <(Y Velocity) < [-3]> then\n    switch costume to (fall v)\nend\n\nwhen flag clicked\ngo to x: (-228) y: (-138)\nforever\n    Physics [10] [-1] [0.65] [2]\n    Detection\nend\n\nwhen I receive [intro done v]\ngo to x: (-228) y: (-138)\nset [deaths v] to [0]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nforever\n    set [x pos v] to (round (x position))\n    set [y pos v] to (round (y position))\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nset [walk v] to [5]\nforever\n    change [walk v] by (1)\n    if <(Walk) > [8]> then\n        set [walk v] to [5]\n    end\n    wait (0.05) seconds\nend\n\nwhen I receive [intro done v]\nshow\ngo [forward v] (999) layers\n\ndefine Detection\nif <<<<<touching (danger v)?> or <touching (crushers v)?>> or <touching (saws v)?>> or <<touching (bullet v)?> or <touching (second bullet v)?>>> or <<<<touching (cannon v)?> or <touching (second cannon v)?>> or <touching (lava v)?>> or <<touching (leftsaws v)?> or <<touching (upsaws v)?> or <<touching (upspikes v)?> or >>>>> then\n    if <<(Level) = [6]> or <<(Level) = [7]> or <<(Level) = [8]> or <<(Level) = [10]> or <<(Level) = [11]> or <<(Level) = [12]> or <<(Level) = [14]> or <<(Level) = [15]> or <<(Level) = [16]> or <(Level) = [18]>>>>>>>>>> then\n        broadcast (Lock Reset v)\n    end\n    if <touching (danger v)?> then\n        broadcast (Spiked v)\n    end\n    if <touching (lava v)?> then\n        broadcast (Lava v)\n    end\n    if <<touching (saws v)?> or <<touching (leftsaws v)?> or <touching (upsaws v)?>>> then\n        broadcast (Saws v)\n    end\n    if <<touching (force v)?> and <touching (danger v)?>> then\n        broadcast (React v)\n    end\n    if <touching (crushers v)?> then\n        broadcast (Crush v)\n    end\n    if <<touching (cannon v)?> or <touching (second cannon v)?>> then\n        broadcast (Cannon v)\n    end\n    if <<touching (bullet v)?> or <touching (second bullet v)?>> then\n        broadcast (Cannonball v)\n    end\n    if <<touching (danger v)?> and <(Y Velocity) > [13]>> then\n        broadcast (Force v)\n    end\n    if <touching (upspikes v)?> then\n        broadcast (Sup v)\n    end\n    broadcast (Reset v)\n    change [deaths v] by (1)\n    start sound [Crunch v]\n    point in direction (90)\n    go to x: (-228) y: (-138)\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    wait (0.0001) seconds\nend\nif <touching (finish v)?> then\n    broadcast (Reset v)\n    broadcast (Next v)\n    start sound [Ding \(CinemaSins\) - Sound Effect.mp3 v]\n    change [level v] by (1)\n    go to x: (-228) y: (-138)\n    set [x velocity v] to [0]\n    point in direction (90)\n    set [y velocity v] to [-5]\n    switch costume to (idle v)\nend\nif <touching (trampolines v)?> then\n    start sound [Cartoon Sound Effect - Bounce.mp3 v]\n    if <(Level) = [10]> then\n        set [y velocity v] to [14]\n    else\n        if <(Level) = [11]> then\n            set [y velocity v] to [17]\n        else\n            if <<(Level) = [16]> or <(Level) = [17]>> then\n                set [y velocity v] to [14]\n            else\n                set [y velocity v] to [15]\n            end\n        end\n    end\nend\nif <touching (force v)?> then\n    change x by (3)\nend\n\nbroadcast (finish v)\n\nwhen flag clicked\npoint in direction (90)\n\nwhen I receive [move player v]\nif <not <touching (lava v)?>> then\n    change x by (Move X)\n    change y by (Move Y)\nend\n\nwhen I receive [move player 2 v]\nif <not <touching (lava v)?>> then\n    change x by (Move X2)\n    change y by (Move Y2)\nend\n\nwhen flag clicked\nforever\n\nset [level v] to [13]\n\nwhen flag clicked\nforever\n    if <(username) = [250119code2]> then\n        set drag mode [draggable v]\n    else\n        set drag mode [not draggable v]\n    end\nend\n\n@Level\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to [back v] layer\n\nwhen I receive [intro done v]\ngo [forward v] (20) layers\n\n@Finish\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to [back v] layer\nset size to (100) %\nforever\n    point in direction (90)\nend\n\n@Danger\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(Screen) = [Gameplay]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nif <touching (player v)?> then\n    broadcast (Spiked v)\nend\n\n@Lava\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (Level)\n    set y to (([sin v] of ((timer) * (100)) ) * (3))\nend\n\nwhen flag clicked\nforever\n    if <(Screen) = [Gameplay]> then\n        show\n    else\n        hide\n    end\nend\n\n@Trampolines\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen flag clicked\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\n\n@Text\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    if <touching (player v)?> then\n        set [ghost v] effect to (30)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@Saws\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size (size)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nset size to (size) %\n\nwhen I receive [next v]\nif  then\n    delete this clone\nend\nif <(Level) = [8]> then\n    Clone At X: [-140] [-160] At Size [130]\n    Clone At X: [235] [-3] At Size [80]\nend\nif <(Level) = [9]> then\n    Clone At X: [35] [-8] At Size [90]\nend\nif <(Level) = [10]> then\n    Clone At X: [-151] [65] At Size [100]\nend\nif <(Level) = [11]> then\n    Clone At X: [-170] [89] At Size [80]\nend\nif <(Level) = [12]> then\n    Clone At X: [-60] [-125] At Size [80]\n    Clone At X: [125] [-8] At Size [80]\nend\nif <(Level) = [13]> then\n    Clone At X: [-155] [-162] At Size [85]\n    Clone At X: [13] [-109] At Size [85]\nend\nif <(Level) = [14]> then\n    Clone At X: [7] [-43] At Size [100]\n    Clone At X: [90] [112] At Size [100]\nend\nif <(Level) = [15]> then\n    Clone At X: [140] [-25] At Size [80]\nend\nif <(Level) = [16]> then\n    Clone At X: [131] [100] At Size [120]\n    Clone At X: [-230] [-51] At Size [80]\nend\nif <(Level) = [17]> then\n    Clone At X: [4] [119] At Size [80]\nend\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nforever\n    turn right (4) degrees\n    if <(Level) = [11]> then\n        set size to (80) %\n    end\nend\n\nbroadcast (Next v)\n\nbroadcast (Next v)\n\n@Blue\n\nwhen I receive [beep v]\nrepeat (3)\n    repeat (3)\n        change [brightness v] effect by (10)\n    end\n    clear graphic effects\n    if <(BLUE SOLID) = [1]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\n    wait (0.30) seconds\nend\nwait (0.15) seconds\nif <(BLUE SOLID) = [1]> then\n    set [ghost v] effect to (0)\nelse\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nforever\n    set [blue solid v] to [0]\n    wait (2.6) seconds\n    broadcast (Beep v)\n    repeat (3)\n        repeat (3)\n            change [brightness v] effect by (10)\n        end\n        clear graphic effects\n        wait (0.30) seconds\n    end\n    set [blue solid v] to [1]\n    set [ghost v] effect to (50)\n    wait (0.15) seconds\n    set [blue solid v] to [1]\n    set [ghost v] effect to (50)\n    wait (2.6) seconds\n    broadcast (Beep v)\n    repeat (3)\n        repeat (3)\n            change [brightness v] effect by (10)\n        end\n        clear graphic effects\n        wait (0.30) seconds\n    end\n    set [blue solid v] to [0]\n    wait (0.15) seconds\n    set [blue solid v] to [0]\nend\n\n@Red\n\nwhen I receive [beep v]\nrepeat (3)\n    repeat (3)\n        change [brightness v] effect by (10)\n    end\n    clear graphic effects\n    if <(RED SOLID) = [1]> then\n        set [ghost v] effect to (0)\n    else\n        set [ghost v] effect to (50)\n    end\n    wait (0.30) seconds\nend\nwait (0.15) seconds\nif <(RED SOLID) = [1]> then\n    set [ghost v] effect to (0)\nelse\n    set [ghost v] effect to (50)\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nforever\n    set [red solid v] to [1]\n    wait (2.6) seconds\n    broadcast (Beep v)\n    repeat (3)\n        repeat (3)\n            change [brightness v] effect by (10)\n        end\n        clear graphic effects\n        wait (0.30) seconds\n    end\n    set [red solid v] to [0]\n    set [ghost v] effect to (50)\n    wait (0.15) seconds\n    set [red solid v] to [0]\n    set [ghost v] effect to (50)\n    wait (2.6) seconds\n    broadcast (Beep v)\n    repeat (3)\n        repeat (3)\n            change [brightness v] effect by (10)\n        end\n        clear graphic effects\n        wait (0.30) seconds\n    end\n    set [red solid v] to [1]\n    wait (0.15) seconds\n    set [red solid v] to [1]\nend\n\n@text\n\nwhen flag clicked\nhide\ngo to [front v] layer\nwait (2.4) seconds\ngo to x: (0) y: (-60)\nset size to (100) %\nset [ghost v] effect to (100)\nshow\nset [rotation v] to [-10]\nrepeat (70)\n    change [ghost v] effect by (rotation)\n    change [rotation v] by (-1)\n    wait (0.01) seconds\nend\nset [ghost v] effect to (0)\n\nwhen I receive [message1 v]\nhide\n\nwhen I receive [intro done v]\nhide\n\n@Force\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\n    go to x: (0) y: (0)\n    go [backward v] (1) layers\n    switch costume to (Level)\n    if <touching (player v)?> then\n        set [brightness v] effect to (10)\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [intro done v]\nshow\n\n@Intro\n\nwhen flag clicked\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [id v] to [2]\ncreate clone of (_myself_ v)\nset [id v] to [3]\ncreate clone of (_myself_ v)\nset [id v] to [4]\ncreate clone of (_myself_ v)\nstart sound [Never Mind v]\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\npoint in direction (-90)\nset size to (300) %\nset [sine v] to [30]\nrepeat (40)\n    change size by (((100) - (size)) * (1))\n    turn right (((90) - (direction)) * (0.18)) degrees\nend\nset [glide v] to [7]\nrepeat (20)\n    change y by ((glide) - (1))\n    change [glide v] by (-0.34)\nend\nwait (5.8) seconds\nhide\n\nwhen I start as a clone\nif <(id) = [1]> then\n    clear graphic effects\n    show\n    go to x: (0) y: (0)\n    point in direction (90)\n    set size to (100) %\n    switch costume to (bg v)\nelse\n    if <(id) = [2]> then\n        id 2\n    else\n        if <(id) = [3]> then\n            id 3\n        else\n            id 4\n        end\n    end\nend\n\ndefine id 2\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (dot v)\nend\nbroadcast (Intro Done v)\n\nwhen I receive [intro done v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\ndefine id 3\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7.2) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (smaller dot v)\nend\n\ndefine id 4\ngo to x: (0) y: (0)\nswitch costume to (dot2 v)\nhide\nclear graphic effects\ngo to [front v] layer\nwait (7.4) seconds\nshow\nset size to (0.5) %\nset [vel v] to [1]\nswitch costume to (dot v)\nrepeat (50)\n    switch costume to (dot2 v)\n    change [vel v] by ((size) / (50))\n    change size by (vel)\n    switch costume to (crazy dot v)\n    turn left (1) degrees\nend\n\n@Crushers\n\nwhen flag clicked\nwait until <(Level) = [9]>\nshow\nswitch costume to (1 v)\nclear graphic effects\nrepeat until <not <(Level) = [9]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-95)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nrepeat (532)\n    hide\nend\n\nwhen flag clicked\nwait until <(Level) = [11]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [10]>\nshow\nswitch costume to (2 v)\nclear graphic effects\nrepeat until <not <(Level) = [10]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-95)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [9]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [10]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [11]>\nshow\nswitch costume to (3 v)\nclear graphic effects\nrepeat until <not <(Level) = [11]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-95)\n    wait (1) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [12]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nshow\nswitch costume to (4 v)\nclear graphic effects\nrepeat until <not <(Level) = [13]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-100)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [14]>\nshow\nswitch costume to (5 v)\nclear graphic effects\nrepeat until <not <(Level) = [14]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-100)\n    wait (1) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [14]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [16]>\nshow\nswitch costume to (6 v)\nclear graphic effects\nrepeat until <not <(Level) = [16]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-110)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\n\nwhen flag clicked\nwait until <(Level) = [13]>\nshow\nshow\n\nwhen flag clicked\nwait until <(Level) = [16]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [17]>\nshow\nswitch costume to (7 v)\nclear graphic effects\nrepeat until <not <(Level) = [17]>>\n    glide (0.2) secs to x: (144) y: (-150)\n    start sound [Slam v]\n    wait (1) seconds\n    glide (3) secs to x: (144) y: (-110)\n    wait (1) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [18]>\nhide\n\n@TN\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nchange [level v] by (1)\n\n@Cannon\n\nwhen flag clicked\nset size to (85) %\npoint in direction (90)\nhide\nwait until <(Level) = [13]>\nshow\ngo to x: (128) y: (-82)\nrepeat until <not <(Level) = [13]>>\n    create clone of (bullet v)\n    wait (4) seconds\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nwait until <(Level) = [14]>\nrepeat until <not <(Level) = [14]>>\n    point towards (player v)\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nrepeat until <not <(Level) = [13]>>\n    point towards (player v)\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [14]>\nshow\nset size to (90) %\ngo to x: (66) y: (-42)\nrepeat until <not <(Level) = [14]>>\n    create clone of (bullet v)\n    wait (4) seconds\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [15]>\nshow\nset size to (90) %\ngo to x: (-174) y: (-54)\nrepeat until <not <(Level) = [15]>>\n    create clone of (bullet v)\n    wait (4) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [15]>\nrepeat until <not <(Level) = [15]>>\n    point towards (player v)\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [17]>\nshow\nset size to (90) %\ngo to x: (4) y: (-23)\nrepeat until <not <(Level) = [17]>>\n    create clone of (bullet v)\n    wait (4) seconds\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [17]>\nrepeat until <not <(Level) = [17]>>\n    point towards (player v)\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [17]>\nrepeat (30)\n    show\nend\n\nwhen flag clicked\nwait until <(Level) = [18]>\nshow\nset size to (90) %\ngo to x: (218) y: (156)\nrepeat until <not <(Level) = [18]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [18]>\nrepeat until <not <(Level) = [18]>>\n    point towards (player v)\nend\nhide\n\n@Bullet\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I start as a clone\nif <(Level) = [1]> then\n    delete this clone\nend\nshow\ngo to (cannon v)\npoint in direction ([direction v] of [cannon v])\nrepeat until <<touching (crushers v)?> or <<<<<touching (player v)?> or <touching (level v)?>> or <touching (_edge_ v)?>> or <touching (crushers v)?>> or <<touching (saws v)?> or <<touching (moving v)?> or <<touching (moving2 v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<<touching (red v)?> and <(RED SOLID) = [1]>> or <<<touching (purple v)?> or <touching (pink v)?>> or <touching (locked v)?>>>>>>>>>\n    move (3) steps\nend\nwait (0.01) seconds\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@Music Button\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\nswitch costume to (costume1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((70) - (size)) / (5))\n        set [brightness v] effect to (5)\n    else\n        change size by (((60) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [intro done v]\nwait (1) seconds\nset volume to (30) %\nforever\n    play sound [Elektronomia - Limitless \[NCS Release\] v] until done\n    play sound [Elektronomia - Sky High \[NCS Release\] v] until done\n    play sound [\[Electro House\] Virtual Riot - Energy Drink v] until done\nend\n\nwhen this sprite clicked\nif <(volume) = [30]> then\n    switch costume to (costume2 v)\n    set volume to (0) %\nelse\n    switch costume to (costume1 v)\n    set volume to (30) %\nend\n\nwhen flag clicked\nwait until <(Level) = [18]>\nhide\n\n@Second Cannon\n\nwhen flag clicked\npoint in direction (-90)\nhide\nwait until <(Level) = [13]>\nshow\ngo to x: (-52) y: (105)\nrepeat until <not <(Level) = [13]>>\n    create clone of (second bullet v)\n    wait (4) seconds\nend\nhide\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen flag clicked\nwait until <(Level) = [13]>\nrepeat until <not <(Level) = [13]>>\n    point towards (player v)\nend\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [17]>\nshow\ngo to x: (159) y: (152)\nrepeat until <not <(Level) = [17]>>\n    create clone of (second bullet v)\n    wait (4) seconds\nend\nhide\n\nwhen flag clicked\nwait until <(Level) = [17]>\nrepeat until <not <(Level) = [17]>>\n    point towards (player v)\nend\nhide\n\n@Second Bullet\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I start as a clone\nif <(Level) = [1]> then\n    delete this clone\nend\nshow\ngo to (second cannon v)\npoint in direction ([direction v] of [second cannon v])\nrepeat until <<<<touching (player v)?> or <touching (level v)?>> or <touching (_edge_ v)?>> or <<touching (crushers v)?> or <<<touching (blue v)?> and <(BLUE SOLID) = [1]>> or <<<touching (red v)?> and <(RED SOLID) = [1]>> or <<<touching (purple v)?> or <touching (pink v)?>> or >>>>>\n    move (3) steps\nend\nwait (0.01) seconds\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\n@Purple\n\nwhen [m v] key pressed\nset [mousex v] to (mouse x)\nset [mousey v] to (mouse y)\n\nbroadcast (Reset v)\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [reset v]\nif  then\n    delete this clone\nend\nif <(Level) = [2]> then\n    Clone At X: [-60] [-117]\n    Clone At X: [170] [-60]\nend\nif <(Level) = [3]> then\n    Clone At X: [-50] [-117]\n    Clone At X: [33] [-83]\n    Clone At X: [-50] [-40]\nend\nif <(Level) = [4]> then\n    Clone At X: [40] [-91]\nend\nif <(Level) = [5]> then\n    Clone At X: [75] [-30]\n    Clone At X: [161] [61]\nend\nif <(Level) = [6]> then\n    Clone At X: [-142] [-124]\n    Clone At X: [189] [46]\n    Clone At X: [189] [-94]\nend\nif <(Level) = [7]> then\n    Clone At X: [-169] [75]\n    Clone At X: [167] [100]\nend\nif <(Level) = [8]> then\n    Clone At X: [-120] [50]\nend\nif <(Level) = [9]> then\n    Clone At X: [-142] [-31]\n    Clone At X: [-165] [-31]\nend\nif <(Level) = [10]> then\n    Clone At X: [145] [-15]\n    Clone At X: [-82] [83]\nend\nif <(Level) = [12]> then\n    Clone At X: [232] [-40]\nend\nif <(Level) = [13]> then\n    Clone At X: [-10] [88]\n    Clone At X: [73] [109]\nend\nif <(Level) = [14]> then\n    Clone At X: [229] [60]\nend\nif <(Level) = [16]> then\n    Clone At X: [227] [-80]\n    Clone At X: [-65] [93]\nend\nif <(Level) = [17]> then\n    Clone At X: [157] [15]\nend\nif <(Level) = [18]> then\n    Clone At X: [-106] [109]\nend\n\nwhen I start as a clone\npoint in direction (90)\nshow\ngo [backward v] (11) layers\nwait until <touching (player v)?>\nif <(Level) = [3]> then\n    if <(([y position v] of [player v]) + (1)) > (y position)> then\n        wait (0.1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nelse\n    wait (0.1) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nbroadcast (Next v)\n\n@Key\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nwait until <(Level) = [6]>\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen I receive [lock reset v]\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nforever\n    set y to (([sin v] of ((timer) * (100)) ) * (3))\nend\n\nwhen flag clicked\nhide\nwait until <(Level) = [7]>\nswitch costume to (costume2 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [8]>\nswitch costume to (costume3 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [10]>\nswitch costume to (costume4 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [11]>\nswitch costume to (costume5 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [12]>\nswitch costume to (costume6 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [14]>\nswitch costume to (costume7 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nwait until <(Level) = [15]>\nswitch costume to (costume8 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [16]>\nswitch costume to (costume9 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [15]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [17]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [18]>\nswitch costume to (costume10 v)\nshow\ngo to x: (0) y: (0)\nwait until <touching (player v)?>\nstart sound [Magic Spell v]\nbroadcast (Open v)\nhide\n\nwhen flag clicked\nwait until <(Level) = [19]>\nhide\n\n@Locked\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [back v] layer\nhide\nwait until <(Level) = [6]>\nswitch costume to (1 v)\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [lock reset v]\nshow\nclear graphic effects\nset [ghost v] effect to (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [7]>\nset [ghost v] effect to (0)\nswitch costume to (2 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [8]>\nset [ghost v] effect to (0)\nswitch costume to (3 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [10]>\nset [ghost v] effect to (0)\nswitch costume to (4 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [11]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [11]>\nset [ghost v] effect to (0)\nswitch costume to (5 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [12]>\nset [ghost v] effect to (0)\nswitch costume to (6 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [14]>\nset [ghost v] effect to (0)\nswitch costume to (7 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [15]>\nset [ghost v] effect to (0)\nswitch costume to (8 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [16]>\nset [ghost v] effect to (0)\nswitch costume to (9 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [18]>\nset [ghost v] effect to (0)\nswitch costume to (10 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [15]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [17]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [19]>\nhide\n\n@LeftSaws\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size (size)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nset size to (size) %\n\nwhen I receive [next v]\nif  then\n    delete this clone\nend\nif <(Level) = [8]> then\n    Clone At X: [-13] [28] At Size [80]\nend\nif <(Level) = [9]> then\n    Clone At X: [-155] [-160] At Size [100]\nend\nif <(Level) = [10]> then\n    Clone At X: [150] [-161] At Size [90]\nend\nif <(Level) = [11]> then\n    Clone At X: [-170] [-160] At Size [90]\nend\nif <(Level) = [13]> then\n    Clone At X: [-240] [-2] At Size [80]\nend\nif <(Level) = [14]> then\n    Clone At X: [-30] [-162] At Size [80]\nend\nif <(Level) = [18]> then\n    Clone At X: [-231] [0] At Size [70]\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (1) layers\nforever\n    if <(Level) = [10]> then\n        repeat (43)\n            change x by (2)\n        end\n        wait (1) seconds\n        repeat (43)\n            change x by (-2)\n        end\n        wait (1) seconds\n    else\n        if <(Level) = [11]> then\n            repeat (25)\n                change x by (2)\n            end\n            wait (1) seconds\n            repeat (25)\n                change x by (-2)\n            end\n            wait (1) seconds\n        else\n            if <(Level) = [13]> then\n                repeat (30)\n                    change x by (2)\n                end\n                wait (1) seconds\n                repeat (30)\n                    change x by (-2)\n                end\n                wait (1) seconds\n            else\n                if <(Level) = [14]> then\n                    repeat (40)\n                        change x by (2)\n                    end\n                    wait (1) seconds\n                    repeat (40)\n                        change x by (-2)\n                    end\n                    wait (1) seconds\n                else\n                    if <(Level) = [18]> then\n                        repeat (50)\n                            change x by (2)\n                        end\n                        wait (1) seconds\n                        repeat (50)\n                            change x by (-2)\n                        end\n                        wait (1) seconds\n                    else\n                        repeat (20)\n                            change x by (2)\n                        end\n                        wait (1) seconds\n                        repeat (20)\n                            change x by (-2)\n                        end\n                        wait (1) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nbroadcast (Next v)\n\nwhen I start as a clone\nforever\n    turn right (4) degrees\nend\n\nbroadcast (Next v)\n\n@Upsaws\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size (size)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nset size to (size) %\n\nwhen I receive [next v]\nif  then\n    delete this clone\nend\nif <(Level) = [9]> then\n    Clone At X: [238] [65] At Size [100]\nend\nif <(Level) = [10]> then\n    Clone At X: [-85] [-90] At Size [90]\nend\nif <(Level) = [11]> then\n    Clone At X: [233] [-30] At Size [90]\nend\nif <(Level) = [12]> then\n    Clone At X: [-148] [82] At Size [90]\nend\nif <(Level) = [15]> then\n    Clone At X: [-50] [-57] At Size [80]\n    Clone At X: [-90] [69] At Size [85]\nend\nif <(Level) = [16]> then\n    Clone At X: [123] [-50] At Size [80]\nend\nif <(Level) = [17]> then\n    Clone At X: [102] [-33] At Size [50]\nend\nif <(Level) = [18]> then\n    Clone At X: [134] [9] At Size [70]\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nforever\n    if <(Level) = [9]> then\n        repeat (110)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (110)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [10]> then\n        repeat (30)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (30)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [11]> then\n        repeat (60)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (60)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [12]> then\n        repeat (37)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (37)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [15]> then\n        repeat (20)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (20)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [16]> then\n        repeat (42)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (42)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [17]> then\n        set size to (50) %\n        repeat (43)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (43)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [18]> then\n        repeat (48)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (48)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    turn right (4) degrees\nend\n\nbroadcast (Next v)\n\nrepeat (30)\n    change y by (-2)\nend\nwait (1) seconds\nrepeat (30)\n    change y by (2)\nend\nwait (1) seconds\n\nbroadcast (Next v)\n\n@Thing\n\nwhen I receive [spiked v]\nswitch costume to (1 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [lava v]\nswitch costume to (2 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [saws v]\nswitch costume to (pick random (3) to (4))\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [crush v]\nswitch costume to (pick random (5) to (6))\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [react v]\nswitch costume to (7 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [cannon v]\nswitch costume to (8 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nforever\n    go [forward v] (9) layers\nend\n\nwhen I receive [cannonball v]\nswitch costume to (9 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [force v]\nswitch costume to (10 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [force v]\nswitch costume to (11 v)\nset [ghost v] effect to (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Moving\n\ndefine Glide (x) (y)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    set [move x v] to (((x) - (x position)) / (15))\n    set [move y v] to (((y) - (y position)) / (15))\n    change x by (Move X)\n    change y by (Move Y)\n    change y by (3)\n    if <touching (player v)?> then\n        broadcast (Move player v)\n    end\n    change y by (-3)\nend\n\nwhen I receive [next v]\nif <(Level) = [11]> then\n    show\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [11]>>\n        Glide [0] [0]\n        Glide [50] [0]\n    end\nend\nif <(Level) = [12]> then\n    switch costume to (costume2 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [12]>>\n        Glide [0] [0]\n        Glide [140] [18]\n    end\nend\nif <(Level) = [13]> then\n    switch costume to (costume3 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [13]>>\n        Glide [0] [0]\n        Glide [100] [18]\n    end\nend\nif <(Level) = [14]> then\n    switch costume to (costume4 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [14]>>\n        Glide [0] [0]\n        Glide [0] [-105]\n    end\nend\nif <(Level) = [15]> then\n    show\n    switch costume to (costume5 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [15]>>\n        Glide [0] [0]\n        Glide [0] [60]\n    end\nend\nif <(Level) = [16]> then\n    show\n    switch costume to (costume6 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [16]>>\n        Glide [0] [0]\n        Glide [150] [0]\n    end\nend\nif <(Level) = [17]> then\n    show\n    switch costume to (costume7 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [17]>>\n        Glide [0] [0]\n        Glide [0] [70]\n    end\nend\nhide\n\nwhen flag clicked\nhide\n\n@Pink\n\nwhen [m v] key pressed\nset [mousex v] to (mouse x)\nset [mousey v] to (mouse y)\n\nbroadcast (Reset v)\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size (size)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\nset size to (size) %\n\nwhen I receive [next v]\nif  then\n    delete this clone\nend\nif <(Level) = [15]> then\n    Clone At X: [-100] [-111] At Size [100]\n    Clone At X: [-3] [-111] At Size [100]\n    Clone At X: [231] [-20] At Size [100]\n    Clone At X: [-45] [18] At Size [100]\nend\nif <(Level) = [16]> then\n    Clone At X: [124] [-128] At Size [100]\n    Clone At X: [121] [-45] At Size [120]\n    Clone At X: [-226] [15] At Size [100]\nend\nif <(Level) = [17]> then\n    Clone At X: [228] [-14] At Size [100]\nend\nif <(Level) = [18]> then\n    Clone At X: [-230] [-1] At Size [100]\n    Clone At X: [134] [-88] At Size [100]\nend\n\nwhen I start as a clone\npoint in direction (90)\nshow\ngo [backward v] (11) layers\nforever\n    set [ghost v] effect to ((139) - (distance to [player v]))\nend\n\nbroadcast (Next v)\n\nClone At X: [-226] [15] At Size [100]\n\n@Moving2\n\ndefine Glide (x) (y)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    set [move x2 v] to (((x) - (x position)) / (15))\n    set [move y2 v] to (((y) - (y position)) / (15))\n    change x by (Move X2)\n    change y by (Move Y2)\n    change y by (3)\n    if <touching (player v)?> then\n        broadcast (Move Player 2 v)\n    end\n    change y by (-3)\nend\n\nwhen I receive [next v]\nif <(Level) = [11]> then\n    show\n    switch costume to (costume1 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [11]>>\n        Glide [0] [0]\n        Glide [0] [100]\n    end\nend\nif <(Level) = [12]> then\n    show\n    switch costume to (costume2 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [12]>>\n        Glide [0] [0]\n        Glide [-170] [0]\n    end\nend\nif <(Level) = [13]> then\n    show\n    switch costume to (costume3 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [13]>>\n        Glide [0] [0]\n        Glide [0] [100]\n    end\nend\nhide\nif <(Level) = [15]> then\n    show\n    switch costume to (costume5 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [15]>>\n        Glide [0] [0]\n        Glide [0] [-60]\n    end\nend\n\nbroadcast (Next v)\n\nwhen flag clicked\nhide\n\n@UpSpikes\n\nwhen flag clicked\nforever\n    switch costume to (Level)\n    go to x: (0) y: (-27)\n    glide (0.2) secs to x: (0) y: (-40)\n    wait (0.8) seconds\n    glide (0.4) secs to x: (0) y: (-27)\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [intro done v]\nshow\n\n