Stickman Adventures 4 || Platformer


@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 <<touching (pink 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 <<touching (pink 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 <<touching (pink 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 <<touching (pink 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 <<touching (pink 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 <<touching (pink 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    if <(TYPE: JUMP) = [2]> then\n        Physics [14.5] [-1] [0.65] [2]\n    else\n        Physics [10] [-1] [0.65] [2]\n    end\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 >> then\n        broadcast (Lock Reset v)\n    end\n    broadcast (die v)\n    broadcast (Reset v)\n    set [type: shadows v] to [0]\n    set [type: jump v] to [1]\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 (trans v)\n    broadcast (Reset v)\n    broadcast (Next v)\n    set [type: jump v] to [1]\n    start sound [Ding \(CinemaSins\) - Sound Effect.mp3 v]\n    change [level v] by (1)\n    set [type: shadows v] to [0]\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 (4)\nend\nif <touching (opposite v)?> then\n    change x by (-4)\nend\n\nif <touching (danger v)?> then\n    broadcast (Spiked v)\nend\nif <touching (lava v)?> then\n    broadcast (Lava v)\nend\nif <<touching (saws v)?> or <<touching (leftsaws v)?> or <touching (upsaws v)?>>> then\n    broadcast (Saws v)\nend\nif <<touching (force v)?> and <touching (danger v)?>> then\n    broadcast (React v)\nend\nif <touching (crushers v)?> then\n    broadcast (Crush v)\nend\nif <<touching (cannon v)?> or <touching (second cannon v)?>> then\n    broadcast (Cannon v)\nend\nif <<touching (bullet v)?> or <touching (second bullet v)?>> then\n    broadcast (Cannonball v)\nend\nif <<touching (danger v)?> and <(Y Velocity) > [13]>> then\n    broadcast (Force v)\nend\nif <touching (upspikes v)?> then\n    broadcast (Sup v)\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\nbroadcast (die v)\n\nbroadcast (Reset v)\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@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@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@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) = [10]> then\n    Clone At X: [-150] [-160] At Size [80]\nend\nif <(Level) = [11]> then\n    Clone At X: [-150] [-160] At Size [80]\n    Clone At X: [102] [-160] At Size [80]\n    Clone At X: [161] [-160] At Size [80]\n    Clone At X: [220] [-160] At Size [80]\nend\nif <(Level) = [15]> then\n    Clone At X: [-150] [-160] At Size [80]\n    Clone At X: [-65] [-160] 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]>\nhide\n\nwhen flag clicked\nrepeat (532)\n    hide\nend\n\nwhen flag clicked\nwait until <(Level) = [10]>\nshow\nswitch costume to (1 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) = [10]>\nshow\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nrepeat (10)\n    hide\nend\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\nwhen flag clicked\nwait until <(Level) = [11]>\nshow\nswitch costume to (2 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\nshow\n\nwhen flag clicked\nwait until <(Level) = [12]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [12]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nshow\nswitch costume to (3 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: (-95)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nwait until <(Level) = [12]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [14]>\nshow\nswitch costume to (4 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: (-95)\n    wait (1) seconds\nend\nshow\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) = [12]> then\n        hide\n    end\nend\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\nhide\ngo to [back v] layer\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [14]>\nshow\nset size to (90) %\ngo to x: (130) y: (110)\nrepeat until <not <(Level) = [14]>>\n    create clone of (bullet v)\n    wait (3) seconds\nend\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [14]>\nrepeat until <not <(Level) = [14]>>\n    point towards (player v)\nend\n\nwhen flag clicked\nwait until <(Level) = [15]>\nhide\n\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 (4) steps\nend\nwait (0.01) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\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.5) seconds\nset volume to (40) %\nforever\n    if <(pick random (1) to (6)) = [1]> then\n        play sound [Song 1 v] until done\n        play sound [Song 1 v] until done\n    else\n        if <(pick random (1) to (6)) = [2]> then\n            play sound [Song 2 v] until done\n            play sound [Song 2 v] until done\n            play sound [Song 2 v] until done\n        else\n            if <(pick random (1) to (6)) = [3]> then\n                play sound [Song 3 v] until done\n                play sound [Song 3 v] until done\n                play sound [Song 3 v] until done\n            else\n                if <(pick random (1) to (6)) = [4]> then\n                    play sound [Song 4 v] until done\n                    play sound [Song 4 v] until done\n                else\n                    if <(pick random (1) to (6)) = [5]> then\n                        play sound [Song 6 v] until done\n                        play sound [Song 6 v] until done\n                        play sound [Song 6 v] until done\n                    else\n                        play sound [Song 5 v] until done\n                        play sound [Song 5 v] until done\n                    end\n                end\n            end\n        end\n    end\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\nstop all sounds\n\n@Second Cannon\n\nwhen flag clicked\nhide\ngo to [back v] layer\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\nwhen flag clicked\nwait until <(Level) = [13]>\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] [-107]\nend\nif <(Level) = [3]> then\n    Clone At X: [-2] [-72]\n    Clone At X: [65] [-92]\nend\nif <(Level) = [4]> then\n    Clone At X: [230] [-72]\n    Clone At X: [230] [-72]\nend\nif <(Level) = [8]> then\n    Clone At X: [199] [-15]\nend\nif <(Level) = [9]> then\n    Clone At X: [-107] [5]\nend\nif <(Level) = [11]> then\n    Clone At X: [-154] [-16]\n    Clone At X: [-176] [-16]\n    Clone At X: [-198] [-16]\nend\nif <(Level) = [12]> then\n    Clone At X: [195] [-80]\n    Clone At X: [145] [100]\nend\nif <(Level) = [13]> then\n    Clone At X: [187] [-16]\nend\nif <(Level) = [14]> then\n    Clone At X: [175] [-120]\n    Clone At X: [175] [-30]\n    Clone At X: [230] [-80]\nend\nif <(Level) = [15]> then\n    Clone At X: [-70] [-32]\n    Clone At X: [140] [80]\nend\n\nwhen I start as a clone\nset volume to (30) %\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        start sound [Ricochet v]\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    start sound [Ricochet v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nbroadcast (Next v)\n\nbroadcast (Reset v)\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        wait (0.1) seconds\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nClone At X: [-215] [-20]\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\nhide\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]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [10]>\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\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [11]>\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) = [12]>\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\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [10]>\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\nwait until <(Level) = [15]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\n@Locked\n\nwhen flag clicked\nhide\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) = [10]>\nset [ghost v] effect to (0)\nswitch costume to (3 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [19]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [11]>\nset [ghost v] effect to (0)\nswitch costume to (4 v)\nshow\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nwait until <(Level) = [8]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [13]>\nhide\n\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [12]>\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) = [13]>\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\nwait until <(Level) = [15]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [16]>\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) = [7]> then\n    Clone At X: [-5] [30] At Size [80]\nend\nif <(Level) = [10]> then\n    Clone At X: [105] [65] At Size [80]\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (1) layers\nforever\n    if <(Level) = [7]> then\n        repeat (32)\n            change x by (2)\n        end\n        wait (1) seconds\n        repeat (32)\n            change x by (-2)\n        end\n        wait (1) seconds\n    end\n    repeat (52)\n        change x by (2)\n    end\n    wait (1) seconds\n    repeat (52)\n        change x by (-2)\n    end\n    wait (1) seconds\nend\n\nbroadcast (Next v)\n\nwhen I start as a clone\nforever\n    turn right (4) degrees\nend\n\nbroadcast (Next v)\n\nbroadcast (Next v)\n\nif <(Level) = [10]> then\nend\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) = [7]> then\n    Clone At X: [-105] [-130] At Size [80]\n    Clone At X: [-12] [-130] At Size [80]\nend\nif <(Level) = [8]> then\n    Clone At X: [-26] [-90] At Size [80]\n    Clone At X: [82] [-90] At Size [80]\nend\nif <(Level) = [12]> then\n    Clone At X: [98] [150] At Size [80]\nend\nif <(Level) = [15]> then\n    Clone At X: [-10] [91] At Size [80]\n    Clone At X: [90] [91] At Size [80]\nend\n\nwhen I start as a clone\nshow\nforever\n    if <(Level) = [7]> then\n        repeat (25)\n            change y by (2)\n        end\n        wait (1) seconds\n        repeat (25)\n            change y by (-2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [8]> then\n        repeat (45)\n            change y by (2)\n        end\n        wait (1) seconds\n        repeat (45)\n            change y by (-2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [12]> then\n        repeat (25)\n            change y by (-2)\n        end\n        wait (1) seconds\n        repeat (25)\n            change y by (2)\n        end\n        wait (1) seconds\n    end\n    if <(Level) = [15]> then\n        repeat (25)\n            change y by (2)\n        end\n        wait (1) seconds\n        repeat (25)\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\nbroadcast (Next v)\n\nbroadcast (Next v)\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 [125] [0]\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 [100] [0]\n    end\nend\nif <(Level) = [13]> then\n    hide\nend\nif <(Level) = [15]> then\n    show\n    switch costume to (costume3 v)\n    go to x: (0) y: (0)\n    repeat until <not <(Level) = [15]>>\n        Glide [0] [0]\n        Glide [110] [50]\n    end\nend\n\nbroadcast (Next v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <(Level) = [16]> then\n        hide\n    end\nend\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) = [8]> then\n    Clone At X: [30] [-62] At Size [100]\n    Clone At X: [132] [-62] At Size [100]\nend\nif <(Level) = [9]> then\n    Clone At X: [64] [-40] At Size [100]\nend\nif <(Level) = [10]> then\n    Clone At X: [-37] [81] At Size [100]\nend\nif <(Level) = [12]> then\n    Clone At X: [50] [100] At Size [100]\nend\nif <(Level) = [15]> then\n    Clone At X: [-60] [80] At Size [100]\n    Clone At X: [40] [80] 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 ((145) - (distance to [player v]))\nend\n\nbroadcast (Next v)\n\nClone At X: [50] [100] 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]\nhide\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\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 (2) seconds\n    glide (0.4) secs to x: (0) y: (-25)\n    wait (0.5) seconds\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [intro done v]\nshow\n\n@Death\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [die v]\nset [transition> v] to [1]\ngo to [front v] layer\nclear graphic effects\nshow\ngo to x: (5000) y: (0)\nrepeat until <(round (x position)) = [0]>\n    go to [front v] layer\n    change x by (((0) - (x position)) / (4))\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nset [transition> v] to [0]\n\n@Next\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [trans v]\nset [transition> v] to [1]\ngo to [front v] layer\nclear graphic effects\nshow\ngo to x: (5000) y: (0)\nrepeat until <(round (x position)) = [0]>\n    go to [front v] layer\n    change x by (((0) - (x position)) / (4))\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nset [transition> v] to [0]\n\n@Opposite\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@Jumpy\n\nwhen flag clicked\nhide\nwait until <(Level) = [7]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (124) y: (-7)\nrepeat until <not <(Level) = [7]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide\nforever\n    if <touching (player v)?> then\n        if <(TYPE: JUMP) = [1]> then\n            start sound [Enabled v]\n        end\n        set [type: jump v] to [2]\n    end\nend\n\nwhen flag clicked\nset [type: jump v] to [1]\nhide\n\nwhen I receive [greenflag v]\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [8]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-172) y: (-137)\nrepeat until <not <(Level) = [8]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [13]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-172) y: (-137)\nrepeat until <not <(Level) = [13]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [14]>\nhide\n\n@Normal\n\nwhen flag clicked\nhide\nwait until <(Level) = [7]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-120) y: (61)\nrepeat until <not <(Level) = [7]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        if <(TYPE: JUMP) = [2]> then\n            start sound [Disable  v]\n        end\n        set [type: jump v] to [1]\n    end\nend\n\nwhen flag clicked\nset [type: jump v] to [1]\nhide\n\nwhen I receive [greenflag v]\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [8]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-120) y: (-30)\nrepeat until <not <(Level) = [8]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nwait until <(Level) = [13]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-119) y: (132)\nrepeat until <not <(Level) = [13]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [9]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [14]>\nhide\n\n@Green\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) = [8]> then\n    Clone At X: [-114] [60] At Size [100]\nend\nif <(Level) = [9]> then\n    Clone At X: [184] [-80] At Size [100]\n    Clone At X: [-230] [50] At Size [100]\n    Clone At X: [-170] [107] At Size [100]\nend\nif <(Level) = [10]> then\n    Clone At X: [-36] [20] At Size [100]\nend\nif <(Level) = [11]> then\n    Clone At X: [157] [-115] At Size [100]\n    Clone At X: [80] [-16] At Size [100]\nend\nif <(Level) = [13]> then\n    Clone At X: [60] [-25] 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 ((distance to [player v]) - (35))\nend\n\nbroadcast (Next v)\n\nClone At X: [-226] [15] At Size [100]\n\n@Shade\n\nwhen flag clicked\nset [type: shadows v] to [0]\ngo to [front v] layer\nset [ghost v] effect to (100)\nforever\n    show\n    go to (player v)\nend\n\nwhen flag clicked\nforever\n    if <(TYPE: SHADOWS) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    else\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    end\nend\n\n@Lights out!\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait until <(Level) = [12]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (143) y: (-90)\nrepeat until <not <(Level) = [12]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [13]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-80) y: (132)\nrepeat until <not <(Level) = [13]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [14]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-220) y: (-142)\nrepeat until <not <(Level) = [14]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [15]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-186) y: (124)\nrepeat until <not <(Level) = [15]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        if <(TYPE: SHADOWS) = [0]> then\n            start sound [Enabled v]\n        end\n        set [type: shadows v] to [1]\n    end\nend\n\nwhen flag clicked\nset [type: jump v] to [1]\nhide\n\nwhen I receive [greenflag v]\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [16]>\nhide\n\n@Lights on!\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait until <(Level) = [12]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-140) y: (30)\nrepeat until <not <(Level) = [12]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [13]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (146) y: (-89)\nrepeat until <not <(Level) = [13]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\nwait until <(Level) = [14]>\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to x: (-150) y: (138)\nrepeat until <not <(Level) = [14]>>\n    repeat (15)\n        change size by (1)\n    end\n    wait (1) seconds\n    repeat (15)\n        change size by (-1)\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nforever\n    if <touching (player v)?> then\n        if <(TYPE: SHADOWS) = [1]> then\n            start sound [Disable  v]\n        end\n        set [type: shadows v] to [0]\n    end\nend\n\nwhen flag clicked\nset [type: jump v] to [1]\nhide\n\nwhen I receive [greenflag v]\nwait until <(Level) = [16]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [13]>\nhide\n\nwhen [space v] key pressed\n\nset [type: shadows v] to [0]\n\nwhen flag clicked\nforever\n    if <(Level) = [15]> then\n        hide\n    end\nend\n\n