Rainbow Runner || Platformer || #games


@Stage\n\nwhen I receive [intro done v]\nswitch backdrop to (1 v)\n\nwhen flag clicked\nswitch backdrop to (4 v)\n\nwhen I receive [play music v]\nwait (0.1) seconds\nif <(Music#) = [1]> then\n    set volume to (35) %\n    set [canmoveplayer v] to [1]\n    repeat until <(Total Coins Collected) > [24]>\n        play sound [1 v] until done\n    end\n    stop [this script v]\nelse\n    if <(Music#) = [2]> then\n        set volume to (35) %\n        set [canmoveplayer v] to [1]\n        repeat until <(Level) = [14]>\n            play sound [2 v] until done\n        end\n        stop [this script v]\n    end\nend\n\nplay sound [2 v] until done\n\nwhen I receive [particles v]\n\nwhen I receive [show intro v]\nwait until <(Total Coins Collected) > [24]>\nstop all sounds\nset volume to (0) %\nstop [this script v]\n\nwhen I receive [round 2 v]\nswitch backdrop to (3 v)\n\nrepeat (10)\n    change [pitch v] effect by (-1)\nend\nwait (0.5) seconds\nrepeat (10)\n    change [pitch v] effect by (1)\nend\nclear sound effects\n\nwhen I receive [round 3 v]\nswitch backdrop to (2 v)\n\nwhen I receive [win 2 v]\nset volume to (0) %\n\nstop [this script v]\n\nwhen I receive [round 4 v]\nswitch backdrop to (6 v)\n\nwhen I receive [stop sounds v]\nset volume to (0) %\n\nset volume to (35) %\n\nwhen I receive [countdown4 v]\nstop all sounds\n\nbroadcast (Countdown4 v)\n\nset [music# v] to [3]\n\nif <(Music#) = [4]> then\n    wait (0.5) seconds\n    stop all sounds\n    set volume to (35) %\n    set [canmoveplayer v] to [1]\n    repeat until <(Level) = [20]>\n        play sound [Song v] until done\n    end\n    stop [this script v]\nend\n\nwhen I receive [play music v]\n\n@Intro\n\ndefine Particle (amount)\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\ndefine Smooth Glide To X: (x) Y: (y) Size: (size) Dir: (dir) & Speed: (speed) || Costume: (costume)\nrepeat until <<<(x position) = (x)> and <(y position) = (y)>> and <<(size) = (size)> and <(round (direction)) = (dir)>>>\n    switch costume to (pos hack v)\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    turn right (((dir) - (direction)) / (speed)) degrees\n    switch costume to (costume)\n    change size by (((size) - (size)) / (speed))\nend\n\nwhen flag clicked\nbroadcast (Intro v)\n\nwhen I start as a clone\nshow\nif <(id) = [1]> then\n    go to x: (0) y: (200)\n    Smooth Glide To X: [0] Y: [-240] Size: [100] Dir: [90] & Speed: [5] || Costume: [Stripe 1]\nelse\n    if <(id) = [2]> then\n        go to x: (0) y: (200)\n        Smooth Glide To X: [0] Y: [-240] Size: [100] Dir: [90] & Speed: [5] || Costume: [Stripe 2]\n    else\n        if <(id) = [3]> then\n            go to x: (0) y: (0)\n            switch costume to (logo v)\n            go to [front v] layer\n            show\n            point in direction (-45)\n            set [ghost v] effect to (100)\n            set size to (0) %\n            repeat (20)\n                change size by (((120) - (size)) / (5))\n                change [ghost v] effect by (-10)\n                turn right (((92) - (direction)) / (5)) degrees\n            end\n            repeat (23)\n                change size by (((100) - (size)) / (5))\n                change y by (((0) - (y position)) / (5))\n            end\n            wait (0.5) seconds\n            Smooth Glide To X: [0] Y: [40] Size: [100] Dir: [90] & Speed: [6] || Costume: [Logo]\n        else\n            if <(id) = [5]> then\n                go to [front v] layer\n                go to x: (0) y: (0)\n                Smooth Glide To X: [0] Y: [100] Size: [90] Dir: [90] & Speed: [5] || Costume: [Text]\n            else\n                if <(id) = [6]> then\n                    go to [front v] layer\n                    go to x: (0) y: (200)\n                    Smooth Glide To X: [0] Y: [-240] Size: [90] Dir: [90] & Speed: [5] || Costume: [Stripe 3]\n                else\n                    if <(id) = [7]> then\n                        go to [front v] layer\n                        go to x: (0) y: (200)\n                        Smooth Glide To X: [0] Y: [-240] Size: [90] Dir: [90] & Speed: [5] || Costume: [Stripe 4]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(id) = [4]> then\n    show\n    switch costume to (particle v)\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (100)\n    set [1 v] to (pick random (-15) to (15))\n    set [2 v] to (pick random (-15) to (15))\n    set [3 v] to (pick random (-50) to (50))\n    set size to (pick random (50) to (300)) %\n    go to x: (0) y: (0)\n    repeat (25)\n        go to [front v] layer\n        switch costume to (thing 1 v)\n        change [ghost v] effect by (-7.5)\n        set size to ((size) * (.9)) %\n        change x by (1)\n        change y by (2)\n        turn right (3) degrees\n        set [1 v] to ((1) * (0.9))\n        set [2 v] to ((2) * (0.9))\n        switch costume to (pick random (6) to (7))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(id) = [4]> then\n    forever\n        change [yv v] by (-0.1)\n        change y by (YV)\n    end\nend\n\nwhen I receive [play scene v]\nif <(id) = [1]> then\n    delete this clone\nelse\n    if <(id) = [2]> then\n        delete this clone\n    else\n        if <(id) = [3]> then\n            delete this clone\n        else\n            if <(id) = [5]> then\n                delete this clone\n            else\n                if <(id) = [6]> then\n                    repeat (10)\n                        change [ghost v] effect by (10)\n                    end\n                    wait (0.5) seconds\n                    delete this clone\n                else\n                    if <(id) = [7]> then\n                        repeat (10)\n                            change [ghost v] effect by (10)\n                        end\n                        wait (0.5) seconds\n                        delete this clone\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [intro v]\nstart sound (pick random (1) to (2))\nset volume to (50) %\nwait (0.3) seconds\nset [id v] to [1]\nset [sequence # v] to [1]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nset [id v] to [2]\nset [sequence # v] to [2]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nset [id v] to [3]\nset [sequence # v] to [3]\ncreate clone of (_myself_ v)\nwait (1) seconds\nset [id v] to [4]\nset [sequence # v] to [4]\nParticle [20]\nwait (1) seconds\nset [id v] to [5]\nset [sequence # v] to [5]\ncreate clone of (_myself_ v)\nwait (2) seconds\nset [id v] to [6]\nset [sequence # v] to [6]\ncreate clone of (_myself_ v)\nwait (0.3) seconds\nset [id v] to [7]\nset [sequence # v] to [7]\ncreate clone of (_myself_ v)\nwait (0.5) seconds\nwait (5) seconds\nrepeat (100)\n    change volume by (-1)\nend\n\nstop all sounds\n\nbroadcast (Hide v)\n\nwhen I receive [hide v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\ndelete this clone\n\nwhen I receive [intro v]\nwait (6.5) seconds\nbroadcast (Play Scene v)\n\nstop all sounds\nset volume to (50) %\nstart sound [Test v]\n\nstop all sounds\nset volume to (50) %\nstart sound [Test2 v]\n\nwhen I receive [play scene v]\nrepeat (20)\n    change [ghost v] effect by (10)\nend\n\n@Player\n\nwhen I receive [animation v]\n\nset size to (80) %\nrepeat (100)\n    change size by (((100) - (size)) / (10))\nend\n\nwhen I receive [move player v]\nif <not <touching (danger v)?>> then\n    change x by (10)\n    change y by (10)\nend\n\nwhen flag clicked\nset [level v] to [0]\nset volume to (100) %\nhide\n\ndefine Platformer Physics (speed) (friction) (jump height)\nif <(CanMovePlayer) = [1]> then\n    Ground Touch <(Y Velocity) > [0]>\n    switch costume to (idle v)\n    if <not <touching (water v)?>> then\n        if <not <touching (ladders v)?>> then\n            if <touching (low gravity v)?> then\n                if <<(Level) = [6]> or > then\n                    change [y velocity v] by (-0.6)\n                else\n                    change [y velocity v] by (-0.65)\n                end\n            else\n                if <touching (high gravity v)?> then\n                    change [y velocity v] by (-1.5)\n                else\n                    change [y velocity v] by (-1)\n                end\n            end\n        end\n    end\n    if <touching (ladders v)?> then\n        Ladders\n    end\n    if <(STICK X) > [0.3]> then\n        change [x velocity v] by (speed)\n    end\n    if <(STICK X) < [-0.3]> then\n        change [x velocity v] by ((0) - (speed))\n    end\n    set [x velocity v] to ((X Velocity) * (friction))\n    change x by (X Velocity)\n    set [slope v] to [0]\n    if <<<touching (level v)?> or <touching (coinlock v)?>> or > then\n        repeat until <<not <<<touching (level v)?> or <touching (coinlock v)?>> or >> or <(Slope) = [-8]>>\n            change [slope v] by (-1)\n            change y by (1)\n        end\n    end\n    if <<<touching (level v)?> or <<touching color (#ffffff)?> and <<(CanMovePlayer) = [1]> or <<(Lost) = [0]> or <(Win) = [0]>>>>> or > then\n        change y by (Slope)\n        repeat until <not <<<touching (level v)?> or <<touching color (#ffffff)?> and <<(CanMovePlayer) = [1]> or <<(Lost) = [0]> or <(Win) = [0]>>>>> or >>\n            change x by ((0) - (([abs v] of (X Velocity) ) / (X Velocity)))\n        end\n        set [x velocity v] to [0]\n    end\n    change y by (Y Velocity)\n    if <<<touching (level v)?> or <<touching color (#ffffff)?> and <<(CanMovePlayer) = [1]> or <<(Lost) = [0]> or <(Win) = [0]>>>>> or > then\n        repeat until <not <<<touching (level v)?> or <<touching color (#ffffff)?> and <<(CanMovePlayer) = [1]> or <<(Lost) = [0]> or <(Win) = [0]>>>>> or >>\n            change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n        end\n        set [falling? v] to [-1]\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(STICK BUTTON) > [0]>> and <<<touching (level v)?> or <<touching color (#ffffff)?> and <<(CanMovePlayer) = [1]> or <<(Lost) = [0]> or <(Win) = [0]>>>>> or <<touching (jump through v)?> or <touching (spawnedlevel v)?>>>> then\n        if <<(Jump) = [0]> and <(Jump) < [3]>> then\n            if <(Jumps) < (TotalJumps)> then\n                change [jumps v] by (1)\n                set [falling? v] to [6]\n                set [jump v] to [1]\n                if <not <touching (water v)?>> then\n                    set [y velocity v] to (jump height)\n                end\n                if <(Falling?) < [7]> then\n                    if <<touching (left v)?> or <touching (right v)?>> then\n                        start sound (pick random (34) to (36))\n                    else\n                        start sound (pick random (27) to (33))\n                    end\n                end\n            else\n                broadcast (Shake v)\n            end\n        end\n    else\n        if <not <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [jump v] to [0]\n        end\n    end\n    change y by (1)\n    if <touching (water v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <(STICK BUTTON) > [0]>> then\n            if <(Y Velocity) < [11]> then\n                change [y velocity v] by (0.8)\n            end\n        end\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            change [y velocity v] by (-0.8)\n        end\n        if <touching (water v)?> then\n            if <not <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>>> then\n                change [y velocity v] by (-0.1)\n            end\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 <touching (jump rings v)?>> then\n        set [y velocity v] to [13]\n    end\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (small jump rings v)?>> then\n        set [y velocity v] to [8]\n    end\n    if <not <touching (water v)?>> then\n        if <(Y Velocity) > [0]> then\n            switch costume to (jump v)\n        end\n        if <(Y Velocity) < [-1]> then\n            switch costume to (fall v)\n        end\n    end\nend\nset [playery v] to (round (y position))\n\ndefine Detection\nif <<(x position) > [230]> and <not <<(Level) = [7]> or <<(Level) = [14]> or <(Level) = [20]>>>>> then\n    broadcast (ResetLava v)\n    broadcast (Swich to black v)\n    broadcast (Create Clone v)\n    broadcast (Next v)\n    broadcast (Animation v)\n    broadcast (Start Keys v)\n    broadcast (Lock v)\n    broadcast (Reset orb v)\n    broadcast (Next Level v)\n    start sound [Checkpoint v]\n    set size to (100) %\n    set [level v] to ((Level) + (1))\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    Spawn Position\n    JumpCount\nend\nif <<<touching (danger v)?> or <<touching (saws v)?> or <<(y position) < [-170]> or >>> and <not <(CHEAT) = [1]>>> then\n    broadcast (Particles v)\n    broadcast (Lock v)\n    broadcast (Start Keys v)\n    broadcast (Animation v)\n    broadcast (Reset orb v)\n    broadcast (Next v)\n    start sound [Respawn v]\n    switch costume to (idle v)\n    if <<(Level) = []> or > then\n        broadcast (Reset v)\n    end\n    JumpCount\n    Respawn Position\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <touching (bouncy v)?> then\n    start sound [Big Boing v]\n    set [y velocity v] to [18]\nend\nif <touching (trampolines v)?> then\n    set [y velocity v] to [18]\nend\nif <(CanMovePlayer) = [1]> then\n    if <(STICK X) < [-0.3]> then\n        point in direction (-90)\n    end\n    if <(STICK X) > [0.3]> then\n        point in direction (90)\n    end\n    set rotation style [left-right v]\nend\nif <touching (bounce part v)?> then\n    if <(Level) = [8]> then\n        set [y velocity v] to [18]\n    else\n        set [y velocity v] to [17.5]\n    end\n    start sound [spring v]\nend\nif <touching (left v)?> then\n    change [x velocity v] by (-1.1)\nend\nif <touching (right v)?> then\n    change [x velocity v] by (1.1)\nend\nif <<touching color (#d6538a)?> and <not <(CHEAT) = [1]>>> then\n    broadcast (Stop Sounds v)\n    set [lost v] to [1]\n    start sound [Splash v]\n    start sound [Eliminated v]\n    change y by (150)\n    set [canmoveplayer v] to [0]\n    broadcast (Level Fail v)\nend\nif <<<touching color (#ffe07a)?> and <(Level) > [14]>> and <(CHEAT) = [0]>> then\n    broadcast (Stop Sounds v)\n    set [lostgame v] to [1]\n    start sound [Splash v]\n    start sound [Eliminated v]\n    change y by (150)\n    set [canmoveplayer v] to [0]\n    broadcast (LevelFail2 v)\nend\n\nbroadcast (Swich to black v)\n\nwhen I receive [intro done v]\nset [speed? v] to [0]\nset [canmoveplayer v] to [0]\nset [totaljumps v] to [999]\npoint in direction (90)\nset size to (100) %\nset [cheat v] to [0]\nwait (0.1) seconds\nshow\nswitch costume to (idle v)\ngo to x: (-215) y: (-51)\nset rotation style [left-right v]\nset [level v] to [1]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nrepeat (10)\n    go [backward v] (1) layers\nend\nforever\n    if <touching (slippery v)?> then\n        Platformer Physics [2.2] [0.83] [14]\n        Detection\n    else\n        Platformer Physics [1.9] [0.8] [12.8]\n        Detection\n    end\n    Ground Touch <(Y Velocity) > [0]>\nend\n\nwhen flag clicked\nforever\n    Cheats Menu\nend\n\ndefine Cheats Menu\nif <<<key (1 v) pressed?> and <<(username) = [250119code2]> or <(username) = [250119test2]>>> and <not <(CHEAT) = [1]>>> then\n    set [cheat v] to [1]\n    wait (0.3) seconds\nelse\n    if <<key (1 v) pressed?> and <(CHEAT) = [1]>> then\n        set [cheat v] to [0]\n        wait (0.3) seconds\n    end\nend\nif <<key (up arrow v) pressed?> and <(CHEAT) = [1]>> then\n    set [y velocity v] to [8]\nend\nif <<key (down arrow v) pressed?> and <(CHEAT) = [1]>> then\n    set [y velocity v] to [-6]\nend\n\nwhen flag clicked\nforever\n    set [x v] to (round (x position))\n    set [y v] to (round (y position))\nend\n\nwhen I receive [restart v]\nbroadcast (Create Clone v)\nif <<(Level) = []> or > then\n    broadcast (Reset v)\nend\nstart sound [Crunch v]\ncreate clone of (_myself_ v)\npoint in direction (90)\ngo to x: (-215) y: (-60)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nwhen I receive [transition v]\npoint in direction (90)\ngo to x: (-215) y: (-70)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nwhen flag clicked\nforever\n    if <(username) = [250119code2]> then\nend\n\nwhen flag clicked\nforever\n    if <(username) = [250119code2]> then\nend\n\nwhen I receive [intro done v]\ngo to [front v] layer\n\nwhen flag clicked\nforever\n    wait until <touching (water v)?>\n    set [y velocity v] to ((Y Velocity) / (2))\n    wait until <not <touching (water v)?>>\nend\n\nwhen I receive [jump v]\nset [y velocity v] to [10]\n\nwhen I receive [intro done v]\nset [level v] to [1]\n\ndefine Respawn Position\nwait (0) seconds\nbroadcast (Animation v)\nset [jumps v] to [0]\nset [speed? v] to [0]\nif <<(Level) = [1]> or <<(Level) = [2]> or <<(Level) = [3]> or <<(Level) = [5]> or >>>> then\n    go to x: (-215) y: ((-57) + (35))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: ((82) + (30))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: ((7) + (30))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <<(Level) = [8]> or <(Level) = [9]>> then\n    go to x: (-215) y: (-23)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [jumps v] to [0]\nend\nif  then\n    go to x: (-215) y: ((23) + (30))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <<(Level) = [11]> or > then\n    go to x: (-215) y: ((-60) + (10))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: ((-44) + (30))\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: (-40)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nRespawn Position 2\n\ndefine Ladders\nif <touching (ladders v)?> then\n    if <touching (ladders v)?> then\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <not <touching (level v)?>> then\n                set [y velocity v] to [6.5]\n            end\n        end\n    end\n    if <touching (ladders v)?> then\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            if <not <touching (level v)?>> then\n                set [y velocity v] to [-6.5]\n            end\n        end\n    end\nend\nif <not <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <[] = [1]>> or <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <[] = [1]>>>> then\n    set [y velocity v] to [0]\nend\n\ngo to x: (-215) y: (-55)\n\nwhen flag clicked\nforever\n    wait until <touching (low gravity v)?>\n    broadcast (Show Blue v)\n    wait until <not <touching (low gravity v)?>>\n    broadcast (Out v)\nend\n\ngo [forward v] (5) layers\n\nwhen flag clicked\nforever\n    wait until <touching (high gravity v)?>\n    broadcast (Show Red v)\n    wait until <not <touching (high gravity v)?>>\n    broadcast (Hide Red v)\nend\n\nwhen I receive [win v]\nhide\n\nwhen I receive [animation v]\nswitch costume to (idle v)\nset [canmoveplayer v] to [0]\nset size to (20) %\nrepeat (20)\n    change size by (((100) - (size)) / (10))\nend\nset [canmoveplayer v] to [1]\nrepeat (80)\n    change size by (((100) - (size)) / (10))\nend\n\nwhen flag clicked\nforever\n    wait until <touching (water v)?>\n    broadcast (Water v)\n    start sound [In Water v]\n    wait until <not <touching (water v)?>>\n    if <(x position) > [-215]> then\n        set [y velocity v] to [7.5]\n    end\nend\n\nstop all sounds\nplay sound [Drum Roll v] until done\nstart sound [Clash v]\nwait (0.65) seconds\nstart sound [Qualified v]\n\nwait (1) seconds\n\nwhen I receive [hide v]\ngo to x: (0) y: ((50) + (25))\npoint in direction (90)\nset size to (100) %\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nhide\n\nwhen I receive [count v]\n\nshow\n\nwhen I receive [win v]\nstart sound [Qualified v]\n\nwhen I receive [game over v]\nhide\nset [lost v] to [1]\n\nwhen flag clicked\nset [lost v] to [0]\n\nbroadcast (Create Clone v)\n\nwhen flag clicked\nforever\n    if <<<touching (right v)?> or <touching (left v)?>> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        play sound (pick random (20) to (25)) until done\n    end\n    if <(Level) > [15]> then\n        set [totaljumps v] to [999]\n    end\nend\n\nif <touching (left v)?> then\n    change x by (-4.8)\nend\nif <touching (right v)?> then\n    change x by (4.8)\nend\n\nwhen I receive [be still v]\nswitch costume to (idle v)\n\nwhen I receive [speed up v]\n\nif <(Speed?) = [1]> then\n    Platformer Physics [2] [0.8] [14]\n    Detection\nend\n\ndefine Spawn Position\nwait (0) seconds\nbroadcast (Animation v)\nset [speed? v] to [0]\nif <<(Level) = [1]> or <<(Level) = [2]> or <<(Level) = [3]> or <<(Level) = [5]> or >>>> then\n    go to x: (-215) y: (-51)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: (-23)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: (82)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <<(Level) = [7]> or <<(Level) = [9]> or >> then\n    go to x: (-215) y: (6)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif <<(Level) = [10]> or > then\n    go to x: (-215) y: (23)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif <<(Level) = [12]> or > then\n    go to x: (-215) y: (-60)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif <(Level) = [14]> then\n    set y to (-160)\n    set size to (100) %\nend\nif <(Level) = [11]> then\n    go to x: (-215) y: (-60)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif <<(Level) = [13]> or > then\n    go to x: (-215) y: (-40)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nSpawn2\n\ndefine Ground Touch <up?>\nchange [falling? v] by (1)\nif <touching (jump through v)?> then\n    if <<touching (jump through v)?> and <not <up?>>> then\n        set [slope v] to [0]\n        repeat until <<(Slope) > (([abs v] of (Y Velocity) ) + (2))> or <not <touching (jump through v)?>>>\n            change y by (1)\n            change [slope v] by (1)\n        end\n        if <not <touching (jump through v)?>> then\n            change y by ((0) - (round (Slope)))\n            repeat until <not <touching (jump through v)?>>\n                change y by (1)\n                switch costume to (idle v)\n                set [falling? v] to [0]\n                set [y velocity v] to [0]\n            end\n        else\n            if <(Slope) > (([abs v] of (Y Velocity) ) + (2))> then\n                change y by ((0) - (round (Slope)))\n            end\n        end\n    end\nend\n\nif <touching (jump through v)?> then\n    repeat until <not <touching (jump through v)?>>\n        change y by ((([abs v] of (Y Velocity) ) / (Y Velocity)) * (-1))\n    end\n    set [y velocity v] to [0]\nend\n\ndefine Jump\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (jump through v)?>> then\n    set [falling? v] to [6]\n    set [jump v] to [1]\n    if <not <touching (water v)?>> then\n        set [y velocity v] to [12.8]\n    end\n    if <(Falling?) < [7]> then\n        start sound (pick random (27) to (33))\n        wait until <not <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching (jump through v)?>>>\n    end\nend\nchange y by (1)\n\nforever\n    Jump\nend\n\nbroadcast (Animation v)\n\ngo to x: (-215) y: (-51)\n\nwhen flag clicked\nwait (1) seconds\nwait until <(Total Coins Collected) = [25]>\ngo [backward v] (3) layers\nswitch costume to (idle v)\nwait (0) seconds\nset [canmoveplayer v] to [0]\nstart sound [Qualified v]\nbroadcast (Win 1 v)\nrepeat (10)\n    set [ghost v] effect to (100)\n    switch costume to (idle v)\nend\n\nwhen I receive [round 2 v]\nset [canmoveplayer v] to [0]\ngo to x: (-215) y: (-23)\npoint in direction (90)\nshow\nset [ghost v] effect to (0)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\ndefine Respawn\nif <key (r v) pressed?> then\n    broadcast (Particles v)\n    broadcast (Lock v)\n    broadcast (Start Keys v)\n    broadcast (Animation v)\n    broadcast (Reset orb v)\n    broadcast (Next v)\n    start sound [Respawn v]\n    switch costume to (idle v)\n    if <<(Level) = []> or > then\n        broadcast (Reset v)\n    end\n    Respawn Position\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    wait until <not <key (r v) pressed?>>\nend\n\nwhen flag clicked\nforever\n    Respawn\nend\n\ndefine JumpCount\nif <(Level) = [8]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [2]\nend\nif <(Level) = [9]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [3]\nend\nif <(Level) = [10]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [3]\nend\nif <(Level) = [11]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [8]\nend\nif <(Level) = [12]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [9]\nend\nif <(Level) = [13]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [2]\nend\nif <(Level) = [16]> then\n    set [jumps v] to [0]\n    set [totaljumps v] to [999]\nend\n\nset [total coins collected v] to [25]\n\nwhen flag clicked\nwait (1) seconds\nwait until <<touching (coins v)?> and <(Level) = [13]>>\ngo to x: (-215) y: (-44)\nset [ghost v] effect to (100)\nswitch costume to (idle v)\nswitch costume to (idle v)\nset [canmoveplayer v] to [0]\nbroadcast (Win 2 v)\nwait (0) seconds\nset volume to (100) %\nstart sound [Qualified v]\nbroadcast (Hide saw v)\n\nwhen I receive [showp v]\nswitch costume to (idle v)\ngo to x: (-215) y: (-44)\nclear graphic effects\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [totaljumps v] to [9999]\nbroadcast (Rise v)\n\nbroadcast (Next v)\n\nrepeat (10)\n\nset [canmoveplayer v] to [1]\n\nbroadcast (Swich to black v)\nbroadcast (Create Clone v)\nbroadcast (Next v)\nbroadcast (Animation v)\nbroadcast (Start Keys v)\nbroadcast (Lock v)\nbroadcast (Reset orb v)\nbroadcast (Next Level v)\nstart sound [Checkpoint v]\nset size to (100) %\nset [level v] to ((Level) + (1))\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nSpawn Position\nJumpCount\n\nwhen flag clicked\nrepeat until <(Level) = [8]>\n    set [totaljumps v] to [999]\nend\n\nset [touchingslime v] to [1]\nbroadcast (Particles v)\nbroadcast (Lock v)\nbroadcast (Start Keys v)\nbroadcast (Animation v)\nbroadcast (Reset orb v)\nbroadcast (Next v)\nswitch costume to (idle v)\nif <<(Level) = []> or > then\n    broadcast (Reset v)\nend\nJumpCount\nSpawn Position\nRespawn Position\nset [touchingslime v] to [0]\nset size to (100) %\nset [x velocity v] to [0]\nset [y velocity v] to [0]\n\nwhen flag clicked\nset [lost v] to [0]\n\nset [lost v] to [1]\nstart sound [Splash v]\nstart sound (pick random (11) to (16))\nstart sound [Eliminated v]\nchange y by (150)\nset [canmoveplayer v] to [0]\nbroadcast (Level Fail v)\n\nstart sound [Checkpoint v]\n\nwhen flag clicked\nforever\n    set volume to (100) %\nend\n\nwhen I receive [win3 v]\nset volume to (100) %\nstart sound [Qualified v]\n\nstart sound (pick random (11) to (16))\n\nplay sound [3 v] until done\n\nwhen I receive [countdown4 v]\ngo to x: (-215) y: (-37)\npoint in direction (90)\nswitch costume to (idle v)\nclear graphic effects\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset [totaljumps v] to [9999]\nbroadcast (Rise v)\n\ndefine Respawn Position 2\nif  then\n    go to x: (-215) y: (-25)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: (-40)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-215) y: (-32)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif <<(Level) = [18]> or <<(Level) = [19]> or >> then\n    go to x: (-215) y: (-32)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\nif  then\n    go to x: (-158) y: (-32)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\nend\n\ngo to x: (-215) y: (-40)\n\nset [canmoveplayer v] to [1]\n\ndefine Spawn2\nif  then\n    go to x: (-215) y: (-40)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif  then\n    go to x: (-215) y: (-37)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif <<(Level) = [18]> or <<(Level) = [19]> or >> then\n    go to x: (-215) y: (-25)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\nif  then\n    go to x: (-158) y: (-34)\n    point in direction (90)\n    set size to (100) %\n    set [x velocity v] to [0]\n    set [y velocity v] to [0]\n    set [totaljumps v] to [6]\nend\n\nwhen flag clicked\nwait (1) seconds\nwait until <<touching (wincoin v)?> and <(Level) = [20]>>\nset [cheat v] to [1]\nset [win v] to [1]\ngo to x: (-215) y: (-30)\nset [ghost v] effect to (100)\nswitch costume to (idle v)\nswitch costume to (idle v)\nset [canmoveplayer v] to [0]\nbroadcast (Win4 v)\nwait (0) seconds\nset volume to (100) %\nstart sound [Qualified v]\n\ngo to x: (-215) y: (-30)\n\nwhen I receive [play music v]\nset volume to (5) %\nset [canmoveplayer v] to [1]\n\nwhen I receive [animation start v]\nhide\n\n@Level\n\nwhen flag clicked\nhide\n\ngo [backward v] (3) layers\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\nend\n\nwhen I receive [animation start v]\nhide\n\n@Elimination Lava\n\nwhen flag clicked\nhide\n\ngo [backward v] (3) layers\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\n    repeat until <(Level) > [18]>\n        change y by ((0.5) * ([sin v] of (frame) ))\n        change [frame v] by (5)\n    end\nend\n\nwhen I receive [animation start v]\nhide\n\nwhen I receive [lavarise v]\nif <(Level) = [17]> then\n    wait (0) seconds\n    wait until <(CoinsCollected) = [2]>\n    go to [front v] layer\n    set [yv v] to [0.5]\n    repeat until <(y position) > [110]>\n        change [yv v] by (0.05)\n        set size to (20) %\n        change y by (yv)\n        set size to (100) %\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [next v]\nif <(Level) < [19]> then\n    set [yv v] to [-0.5]\n    repeat until <(y position) < [0]>\n        change [yv v] by (-0.05)\n        set size to (20) %\n        change y by (yv)\n        set size to (100) %\n    end\nend\n\nwhen I receive [resetlava v]\ngo to x: (0) y: (0)\n\nwhen I receive [next v]\nwait until <(Level) = [19]>\nwait (0.1) seconds\ngo to x: (0) y: (-40)\nrepeat until <(y position) > [300]>\n    set [yv v] to [0.3]\n    set size to (20) %\n    change y by (yv)\n    set size to (100) %\nend\n\nwhen flag clicked\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [next v]\nwait until <(Level) = [20]>\nwait (0.1) seconds\ngo to x: (0) y: (-40)\nrepeat until <(y position) > [500]>\n    set [yv v] to [0.2]\n    set size to (20) %\n    change y by (yv)\n    set size to (100) %\nend\n\ngo to [front v] layer\n\n@Danger\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\ngo to [back v] layer\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nwait until <(Level) = [9]>\ngo [backward v] (5) layers\n\nwhen I receive [animation start v]\nhide\n\n@Jump Through\n\nwhen flag clicked\nhide\n\ngo [backward v] (3) layers\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nset [showing? v] to [0]\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    if <key (space v) pressed?> then\n        if <(username) = [250119code2]> then\n            if <(Showing?) = [0]> then\n                set [ghost v] effect to (0)\n                set [showing? v] to [1]\n            else\n                set [ghost v] effect to (100)\n                set [showing? v] to [0]\n            end\n        end\n        wait until <not <key (space v) pressed?>>\n    end\nend\n\nwhen I receive [animation start v]\nhide\n\nwhen [space v] key pressed\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\nforever\n    set y to (([sin v] of ((timer) * (100)) ) * (5))\n    set [ghost v] effect to (55)\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\nwait (5) seconds\nrepeat (29)\n    go [forward v] (1) layers\nend\n\ngo [forward v] (10) layers\n\nwhen I receive [animation start v]\nhide\n\n@Saws\n\nwhen flag clicked\nbroadcast (Next Level v)\n\ndefine Clone At X: (x) (y) At Size (size)\ngo to x: (x) y: (y)\nset size to (size) %\ncreate clone of (_myself_ v)\n\nwhen I receive [next level v]\nif  then\n    delete this clone\nend\nif <(Level) = [12]> then\n    Clone At X: [5] [30] At Size [45]\nend\nif <(Level) = [13]> then\n    Clone At X: [198] [-130] At Size [55]\nend\nif <(Level) = [16]> then\n    Clone At X: [43] [60] At Size [55]\nend\n\nwhen I start as a clone\npoint in direction (90)\ngo to [back v] layer\nset [move x v] to [0]\nset [move y v] to [0]\nshow\nif <(Level) = [12]> then\n    go [forward v] (50) layers\nend\nforever\n    turn right (5) degrees\nend\n\nset [move x v] to ((Move X) * (0.9))\nset [move y v] to ((Move Y) * (0.9))\nchange x by (Move X)\nchange y by (Move Y)\nturn right ((Move X) * (2)) degrees\nturn right ((Move Y) * (2)) degrees\n\nClone At X: [0] [0] At Size [100]\n\nwhen I start as a clone\nforever\n    if <<(Level) = [4]> or <<(Level) = [6]> or >> then\n        turn right (5) degrees\n    end\nend\n\nwhen I receive [intro done v]\nif  then\n    delete this clone\nend\n\nforever\n    repeat (38)\n        set [move y v] to [-3]\n    end\n    wait (0.8) seconds\n    repeat (38)\n        set [move y v] to [3]\n    end\n    wait (0.8) seconds\nend\n\nbroadcast (Next Level v)\n\nwhen flag clicked\nwait until <(Level) = [14]>\n\nwhen I receive [hide saw v]\ndelete this clone\n\n@Decoration\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [animation start v]\nhide\n\nwhen flag clicked\n\nset [ghost v] effect to (100)\n\ngo [forward v] (5) layers\n\nwhen flag clicked\n\n\ngo to [back v] layer\n\n@Front Deco\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\nforever\n    switch costume to (Level)\nend\n\ngo to [front v] layer\n\nwhen I receive [animation start v]\nhide\n\ngo to [front v] layer\n\ngo [backward v] (5) layers\n\n@ThumbnailG\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    if <<(LostGame) = [0]> or <(Win) = [1]>> then\nend\n\nwhen I receive [show v]\nclear graphic effects\nstop [all v]\n\ngo [forward v] (5) layers\n\nset [ghost v] effect to (0)\n\nset [ghost v] effect to (100)\n\n@Low Gravity\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\ngo to [back v] layer\ngo to [back v] layer\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    set [ghost v] effect to (30)\nend\n\nwhen I receive [animation start v]\nhide\n\ngo [backward v] (20) layers\n\n@Left\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nset [ghost v] effect to (0)\nset [showing? v] to [1]\n\nset [ghost v] effect to (100)\n\nwhen [space v] key pressed\nif <(username) = [250119code2]> then\n    if <(Showing?) = [0]> then\n        set [ghost v] effect to (0)\n        set [showing? v] to [1]\n    else\n        set [ghost v] effect to (100)\n        set [showing? v] to [0]\n    end\nend\n\n@Right\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\nset [showing? v] to [0]\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    switch costume to (Level)\nend\n\nwhen [space v] key pressed\nif <(username) = [250119code2]> then\n    if <(Showing?) = [0]> then\n        set [ghost v] effect to (0)\n        set [showing? v] to [1]\n    else\n        set [ghost v] effect to (100)\n        set [showing? v] to [0]\n    end\nend\n\n@TITLE\n\nwhen flag clicked\nset [screen v] to [1]\ngo [backward v] (99) layers\nhide\n\nwhen I receive [play scene v]\ngo [forward v] (4) layers\nforever\n    if <(SCREEN) = [1]> then\n        change [titleturn v] by (1)\n    end\n    if <(SCREEN) = [1]> then\n        show\n    else\n        hide\n    end\n    if <(SCREEN) = [0]> then\n        go [backward v] (6) layers\n    end\nend\n\n@Water\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\nforever\n    set y to (([sin v] of ((timer) * (100)) ) * (5))\n    set [ghost v] effect to (55)\n    switch costume to (Level)\nend\n\nwhen I receive [intro done v]\nshow\n\ngo [backward v] (10) layers\n\nrepeat (29)\n\ngo [backward v] (1) layers\n\nwhen I receive [intro done v]\n\ngo [forward v] (1) layers\n\nwhen flag clicked\n\ngo [backward v] (5) layers\nwait until <(Level) = [2]>\ngo [forward v] (10) layers\nwait until <(Level) = [4]>\ngo [backward v] (10) layers\nwait until <(Level) = [6]>\ngo [backward v] (2) layers\n\nwait until <(Level) = [11]>\ngo [forward v] (5) layers\n\nwhen I receive [animation start v]\nhide\n\n@Transitions\n\nwhen I receive [died v]\n\ncreate clone of (_myself_ v)\n\ndefine thing\nswitch costume to (hax v)\nset size to (size) %\nchange size by (((4100) - (size)) / (4))\nset [size v] to (size)\nswitch costume to (thing v)\n\ndefine other thing\nswitch costume to (hax v)\nset size to (size) %\nchange size by (((410) - (size)) / (6))\nset [size v] to (size)\nswitch costume to (weird thing v)\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go to [front v] layer\nend\n\nwhen I start as a clone\nset [transition> v] to [1]\ngo to x: (0) y: (0)\nset size to (0) %\nshow\nset [size v] to [100]\nrepeat until <(size) > [4080]>\n    thing\nend\nset size to (10) %\nset [size v] to [10]\nrepeat until <(size) > [400]>\n    other thing\nend\nhide\nbroadcast (Move v)\nset [transition> v] to [0]\ndelete this clone\n\n@next\n\nwhen I receive [next level v]\n\ngo to [front v] layer\nswitch costume to (pick random (1) to (2))\nset [ghost v] effect to (-100)\ngo to [front v] layer\nshow\ngo to x: (550) y: (0)\nrepeat (20)\n    change x by (((x position) - (0)) / (-5))\nend\nwait (0.5) seconds\nrepeat (20)\n    change x by (((x position) - (-550)) / (-5))\nend\nwait (0) seconds\nset [ghost v] effect to (15)\nwait (0) seconds\nset [ghost v] effect to (40)\ngo to [front v] layer\nwait (0) seconds\nset [ghost v] effect to (75)\nwait (0) seconds\nset [ghost v] effect to (90)\ngo to [front v] layer\nwait (0) seconds\nset [ghost v] effect to (100)\ngo to [front v] layer\n\nstart sound [Next v]\n\nwhen flag clicked\nhide\n\n@Play Button\n\nwhen I receive [play scene v]\nshow\nwait until <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN) = [1]>>>\nstart sound [Selected v]\nwait (0.8) seconds\nbroadcast (Show Intro v)\nset [screen v] to [0]\n\nbroadcast (Transition v)\nbroadcast (Intro Done v)\nbroadcast (Next v)\n\nwhen I receive [play scene v]\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(SCREEN) = [1]> and <<not <(IN) = [1]>> and <not <(IN2) = [1]>>>> then\n            set volume to (100) %\n            start sound [Hover v]\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [play scene v]\nset [screen v] to [1]\nshow\nforever\n    if <(SCREEN) = [1]> then\n        show\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (5))\n        set [brightness v] effect to (5)\n        switch costume to (costume2 v)\n    else\n        change size by (((110) - (size)) / (5))\n        set [brightness v] effect to (0)\n        switch costume to (costume1 v)\n    end\nend\n\nwhen I receive [animation start v]\n\n@Instructions\n\nwhen I receive [play scene v]\nset [in v] to [0]\nshow\nwait until <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN) = [1]>>>\nbroadcast (IN v)\n\nwhen I receive [play scene v]\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(SCREEN) = [1]> and <<not <(IN) = [1]>> and <not <(IN2) = [1]>>>> then\n            set volume to (100) %\n            start sound [Hover v]\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n    end\nend\n\nwhen flag clicked\nset [screen v] to [1]\nhide\n\nwhen I receive [play scene v]\nshow\nforever\n    if <(SCREEN) = [1]> then\n        show\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (5))\n        switch costume to (costume3 v)\n        set [brightness v] effect to (5)\n        if <mouse down?> then\n            if <(IN) = [0]> then\n                broadcast (IN v)\n                set [in v] to [1]\n            end\n        end\n    else\n        switch costume to (costume1 v)\n        change size by (((90) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\n@Credits\n\nwhen I receive [play scene v]\nset [in2 v] to [0]\nshow\nwait until <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN2) = [1]>>>\nbroadcast (IN v)\n\nwhen I receive [play scene v]\nforever\n    if <touching (mouse-pointer v)?> then\n        if <<(SCREEN) = [1]> and <<not <(IN) = [1]>> and <not <(IN2) = [1]>>>> then\n            set volume to (100) %\n            start sound [Hover v]\n            wait until <not <touching (mouse-pointer v)?>>\n        end\n    end\nend\n\nwhen flag clicked\nset [screen v] to [1]\nhide\n\nwhen I receive [play scene v]\nshow\nforever\n    if <(SCREEN) = [1]> then\n        show\n    else\n        hide\n    end\n    if <touching (mouse-pointer v)?> then\n        change size by (((100) - (size)) / (5))\n        switch costume to (costume3 v)\n        set [brightness v] effect to (5)\n        if <mouse down?> then\n            if <(IN2) = [0]> then\n                broadcast (IN2 v)\n                set [in2 v] to [1]\n            end\n        end\n    else\n        switch costume to (costume1 v)\n        change size by (((90) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\n@Transition\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [transition v]\ngo to [front v] layer\nset [ghost v] effect to (0)\nwait (.2) seconds\nrepeat (20)\n    go to [front v] layer\n    change [ghost v] effect by (5)\nend\n\n@CreditsButton\n\nwhen flag clicked\nset [in2 v] to [0]\nhide\n\nwhen I receive [in2 v]\nset [in2 v] to [1]\nif <(SCREEN) = [1]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    go to [front v] layer\n    repeat (20)\n        go to [front v] layer\n        change size by (((100) - (size)) / (5))\n    end\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    hide\n    set [in2 v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(IN2) = [0]> then\n        go [backward v] (5) layers\n    end\nend\n\n@CoinLock\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (2 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [9]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [2]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@title screen\n\nwhen flag clicked\nset [screen v] to [0]\nset [in v] to [0]\nhide\n\nwhen I receive [in v]\nset [in v] to [1]\nif <(SCREEN) = [1]> then\n    show\n    clear graphic effects\n    set size to (10) %\n    go to [front v] layer\n    repeat (20)\n        go to [front v] layer\n        change size by (((100) - (size)) / (5))\n    end\n    wait until <<mouse down?> and <touching (mouse-pointer v)?>>\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    hide\n    set [in v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(IN) = [0]> then\n        go [backward v] (5) layers\n    end\nend\n\n@Particle\n\ndefine Particle (amount)\nrepeat (amount)\n    set [clone id v] to [Particle]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nif <(Clone ID) = [Particle]> then\n    switch costume to (particle v)\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (20)\n    set [a v] to (pick random (-15) to (15))\n    set [b v] to (pick random (-15) to (15))\n    set [c v] to (pick random (-50) to (50))\n    set size to (pick random (100) to (150)) %\n    repeat (25)\n        go to [front v] layer\n        switch costume to (size hack  v)\n        change [ghost v] effect by (0)\n        set size to ((size) * (0.9)) %\n        change x by (a)\n        change y by (b)\n        turn right (c) degrees\n        set [a v] to ((a) * (0.85))\n        set [b v] to ((b) * (0.85))\n        switch costume to (particle v)\n    end\n    delete this clone\nend\n\nwhen I receive [particles v]\n\nif  then\n    delete this clone\nend\ngo to (player v)\nParticle [40]\n\n@Hidden\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    Hidden\nend\n\ngo [forward v] (3) layers\n\nwhen I receive [animation start v]\nhide\n\ndefine Hidden\nif <touching (player v)?> then\n    change [ghost v] effect by (16)\nelse\n    change [ghost v] effect by (-20)\nend\n\n@Hidden2\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    Hidden\nend\n\ngo [forward v] (3) layers\n\nwhen I receive [animation start v]\nhide\n\ndefine Hidden\nif <touching (player v)?> then\n    change [ghost v] effect by (16)\nelse\n    change [ghost v] effect by (-20)\nend\n\n@Water Particles\n\ndefine Particle (amount)\nrepeat (amount)\n    set [clone id v] to [Particle]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nif <(Clone ID) = [Particle]> then\n    switch costume to (particle v)\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (20)\n    set [a v] to (pick random (-15) to (15))\n    set [b v] to (pick random (-15) to (15))\n    set [c v] to (pick random (-50) to (50))\n    set size to (pick random (100) to (150)) %\n    repeat (25)\n        go to [front v] layer\n        switch costume to (size hack  v)\n        change [ghost v] effect by (0)\n        set size to ((size) * (0.9)) %\n        change x by (a)\n        change y by (b)\n        turn right (c) degrees\n        set [a v] to ((a) * (0.8))\n        set [b v] to ((b) * (0.8))\n        switch costume to (particle v)\n    end\n    delete this clone\nend\n\nwhen I receive [water v]\nif  then\n    delete this clone\nend\ngo to (player v)\nParticle [10]\n\nchange [change y v] by (-1)\nchange y by (Change Y)\n\nwhen I start as a clone\nforever\n    change [change y v] by (-0.2)\n    change y by (Change Y)\nend\n\n@Flash\n\nwhen I receive [swich to black v]\nset [brightness v] effect to (88)\nshow\nset [mosaic v] effect to (0)\nset [color v] effect to ((1) / (0))\npoint in direction (90)\nswitch costume to (1 v)\ngo to [front v] layer\ngo [backward v] (2) layers\nrepeat (16)\n    next costume\n    go to [front v] layer\nend\nbroadcast (nextblackswitch v)\n\nwhen I receive [nextblackswitch v]\nwait (0.5) seconds\npoint in direction (-90)\nrepeat (16)\n    switch costume to ((costume [number v]) - (1))\nend\ngo to [back v] layer\n\nwhen I receive [start game v]\nshow\nset [brightness v] effect to (87)\nset [mosaic v] effect to (0)\nset [color v] effect to ((1) / (0))\npoint in direction (90)\nswitch costume to (new piskel - 2021-04-26t12280533 v)\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat (16)\n    switch costume to ((costume [number v]) - (1))\nend\ngo to [back v] layer\nhide\n\nswitch costume to (1 v)\n\nwhen flag clicked\nswitch costume to (1 v)\n\n@Coins\n\ndefine Spin\n\nwhen flag clicked\nset [coinscollected v] to [0]\nhide\n\ndefine Clone At X: (x) (y) At Size: (size) (delay)\nwait (delay) seconds\nset size to (size) %\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen I receive [next v]\nset [coins: frame v] to [0]\nset [coinscollected v] to [0]\nif  then\n    delete this clone\nend\nif <(Level) = [9]> then\n    Clone At X: [34] [141] At Size: [100] [0]\n    Clone At X: [120] [141] At Size: [100] [0.3]\nend\nif <(Level) = [10]> then\n    Clone At X: [-51] [116] At Size: [100] [0]\n    Clone At X: [51] [116] At Size: [100] [0.3]\nend\nif <(Level) = [11]> then\n    Clone At X: [25] [-142] At Size: [100] [0]\n    Clone At X: [-194] [75] At Size: [100] [0]\n    Clone At X: [134] [135] At Size: [100] [0]\nend\nif <(Level) = [12]> then\n    Clone At X: [16] [-136] At Size: [100] [0]\n    Clone At X: [96] [-136] At Size: [100] [0.3]\n    Clone At X: [-64] [150] At Size: [100] [0]\nend\nif <(Level) = [13]> then\n    Clone At X: [110] [-10] At Size: [200] [0]\nend\nif <(Level) = [17]> then\n    Clone At X: [21] [-20] At Size: [100] [0]\n    Clone At X: [-175] [131] At Size: [100] [0]\nend\nif <(Level) = [18]> then\n    Clone At X: [-158] [101] At Size: [100] [0]\n    Clone At X: [-6] [-63] At Size: [100] [0]\nend\nif <(Level) = [19]> then\n    Clone At X: [110] [-60] At Size: [100] [0]\n    Clone At X: [-26] [145] At Size: [100] [0]\nend\nif <(Level) = [20]> then\n    Clone At X: [-40] [-81] At Size: [100] [0]\n    Clone At X: [40] [-81] At Size: [100] [0.4]\n    Clone At X: [189] [125] At Size: [100] [0]\nend\n\nwhen I start as a clone\nshow\nwait until <touching (player v)?>\nchange [coinscollected v] by (1)\nstart sound [Collect v]\nset rotation style [all around v]\nset [coin y v] to [10]\nrepeat (20)\n    change [coin y v] by (-1)\n    change [ghost v] effect by (5)\n    turn right (8) degrees\n    change y by (Coin Y)\nend\n\nSpin\n\nbroadcast (Next v)\n\nwhen [m v] key pressed\nset [mouse v] to (join (round (mouse x)) (join [ ] (round (mouse y))))\n\nwhen I start as a clone\nforever\n    change y by ((0.5) * ([sin v] of (Coins: frame) ))\n    change [coins: frame v] by (5)\nend\n\nshow\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [countdown3 v]\ndelete this clone\n\nClone At X: [-68] [106] At Size: [100] [0]\n\n@Death Particles\n\nwhen I receive [particles v]\nset [last death x v] to (PLAYER X)\nset [last death y v] to (PLAYER Y)\nif  then\n    delete this clone\nend\nParticle [20]\n\nwhen flag clicked\nhide\nset [death v] to [0]\nset [last death x v] to [0]\nset [last death y v] to [0]\nforever\n    set [player x v] to ([x position v] of [player v])\n    set [player y v] to ([y position v] of [player v])\nend\n\ndefine Particle (amount)\nrepeat (amount)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nswitch costume to (1 v)\nset [brightness v] effect to (0)\nset [ghost v] effect to (100)\nset [a v] to (pick random (-15) to (15))\nset [b v] to (pick random (-15) to (15))\nset [c v] to (pick random (-50) to (50))\nset size to (pick random (50) to (300)) %\ngo to x: (LAST DEATH X) y: (LAST DEATH Y)\nrepeat (25)\n    go to [front v] layer\n    switch costume to (sh v)\n    change [ghost v] effect by (-7.5)\n    set size to ((size) * (.9)) %\n    change x by (a)\n    change y by (b)\n    turn right (c) degrees\n    set [a v] to ((a) * (0.9))\n    set [b v] to ((b) * (0.9))\n    switch costume to (pick random (1) to (2))\n    go to [front v] layer\nend\ndelete this clone\n\nwhen I receive [particles v]\n\n@Slippery\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nshow\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    switch costume to (Level)\n    set [ghost v] effect to (100)\nend\n\ngo [backward v] (3) layers\n\nwhen I receive [animation start v]\nhide\n\nwhen I receive [intro done v]\nforever\n    wait until <touching (player v)?>\n    broadcast (Speed Up v)\n    wait until <not <touching (player v)?>>\nend\n\nbroadcast (Speed Up v)\n\n@Stick\n\nwhen flag clicked\nhide\n\ndefine Keyboard controls\nset [stick x v] to <<key (right arrow v) pressed?> or <key (d v) pressed?>>\nchange [stick x v] by ((0) - <<key (left arrow v) pressed?> or <key (a v) pressed?>>)\nset [stick y v] to <<key (up arrow v) pressed?> or <key (w v) pressed?>>\nchange [stick y v] by ((0) - <<key (down arrow v) pressed?> or <key (s v) pressed?>>)\nif <key (space v) pressed?> then\n    change [stick button v] by (1)\nelse\n    set [stick button v] to [0]\nend\n\ndefine Stick Activated\nswitch costume to (ready v)\ncreate clone of (_myself_ v)\nswitch costume to (stick v)\ncreate clone of (_myself_ v)\nswitch costume to (base active v)\nset [stick button v] to []\nrepeat until <(distance to [mouse-pointer v]) > ((size) * (1.5))>\n    Detect Stick Movement\n    Detect Stick Button\nend\nbroadcast (Deactivate stick v)\n\ndefine Detect Stick Movement\nset [stick x v] to (((mouse x) - (x position)) / (range))\nset [stick y v] to (((mouse y) - (y position)) / (range))\nif <([abs v] of (STICK X) ) > [1]> then\n    set [stick x v] to ((STICK X) / ([abs v] of (STICK X) ))\nend\nif <([abs v] of (STICK Y) ) > [1]> then\n    set [stick y v] to ((STICK Y) / ([abs v] of (STICK Y) ))\nend\n\ndefine Detect Stick Button\nif <mouse down?> then\n    if <(STICK BUTTON) > []> then\n        change [stick button v] by (1)\n    end\nelse\n    set [stick button v] to [0]\nend\n\nwhen I receive [deactivate stick v]\ndelete this clone\n\nwhen I start as a clone\nif <(costume [name v]) = [Stick]> then\n    go [forward v] (1) layers\n    set [ghost v] effect to (0)\n    forever\n        go to (stick v)\n        change x by ((STICK X) * (range))\n        change y by ((STICK Y) * (range))\n    end\nend\ngo to x: (170) y: (-110)\nwait until <not <mouse down?>>\nswitch costume to (base active v)\nforever\n    if <mouse down?> then\n        set [ghost v] effect to (25)\n    else\n        set [ghost v] effect to (75)\n    end\nend\n\nwhen I receive [intro done v]\nwait (1) seconds\nhide\nwait until <mouse down?>\nshow\ngo to [front v] layer\nset size to (80) %\nset [ghost v] effect to (80)\nset [range v] to ((size) / (2.5))\nforever\n    switch costume to (base v)\n    go to x: (-170) y: (-110)\n    repeat until <not <mouse down?>>\n        Keyboard controls\n    end\n    repeat until <mouse down?>\n        Keyboard controls\n    end\n    if <(distance to [mouse-pointer v]) < (size)> then\n        Stick Activated\n    end\nend\n\n\n\nwhen flag clicked\nforever\n    Keyboard controls\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\n@How To Play\n\nwhen flag clicked\nhide\nset [win v] to [0]\n\nwhen I receive [show intro v]\nswitch costume to (1 v)\nshow\nset [brightness v] effect to (100)\nstart sound [Round Reveal 11s v]\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nwait (11) seconds\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nbroadcast (Countdown 1 v)\nbroadcast (Intro Done v)\nhide\n\nwhen I receive [round 2 v]\ngo [forward v] (5) layers\nswitch costume to (3 v)\nshow\nset [brightness v] effect to (100)\nstart sound [Round Reveal 11s v]\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nwait (11) seconds\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nbroadcast (Countdown2 v)\nhide\nwait (1) seconds\n\nbroadcast (Round 4 v)\n\nwhen I receive [round 3 v]\nswitch costume to (4 v)\nshow\ngo to [front v] layer\nset [brightness v] effect to (100)\nstart sound [Round Reveal 11s v]\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nwait (11) seconds\nrepeat (10)\n    go to [front v] layer\n    change [brightness v] effect by (10)\nend\nbroadcast (Countdown3 v)\ngo to [front v] layer\nbroadcast (ShowP v)\nhide\nwait (1) seconds\n\nwhen I receive [round 4 v]\nswitch costume to (5 v)\nshow\ngo to [front v] layer\nset [brightness v] effect to (100)\nstart sound [Round Reveal 11s v]\nrepeat (20)\n    change [brightness v] effect by (-5)\nend\nwait (11) seconds\nrepeat (10)\n    go to [front v] layer\n    change [brightness v] effect by (10)\nend\nbroadcast (Countdown4 v)\ngo to [front v] layer\nhide\nwait (1) seconds\n\nbroadcast (Countdown4 v)\n\n@Countdown\n\nwhen I receive [countdown 1 v]\nwait (1) seconds\npoint in direction (90)\nset [ghost v] effect to (0)\nset size to (100) %\nshow\nswitch costume to (3 v)\nwait (0.5) seconds\nrepeat (3)\n    repeat (10)\n        change size by (-10)\n    end\n    next costume\n    repeat (10)\n        change size by (10)\n    end\n    wait (0.5) seconds\nend\nset [music# v] to ((Music#) + (1))\nbroadcast (Play Music v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [canmoveplayer v] to [1]\n\nwhen flag clicked\nset [music# v] to [0]\ngo to x: (0) y: (50)\nhide\n\nwhen I receive [countdown 1 v]\nwait (1) seconds\nplay sound [Countdown v] until done\nstart sound [Go v]\nset [moving? v] to [1]\n\nset [music# v] to ((Music#) + (1))\nbroadcast (Play Music v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [canmoveplayer v] to [1]\n\nwhen I receive [countdown2 v]\nwait (1) seconds\npoint in direction (90)\nset [ghost v] effect to (0)\nset size to (100) %\nshow\nswitch costume to (3 v)\nwait (0.5) seconds\nrepeat (3)\n    repeat (10)\n        change size by (-10)\n    end\n    next costume\n    repeat (10)\n        change size by (10)\n    end\n    wait (0.5) seconds\nend\nset [music# v] to ((Music#) + (1))\nbroadcast (Play Music v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [canmoveplayer v] to [1]\n\nwhen I receive [countdown3 v]\nwait (1) seconds\npoint in direction (90)\nset [ghost v] effect to (0)\nset size to (100) %\nshow\nswitch costume to (3 v)\nwait (0.5) seconds\nrepeat (3)\n    repeat (10)\n        change size by (-10)\n    end\n    next costume\n    repeat (10)\n        change size by (10)\n    end\n    wait (0.5) seconds\nend\nset [music# v] to ((Music#) + (1))\nbroadcast (Play Music v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (Shots1 v)\nset [canmoveplayer v] to [1]\n\nwhen I receive [countdown2 v]\nwait (1) seconds\nplay sound [Countdown v] until done\nstart sound [Go v]\nset [moving? v] to [1]\n\nwhen I receive [countdown3 v]\nwait (1) seconds\nplay sound [Countdown v] until done\nstart sound [Go v]\nset [moving? v] to [1]\n\nbroadcast (Shots1 v)\n\nwhen I receive [countdown4 v]\nwait (1) seconds\npoint in direction (90)\nset [ghost v] effect to (0)\nset size to (100) %\nshow\nswitch costume to (3 v)\nwait (0.5) seconds\nrepeat (3)\n    repeat (10)\n        change size by (-10)\n    end\n    next costume\n    repeat (10)\n        change size by (10)\n    end\n    wait (0.5) seconds\nend\nset [music# v] to ((Music#) + (1))\nbroadcast (Play Music v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [canmoveplayer v] to [1]\n\nwhen I receive [countdown4 v]\nwait (1) seconds\nplay sound [Countdown v] until done\nstart sound [Go v]\nset [moving? v] to [1]\n\n@Level 1 Coins\n\ndefine Spin\nset [coin y v] to [10]\nrepeat (20)\n    change [coin y v] by (-1)\n    change [ghost v] effect by (5)\n    turn right (8) degrees\n    change y by (Coin Y)\nend\n\nwhen flag clicked\nset [total coins collected v] to [0]\nset [can move? v] to [1]\nhide variable [counter collect v]\nset [counter collect v] to (join [0] (join [ of ] [25]))\nhide\n\ndefine Clone At X: (x) (y) At Size: (size)\nset size to (size) %\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen I receive [intro done v]\nif  then\n    delete this clone\nend\nshow variable [counter collect v]\nwait until <(Level) = [1]>\nClone At X: [-94] [5] At Size: [100]\nClone At X: [-54] [5] At Size: [100]\nClone At X: [-14] [5] At Size: [100]\nClone At X: [162] [-20] At Size: [100]\nwait until <(Level) = [2]>\nClone At X: [-80] [-60] At Size: [100]\nClone At X: [-40] [-60] At Size: [100]\nwait until <(Level) = [3]>\nClone At X: [-55] [10] At Size: [100]\nClone At X: [-20] [10] At Size: [100]\nClone At X: [60] [47] At Size: [100]\nClone At X: [100] [47] At Size: [100]\nClone At X: [140] [47] At Size: [100]\nwait until <(Level) = [4]>\nClone At X: [-48] [-149] At Size: [100]\nClone At X: [-8] [-149] At Size: [100]\nClone At X: [-210] [0] At Size: [100]\nClone At X: [89] [121] At Size: [100]\nClone At X: [129] [121] At Size: [100]\nClone At X: [169] [121] At Size: [100]\nwait until <(Level) = [5]>\nClone At X: [-76] [6] At Size: [100]\nClone At X: [-36] [6] At Size: [100]\nwait until <(Level) = [6]>\nClone At X: [-11] [79] At Size: [100]\nClone At X: [29] [79] At Size: [100]\nClone At X: [69] [79] At Size: [100]\nClone At X: [-60] [-141] At Size: [100]\nClone At X: [174] [-136] At Size: [100]\nwait until <(Level) = [7]>\nClone At X: [-137] [-90] At Size: [100]\nClone At X: [-68] [106] At Size: [100]\n\nwhen I start as a clone\nshow\nswitch costume to (coin v)\nclear graphic effects\nwait until <touching (player v)?>\nchange [total coins collected v] by (1)\nset [counter collect v] to (join (Total Coins Collected) (join [ of ] [25]))\nstart sound [Collect v]\nset rotation style [all around v]\nrepeat (4)\n    change [ghost v] effect by (25)\n    change size by (((10) - (size)) / (4))\nend\n\nset size to (110) %\nswitch costume to (+1 v)\nrepeat (4)\n    change [ghost v] effect by (-25)\n    change size by (((90) - (size)) / (6))\n    change y by (1)\nend\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    change y by ((0.5) * ([sin v] of (Coins: frame) ))\n    change [coins: frame v] by (5)\nend\n\nwhen [m v] key pressed\nset [mouse v] to (join (round (mouse x)) (join [ ] (round (mouse y))))\n\nSpin\n\nbroadcast (Next v)\n\nwhen flag clicked\nforever\n    set [can move? v] to [1]\nend\n\nClone At X: [-94] [5] At Size: [100]\nClone At X: [-54] [5] At Size: [100]\nClone At X: [-14] [5] At Size: [100]\nClone At X: [158] [-20] At Size: [100]\n\nshow variable [counter collect v]\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    delete this clone\nend\n\nClone At X: [-76] [6] At Size: [100]\nClone At X: [-36] [6] At Size: [100]\n\nClone At X: [-137] [-90] At Size: [100]\n\nset [counter collect v] to (join [25] (join [ of ] [25]))\n\nhide variable [counter collect v]\n\nwhen I start as a clone\nforever\n    if <(Level) > [8]> then\n        hide\n    end\nend\n\nClone At X: [-68] [106] At Size: [100] [0]\n\n@Conveyor Belt 1\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to x: (-20) y: (0)\nforever\n    go to x: (-20) y: (0)\n    if <(Level) = [2]> then\n        show\n        next costume\n    else\n        hide\n    end\nend\n\ngo [forward v] (3) layers\n\n@Button1\n\nwhen flag clicked\nwait until <(Level) = [2]>\nset size to (90) %\nswitch costume to (1 v)\nwait until <touching (player v)?>\nbroadcast (Pressed1 v)\nstart sound [Press v]\nswitch costume to (2 v)\n\nwhen flag clicked\nwait until <(Level) = [2]>\ngo to x: (-130) y: (-50)\nshow\nwait until <(Level) = [3]>\nshow\ngo to x: (-71) y: (-75)\nwait until <(Level) = [4]>\nhide\nwait until <(Level) = [7]>\ngo to x: (120) y: (56)\nshow\nwait until <(Level) = [8]>\nhide\n\nwhen flag clicked\nwait until <(Level) = [3]>\nset size to (90) %\nswitch costume to (1 v)\nwait until <touching (player v)?>\nbroadcast (Pressed1 v)\nstart sound [Press v]\nswitch costume to (2 v)\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nwait until <(Level) = [7]>\nset size to (90) %\nswitch costume to (1 v)\nwait until <touching (player v)?>\nbroadcast (Pressed1 v)\nstart sound [Press v]\nswitch costume to (2 v)\n\ngo [backward v] (29) layers\n\n@Moving Saws\n\ndefine Smooth Glide To X: (x) Y: (y) Size: (size) Dir: (dir) & Speed: (speed) || Costume: (costume)\nclear graphic effects\nrepeat until <<<(x position) = (x)> and <(y position) = (y)>> and <<(size) = (size)> and <(round (direction)) = (dir)>>>\n    switch costume to (pos hack v)\n    change x by (((x) - (x position)) / (speed))\n    change y by (((y) - (y position)) / (speed))\n    turn right (((dir) - (direction)) / (speed)) degrees\n    switch costume to (costume)\n    change size by (((size) - (size)) / (speed))\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\nbroadcast (Next Level v)\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 level v]\nif  then\n    delete this clone\nend\nif <(Level) = [2]> then\n    Clone At X: [37] [-34] At Size [60]\nend\nif <(Level) = [3]> then\n    Clone At X: [200] [135] At Size [40]\nend\nif <(Level) = [4]> then\n    Clone At X: [184] [-129] At Size [60]\nend\nif <(Level) = [7]> then\n    Clone At X: [-40] [-60] At Size [60]\nend\n\nwhen I receive [intro done v]\nif  then\n    delete this clone\nend\n\nwhen I start as a clone\nclear graphic effects\nshow\ngo [backward v] (15) layers\nforever\n    turn right (5) degrees\nend\n\nwhen [space v] key pressed\n\ndelete this clone\n\nwhen I receive [pressed1 v]\nif <(Level) = [2]> then\n    Smooth Glide To X: [37] Y: [-250] Size: [60] Dir: [] & Speed: [30] || Costume: [1]\nelse\n    if <(Level) = [3]> then\n        Smooth Glide To X: [200] Y: [-250] Size: [60] Dir: [] & Speed: [30] || Costume: [1]\n    else\n        if <(Level) = [7]> then\n            Smooth Glide To X: [-40] Y: [-250] Size: [60] Dir: [] & Speed: [30] || Costume: [1]\n        end\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    if <(y position) < [-200]> then\n        change [ghost v] effect by (16)\n    end\nend\n\nClone At X: [200] [135] At Size [40]\n\nClone At X: [-40] [-60] At Size [60]\n\nClone At X: [37] [-34] At Size [60]\n\nwhen flag clicked\nwait until <(Level) = [17]>\nwait until <(CoinsCollected) = [2]>\n\nbroadcast (Next Level v)\n\n@Conveyor Belt 2\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [3]> then\n        show\n        next costume\n    else\n        hide\n    end\nend\n\n@Conveyor Belt 3\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [5]> then\n        show\n        next costume\n    else\n        hide\n    end\nend\n\n@Message\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [intro done v]\n\nwait until <(Level) = [7]>\nset [can move? v] to [0]\nwait (0.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-16)\nend\nwait (0.8) seconds\nwait until <<key (any v) pressed?> or <mouse down?>>\nset [can move? v] to [1]\nrepeat (10)\n    change [ghost v] effect by (16)\nend\n\nwhen I receive [win 1 v]\nswitch costume to (level 1 win v)\nset [can move? v] to [0]\nhide variable [counter collect v]\nwait (0.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-16)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (16)\nend\nwait (0.5) seconds\nbroadcast (Round 2 v)\nbroadcast (Next Level v)\n\nswitch costume to (untitled drawing \(3\) v)\n\nwhen I receive [win 2 v]\nswitch costume to (level 2 win v)\ngo to [front v] layer\nset [can move? v] to [0]\nhide variable [counter collect v]\nwait (0.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-16)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (16)\nend\nwait (0.5) seconds\nbroadcast (Round 3 v)\n\nwhen I receive [win3 v]\nset [canmoveplayer v] to [0]\nswitch costume to (level 3 win v)\ngo to [front v] layer\nset [can move? v] to [0]\nhide variable [counter collect v]\nwait (0.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-16)\nend\nwait (5) seconds\nrepeat (10)\n    change [ghost v] effect by (16)\nend\nwait (0.5) seconds\nbroadcast (Round 4 v)\n\nset [win v] to [1]\nset [brightness v] effect to (100)\nnext costume\nrepeat (10)\n    go to [front v] layer\n    change [brightness v] effect by (-10)\nend\n\nstop [all v]\n\nbroadcast (Win3 v)\n\nwait (2) seconds\n\nrepeat (10)\n    change [ghost v] effect by (16)\nend\n\nwhen I receive [win4 v]\nset [canmoveplayer v] to [0]\nswitch costume to (level 4 win v)\ngo to [front v] layer\nset [can move? v] to [0]\nhide variable [counter collect v]\nwait (0.5) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-16)\nend\nwait (5) seconds\nset [brightness v] effect to (100)\nswitch costume to (game complete v)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\ngo to [front v] layer\n\nstop [all v]\n\n@Timer\n\nwhen I start as a clone\ngo [forward v] (5) layers\nshow\ngo to [front v] layer\nforever\n    show\n    set size to (120) %\n    go to x: (((Timer: Clone #) * (20)) - (-195)) y: (142)\n    if <(length of (round (TIME))) < (Timer: Clone #)> then\n        hide\n    else\n        show\n        switch costume to (letter (Timer: Clone #) of (TIME))\n    end\nend\n\nwhen I receive [show intro v]\nset [timer: clone # v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [timer: clone # v] by (1)\nend\nhide\n\nwhen I receive [show intro v]\nset [time v] to [9]\nwait (1) seconds\nrepeat (9)\n    wait (1) seconds\n    change [time v] by (-1)\nend\n\nwhen I receive [countdown 1 v]\ndelete this clone\n\nwhen I receive [round 2 v]\nset [level v] to [8]\nset [time v] to [9]\nwait (1) seconds\nrepeat (9)\n    wait (1) seconds\n    change [time v] by (-1)\nend\n\nwhen I receive [round 2 v]\nset [timer: clone # v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [timer: clone # v] by (1)\nend\nhide\n\nwhen I receive [round 3 v]\nset [level v] to [14]\nset [time v] to [9]\nwait (1) seconds\nrepeat (9)\n    wait (1) seconds\n    change [time v] by (-1)\nend\n\nwhen I receive [round 3 v]\nset [timer: clone # v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [timer: clone # v] by (1)\nend\nhide\n\nwhen I receive [countdown2 v]\ndelete this clone\n\nwhen I receive [countdown3 v]\ndelete this clone\n\nwhen I receive [round 4 v]\nset [level v] to [15]\nset [time v] to [9]\nwait (1) seconds\nrepeat (9)\n    wait (1) seconds\n    change [time v] by (-1)\nend\n\nwhen I receive [round 4 v]\nset [timer: clone # v] to [1]\nrepeat (30)\n    create clone of (_myself_ v)\n    change [timer: clone # v] by (1)\nend\nhide\n\nwhen I receive [countdown4 v]\ndelete this clone\n\n@Conveyor Belt 4\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [8]> then\n        show\n        next costume\n    else\n        hide\n    end\nend\n\n@Particles 1\n\nwhen I start as a clone\nshow\nchange size by (pick random (1) to (15))\nchange [color v] effect by (pick random (0) to (3))\nset [ghost v] effect to (pick random (10) to (20))\ngo to x: (pick random (-240) to (240)) y: (180)\nglide (pick random (9) to (10)) secs to x: (pick random (-240) to (240)) y: (-180)\ndelete this clone\n\nwhen I receive [intro done v]\nwait (0.5) seconds\nhide\ngo [backward v] (1) layers\nforever\n    if <(Total Coins Collected) < [25]> then\n        create clone of (_myself_ v)\n        wait (0.3) seconds\n    end\nend\n\ndefine Snow\nSnow\n\nwhen I start as a clone\nforever\n    go to [back v] layer\nend\n\nwhen I receive [intro done v]\nwait until <(Total Coins Collected) > [24]>\nwait (1) seconds\ndelete this clone\n\nwhen [space v] key pressed\ndelete this clone\n\nset [total coins collected v] to [24]\n\n@JumpCounter\n\nwhen flag clicked\ngo [forward v] (10) layers\nhide\nhide variable [jumpcounter v]\nwait (1) seconds\nwait until <(Level) = [8]>\nwait (17) seconds\ngo to x: (0) y: (0)\nshow\nshow variable [jumpcounter v]\nset [jumps v] to [0]\nset [totaljumps v] to [2]\nforever\n    set [jumpcounter v] to (join (Jumps) (join [/] (TotalJumps)))\n    if <(Jumps) = (TotalJumps)> then\n        switch costume to (2 v)\n    else\n        switch costume to (1 v)\n    end\nend\n\nwhen I receive [shake v]\nset [brightness v] effect to (100)\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nset [jumps v] to [0]\nset [totaljumps v] to [2]\n\nrepeat (5)\n    go to x: (pick random (-2) to (2)) y: (pick random (-2) to (2))\nend\ngo to x: (0) y: (0)\n\nwhen I receive [win 2 v]\nhide\nhide variable [jumpcounter v]\n\n@Conveyor Belt 5\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (2)\nforever\n    go to x: (0) y: (2)\n    if <(Level) = [9]> then\n        show\n        next costume\n    else\n        hide\n    end\nend\n\n@Conveyor Belt 6\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to x: (0) y: (2)\nforever\n    go to x: (0) y: (2)\n    if <(Level) = [11]> then\n        go to [back v] layer\n        show\n        next costume\n    else\n        hide\n    end\nend\n\n@CoinLock2\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (1 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [10]>\ngo to x: (0) y: (0)\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [2]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nshow\nclear graphic effects\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@CoinLock3\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (2 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [11]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [3]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@Button2\n\nwhen flag clicked\nset [pressed2 v] to [0]\nwait until <(Level) = [11]>\nset size to (90) %\nswitch costume to (1 v)\nwait until <touching (player v)?>\nbroadcast (Pressed2 v)\nset [pressed2 v] to [1]\nstart sound [Press v]\nswitch costume to (2 v)\n\nwhen flag clicked\nset [pressed2 v] to [0]\nwait until <(Level) = [11]>\ngo to x: (144) y: (-120)\nshow\nwait until <(Level) = [12]>\ngo to x: (56) y: (-145)\nshow\nwait until <(Level) = [13]>\nhide\n\nwhen flag clicked\nhide\n\ngo [forward v] (5) layers\n\ngo [backward v] (5) layers\n\nwhen flag clicked\nwait until <(Level) = [12]>\nset [pressed2 v] to [0]\nset size to (90) %\nswitch costume to (1 v)\nwait until <touching (player v)?>\nbroadcast (Pressed2 v)\nset [pressed2 v] to [1]\nstart sound [Press v]\nswitch costume to (2 v)\n\n@SpawnedLevel\n\nwhen flag clicked\nhide\n\ngo [backward v] (3) layers\n\nwhen I receive [intro done v]\nhide\ngo to x: (0) y: (0)\nforever\n    switch costume to (Level)\nend\n\nwhen I receive [animation start v]\nhide\n\nwhen flag clicked\nhide\nwait until <(Level) = [11]>\nwait until <(Pressed2) = [1]>\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [pressed2 v]\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    change y by (3)\nend\n\nwhen flag clicked\nwait until <(Level) = [12]>\nrepeat (10)\n    hide\nend\nwait until <(Pressed2) = [1]>\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (100)\n\n@CoinLock4\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (1 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [12]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [3]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nclear graphic effects\nswitch costume to (1 v)\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@Slime\n\nwhen flag clicked\ngo to x: (0) y: (0)\nwait until <(Level) = [14]>\nshow\nrepeat (2)\n    set size to (20) %\n    change y by (-20)\n    set size to (100) %\nend\n\nwhen I receive [rise slime v]\nshow\nset [ghost v] effect to (0)\nset [yv v] to [0.4]\nrepeat until <(y position) > [163]>\n    change [yv v] by (0.005)\n    set size to (20) %\n    change y by (yv)\n    set size to (100) %\nend\n\ndefine Go off Screen\nrepeat until <(y position) < [-15]>\n    set size to (20) %\n    change y by (-20)\n    set size to (100) %\nend\n\nwhen I receive [next v]\nif <(Level) > [13]> then\n    show\n    Go off Screen\nend\n\nwait (0.1) seconds\nbroadcast (Rise Slime v)\n\nwhen flag clicked\nhide\n\nGo off Screen\n\nbroadcast (Rise Slime v)\n\ndefine Fall\nset [yv v] to [-0.65]\nrepeat until <(y position) < [-20]>\n    change [yv v] by (-0.1)\n    set size to (20) %\n    change y by (yv)\n    set size to (100) %\nend\n\nwhen I receive [fall v]\nFall\n\nFall\n\n@Tank\n\nwhen flag clicked\nhide\n\nwhen I receive [countdown3 v]\npoint in direction (90)\nset [speed x v] to [0]\nset [speed y v] to [0]\nforever\n    switch costume to (hitbox v)\n    set rotation style [don't rotate v]\n    set [speed x v] to [0]\n    set [speed y v] to [0]\n    change x by (speed x)\n    if <touching (level v)?> then\n        set [speed x v] to ((0) - (speed x))\n        change x by (speed x)\n    end\n    change y by (speed y)\n    if <touching (level v)?> then\n        set [speed y v] to ((0) - (speed y))\n        change y by (speed y)\n    end\n    switch costume to (tank v)\n    set rotation style [all around v]\nend\n\nwhen I receive [shots1 v]\nbroadcast (Count v)\npoint in direction (90)\nset volume to (100) %\nstart sound [Shot v]\nrepeat (2)\n    create clone of (greencandy v)\nend\nrepeat (3)\n    create clone of (purplecandy v)\nend\nrepeat (1)\n    create clone of (bluecandy v)\nend\n\nwhen I receive [begin round 5 v]\nhide\n\nwhen [d v] key pressed\n\ngo to x: (-200) y: (130)\n\nbroadcast (Shots1 v)\n\nrepeat (2)\n    create clone of (greencandy v)\nend\nrepeat (3)\n    create clone of (purplecandy v)\nend\nrepeat (1)\n    create clone of (bluecandy v)\nend\nrepeat (4)\n    create clone of (red v)\nend\n\nwhen I receive [shots2 v]\nbroadcast (Count2 v)\npoint in direction (90)\nset volume to (100) %\nstart sound [Shot v]\nrepeat (4)\n    create clone of (greencandy v)\nend\nrepeat (2)\n    create clone of (purplecandy v)\nend\nrepeat (3)\n    create clone of (bluecandy v)\nend\n\nwhen I receive [shots3 v]\nbroadcast (Count3 v)\npoint in direction (90)\nset volume to (100) %\nstart sound [Shot v]\nrepeat (1)\n    create clone of (greencandy v)\nend\nrepeat (2)\n    create clone of (purplecandy v)\nend\nrepeat (3)\n    create clone of (goldcandy v)\nend\nrepeat (4)\n    create clone of (bluecandy v)\nend\n\nwhen I receive [shots4 v]\nbroadcast (Count4 v)\npoint in direction (90)\nset volume to (100) %\nstart sound [Shot v]\nrepeat (3)\n    create clone of (greencandy v)\nend\nrepeat (1)\n    create clone of (purplecandy v)\nend\nrepeat (4)\n    create clone of (goldcandy v)\nend\n\n@Tank2\n\nwhen flag clicked\nhide\n\nwhen I receive [countdown3 v]\npoint in direction (-90)\nset [speed x v] to [0]\nset [speed y v] to [0]\nforever\n    switch costume to (hitbox v)\n    set rotation style [don't rotate v]\n    set [speed x v] to [0]\n    set [speed y v] to [0]\n    change x by (speed x)\n    if <touching (level v)?> then\n        set [speed x v] to ((0) - (speed x))\n        change x by (speed x)\n    end\n    change y by (speed y)\n    if <touching (level v)?> then\n        set [speed y v] to ((0) - (speed y))\n        change y by (speed y)\n    end\n    switch costume to (tank v)\n    set rotation style [all around v]\nend\n\nwhen I receive [begin round 5 v]\nhide\n\n@GreenCandy\n\nwhen I start as a clone\nset size to (130) %\nset [tank# v] to (pick random (1) to (2))\nif <(tank#) = [1]> then\n    go to (tank v)\n    point in direction ([direction v] of [tank v])\nelse\n    go to (tank2 v)\n    point in direction ([direction v] of [tank2 v])\nend\nmove (10) steps\nshow\nclear graphic effects\nset [speed x v] to ((pick random (2.0) to (5.0)) * ([sin v] of (direction) ))\nset [speed y v] to ((pick random (2.0) to (5.0)) * ([cos v] of (direction) ))\nrepeat until <touching (slime v)?>\n    Tick\nend\nrepeat (150)\n    Tick\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Tick\nswitch costume to (ball v)\nchange [speed y v] by (-0.5)\nchange x by (speed x)\nchange y by (speed y)\nif <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>> then\n    stop [this script v]\nend\nset [count v] to [0]\nrepeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n    change x by ((speed x) * (-0.1))\n    change y by ((speed y) * (-0.1))\n    change [count v] by (1)\n    if <(count) > [20]> then\n        delete this clone\n    end\nend\nFind Normal\nBounce ([sin v] of (dir) ) ([cos v] of (dir) )\nswitch costume to (ball v)\nrepeat (10)\n    change x by ((0.5) * ([sin v] of (dir) ))\n    change y by ((0.5) * ([cos v] of (dir) ))\n    if <not <<touching (level v)?> or <touching (_edge_ v)?>>> then\n        stop [this script v]\n    end\nend\nRotate [15]\ndelete this clone\n\ndefine Find Normal\nswitch costume to (normal v)\nset [dir v] to [0]\npoint in direction (dir)\nif <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>> then\n    repeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n        Rotate [15]\n    end\n    set [dir start v] to ((dir) - (15))\nelse\n    repeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n        Rotate [-15]\n    end\n    set [dir start v] to (dir)\n    set [dir v] to [0]\n    point in direction (dir)\nend\nrepeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n    Rotate [15]\nend\nset [dir v] to (((dir) + (dir Start)) / (2))\n\ndefine Rotate (by)\nchange [dir v] by (by)\npoint in direction (dir)\n\ndefine Bounce (nx) (ny)\nset [dot product v] to (((speed x) * (nx)) + ((speed y) * (ny)))\nchange [speed x v] by ((-1.6) * ((nx) * (dot product)))\nchange [speed y v] by ((-1.6) * ((ny) * (dot product)))\n\nif <([abs v] of (dir) ) > [720]> then\n    delete this clone\nend\n\n@BlueCandy\n\nwhen I start as a clone\nset size to (130) %\nset [tank# v] to (pick random (1) to (2))\nif <(tank#) = [1]> then\n    go to (tank v)\n    point in direction ([direction v] of [tank v])\nelse\n    go to (tank2 v)\n    point in direction ([direction v] of [tank2 v])\nend\nmove (10) steps\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nclear graphic effects\nset [speed x v] to ((pick random (1.0) to (2.0)) * ([sin v] of (direction) ))\nset [speed y v] to ((pick random (1.0) to (2.0)) * ([cos v] of (direction) ))\nrepeat until <touching (slime v)?>\n    Tick\nend\nrepeat (150)\n    Tick\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Tick\nswitch costume to (ball v)\nchange [speed y v] by (-0.5)\nchange x by (speed x)\nchange y by (speed y)\nif <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>> then\n    stop [this script v]\nend\nset [count v] to [0]\nrepeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n    change x by ((speed x) * (-0.1))\n    change y by ((speed y) * (-0.1))\n    change [count v] by (1)\n    if <(count) > [20]> then\n        delete this clone\n    end\nend\nFind Normal\nBounce ([sin v] of (dir) ) ([cos v] of (dir) )\nswitch costume to (ball v)\nrepeat (10)\n    change x by ((0.5) * ([sin v] of (dir) ))\n    change y by ((0.5) * ([cos v] of (dir) ))\n    if <not <<touching (level v)?> or <touching (_edge_ v)?>>> then\n        stop [this script v]\n    end\nend\ndelete this clone\n\ndefine Find Normal\nswitch costume to (normal v)\nset [dir v] to [0]\npoint in direction (dir)\nif <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>> then\n    repeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n        Rotate [15]\n    end\n    set [dir start v] to ((dir) - (15))\nelse\n    repeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n        Rotate [-15]\n    end\n    set [dir start v] to (dir)\n    set [dir v] to [0]\n    point in direction (dir)\nend\nrepeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n    Rotate [15]\nend\nset [dir v] to (((dir) + (dir Start)) / (2))\n\ndefine Rotate (by)\nchange [dir v] by (by)\npoint in direction (dir)\nif <([abs v] of (dir) ) > [720]> then\n    delete this clone\nend\n\ndefine Bounce (nx) (ny)\nset [dot product v] to (((speed x) * (nx)) + ((speed y) * (ny)))\nchange [speed x v] by ((-1.6) * ((nx) * (dot product)))\nchange [speed y v] by ((-1.6) * ((ny) * (dot product)))\n\nset [tank# v] to (pick random (1) to (2))\nif <(tank#) = [1]> then\n    go to (tank v)\n    point in direction ([direction v] of [tank v])\nelse\n    go to (tank2 v)\n    point in direction ([direction v] of [tank2 v])\nend\n\n@PurpleCandy\n\nwhen I start as a clone\nset size to (130) %\nset [tank# v] to (pick random (1) to (2))\nif <(tank#) = [1]> then\n    go to (tank v)\n    point in direction ([direction v] of [tank v])\nelse\n    go to (tank2 v)\n    point in direction ([direction v] of [tank2 v])\nend\nmove (10) steps\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nclear graphic effects\nset [speed x v] to ((pick random (3.0) to (6.5)) * ([sin v] of (direction) ))\nset [speed y v] to ((pick random (3.0) to (6.5)) * ([cos v] of (direction) ))\nrepeat until <touching (slime v)?>\n    Tick\nend\nrepeat (150)\n    Tick\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Tick\nswitch costume to (ball v)\nchange [speed y v] by (-0.5)\nchange x by (speed x)\nchange y by (speed y)\nif <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>> then\n    stop [this script v]\nend\nset [count v] to [0]\nrepeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n    change x by ((speed x) * (-0.1))\n    change y by ((speed y) * (-0.1))\n    change [count v] by (1)\n    if <(count) > [20]> then\n        delete this clone\n    end\nend\nFind Normal\nBounce ([sin v] of (dir) ) ([cos v] of (dir) )\nswitch costume to (ball v)\nrepeat (10)\n    change x by ((0.5) * ([sin v] of (dir) ))\n    change y by ((0.5) * ([cos v] of (dir) ))\n    if <not <<touching (level v)?> or <touching (_edge_ v)?>>> then\n        stop [this script v]\n    end\nend\ndelete this clone\n\ndefine Find Normal\nswitch costume to (normal v)\nset [dir v] to [0]\npoint in direction (dir)\nif <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>> then\n    repeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n        Rotate [15]\n    end\n    set [dir start v] to ((dir) - (15))\nelse\n    repeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n        Rotate [-15]\n    end\n    set [dir start v] to (dir)\n    set [dir v] to [0]\n    point in direction (dir)\nend\nrepeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n    Rotate [15]\nend\nset [dir v] to (((dir) + (dir Start)) / (2))\n\ndefine Rotate (by)\nchange [dir v] by (by)\npoint in direction (dir)\nif <([abs v] of (dir) ) > [720]> then\n    delete this clone\nend\n\ndefine Bounce (nx) (ny)\nset [dot product v] to (((speed x) * (nx)) + ((speed y) * (ny)))\nchange [speed x v] by ((-1.6) * ((nx) * (dot product)))\nchange [speed y v] by ((-1.6) * ((ny) * (dot product)))\n\n@GoldCandy\n\nwhen I start as a clone\nset size to (130) %\nset [tank# v] to (pick random (1) to (2))\nif <(tank#) = [1]> then\n    go to (tank v)\n    point in direction ([direction v] of [tank v])\nelse\n    go to (tank2 v)\n    point in direction ([direction v] of [tank2 v])\nend\nmove (10) steps\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nclear graphic effects\nset [speed x v] to ((pick random (5.0) to (6.0)) * ([sin v] of (direction) ))\nset [speed y v] to ((pick random (5.0) to (6.0)) * ([cos v] of (direction) ))\nrepeat until <touching (slime v)?>\n    Tick\nend\nrepeat (150)\n    Tick\nend\nrepeat (20)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Tick\nswitch costume to (ball v)\nchange [speed y v] by (-0.5)\nchange x by (speed x)\nchange y by (speed y)\nif <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>> then\n    stop [this script v]\nend\nset [count v] to [0]\nrepeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n    change x by ((speed x) * (-0.1))\n    change y by ((speed y) * (-0.1))\n    change [count v] by (1)\n    if <(count) > [20]> then\n        delete this clone\n    end\nend\nFind Normal\nBounce ([sin v] of (dir) ) ([cos v] of (dir) )\nswitch costume to (ball v)\nrepeat (10)\n    change x by ((0.5) * ([sin v] of (dir) ))\n    change y by ((0.5) * ([cos v] of (dir) ))\n    if <not <<touching (level v)?> or <touching (_edge_ v)?>>> then\n        stop [this script v]\n    end\nend\ndelete this clone\n\ndefine Find Normal\nswitch costume to (normal v)\nset [dir v] to [0]\npoint in direction (dir)\nif <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>> then\n    repeat until <not <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>>\n        Rotate [15]\n    end\n    set [dir start v] to ((dir) - (15))\nelse\n    repeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n        Rotate [-15]\n    end\n    set [dir start v] to (dir)\n    set [dir v] to [0]\n    point in direction (dir)\nend\nrepeat until <<touching (level v)?> or <<touching (_edge_ v)?> or <<touching (disappearing  v)?> or <touching (jump through v)?>>>>\n    Rotate [15]\nend\nset [dir v] to (((dir) + (dir Start)) / (2))\n\ndefine Rotate (by)\nchange [dir v] by (by)\npoint in direction (dir)\nif <([abs v] of (dir) ) > [720]> then\n    delete this clone\nend\n\ndefine Bounce (nx) (ny)\nset [dot product v] to (((speed x) * (nx)) + ((speed y) * (ny)))\nchange [speed x v] by ((-1.6) * ((nx) * (dot product)))\nchange [speed y v] by ((-1.6) * ((ny) * (dot product)))\n\n@Screen\n\nwhen flag clicked\nhide\nwait until <(Level) = [14]>\nshow\nswitch costume to (1 v)\n\nwhen I receive [q1 v]\nstart sound [Asked v]\nswitch costume to (2 v)\nwait (1) seconds\nstart sound [Reappear  v]\nwait (3) seconds\nbroadcast (Q1Remove v)\n\nstart sound [Asked v]\nswitch costume to (2 v)\nwait (1) seconds\n\nwhen I receive [shots1 v]\nswitch costume to (1 v)\n\nwhen I receive [q2 v]\nstart sound [Asked v]\nswitch costume to (3 v)\nwait (1) seconds\nstart sound [Reappear  v]\nwait (3) seconds\nbroadcast (Q2Remove v)\n\nwhen I receive [q3 v]\nstart sound [Asked v]\nswitch costume to (4 v)\nwait (1) seconds\nstart sound [Reappear  v]\nwait (3) seconds\nbroadcast (Q3Remove v)\n\nwhen I receive [q4 v]\nstart sound [Asked v]\nswitch costume to (5 v)\nwait (1) seconds\nstart sound [Reappear  v]\nwait (3) seconds\nbroadcast (Q4Remove v)\n\nswitch costume to (1 v)\n\nwhen I receive [resetblocks v]\nswitch costume to (1 v)\n\nwhen I receive [countdown4 v]\nhide\n\n@Numbers\n\nwhen flag clicked\nhide\nwait (1) seconds\nwait until <(Level) = [14]>\nswitch costume to (10 v)\n\nwhen I receive [count v]\ngo to x: (0) y: (120)\nshow\ngo to [front v] layer\nswitch costume to (10 v)\nwait (2) seconds\nrepeat (4)\n    next costume\n    wait (1) seconds\nend\nset volume to (50) %\nstart sound [5 v]\nswitch costume to (5 v)\nwait (1) seconds\nstart sound [4 v]\nswitch costume to (4 v)\nwait (1) seconds\nstart sound [3 v]\nswitch costume to (3 v)\nbroadcast (Rise Slime v)\nwait (1) seconds\nstart sound [2 v]\nswitch costume to (2 v)\nwait (1) seconds\nstart sound [1 v]\nswitch costume to (1 v)\nwait (1) seconds\nbroadcast (Ask v)\nstart sound [0 v]\nswitch costume to (0 v)\nwait (1) seconds\nhide\nwait (2) seconds\nbroadcast (Q1 v)\n\nwhen I receive [count2 v]\ngo to x: (0) y: (120)\nshow\ngo to [front v] layer\nswitch costume to (10 v)\nwait (2) seconds\nrepeat (4)\n    next costume\n    wait (1) seconds\nend\nset volume to (50) %\nstart sound [5 v]\nswitch costume to (5 v)\nwait (1) seconds\nstart sound [4 v]\nswitch costume to (4 v)\nwait (1) seconds\nstart sound [3 v]\nswitch costume to (3 v)\nbroadcast (Rise Slime v)\nwait (1) seconds\nstart sound [2 v]\nswitch costume to (2 v)\nwait (1) seconds\nstart sound [1 v]\nswitch costume to (1 v)\nwait (1) seconds\nbroadcast (Ask2 v)\nstart sound [0 v]\nswitch costume to (0 v)\nwait (1) seconds\nhide\nwait (2) seconds\nbroadcast (Q2 v)\n\nwhen I receive [count3 v]\ngo to x: (0) y: (120)\nshow\ngo to [front v] layer\nswitch costume to (10 v)\nwait (2) seconds\nrepeat (4)\n    next costume\n    wait (1) seconds\nend\nset volume to (50) %\nstart sound [5 v]\nswitch costume to (5 v)\nwait (1) seconds\nstart sound [4 v]\nswitch costume to (4 v)\nwait (1) seconds\nstart sound [3 v]\nswitch costume to (3 v)\nbroadcast (Rise Slime v)\nwait (1) seconds\nstart sound [2 v]\nswitch costume to (2 v)\nwait (1) seconds\nstart sound [1 v]\nswitch costume to (1 v)\nwait (1) seconds\nbroadcast (Ask3 v)\nstart sound [0 v]\nswitch costume to (0 v)\nwait (1) seconds\nhide\nwait (2) seconds\nbroadcast (Q3 v)\n\nwhen I receive [count4 v]\ngo to x: (0) y: (120)\nshow\ngo to [front v] layer\nswitch costume to (10 v)\nwait (2) seconds\nrepeat (4)\n    next costume\n    wait (1) seconds\nend\nset volume to (50) %\nstart sound [5 v]\nswitch costume to (5 v)\nwait (1) seconds\nstart sound [4 v]\nswitch costume to (4 v)\nwait (1) seconds\nstart sound [3 v]\nswitch costume to (3 v)\nbroadcast (Rise Slime v)\nwait (1) seconds\nstart sound [2 v]\nswitch costume to (2 v)\nwait (1) seconds\nstart sound [1 v]\nswitch costume to (1 v)\nwait (1) seconds\nbroadcast (Ask4 v)\nstart sound [0 v]\nswitch costume to (0 v)\nwait (1) seconds\nhide\nwait (2) seconds\nbroadcast (Q4 v)\n\n@Platform\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [ask v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3remove v]\nclear graphic effects\nstart sound [Dissappear v]\nwait (2) seconds\nwait (1) seconds\nbroadcast (Fall v)\nwait (1) seconds\nbroadcast (ResetBLOCKS v)\nwait (1) seconds\nbroadcast (Shots4 v)\n\nwhen I receive [q2remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nbroadcast (Fall v)\nwait (1) seconds\nbroadcast (ResetBLOCKS v)\nwait (1) seconds\nbroadcast (Shots3 v)\n\nwhen I receive [q4remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nbroadcast (Fall v)\nwait (1) seconds\nbroadcast (ResetBLOCKS v)\nwait (2) seconds\nbroadcast (Win3 v)\n\nwhen I receive [q1remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nbroadcast (Fall v)\nwait (1) seconds\nbroadcast (ResetBLOCKS v)\nwait (1) seconds\nbroadcast (Shots2 v)\n\nwhen I receive [q2 v]\nswitch costume to (3 v)\n\nwhen I receive [q1 v]\nswitch costume to (2 v)\n\nwhen I receive [ask2 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [ask3 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3 v]\nswitch costume to (4 v)\n\nwhen I receive [ask4 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q4 v]\nswitch costume to (5 v)\n\nbroadcast (Win3 v)\n\nwhen I receive [resetblocks v]\nswitch costume to (1 v)\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\n@Platform2\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [ask v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q1remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q1 v]\nswitch costume to (2 v)\n\nwhen I receive [ask2 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q2 v]\nswitch costume to (3 v)\n\nwhen I receive [resetblocks v]\nswitch costume to (1 v)\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\nwhen I receive [ask3 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3 v]\nswitch costume to (4 v)\n\nwhen I receive [ask4 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q4 v]\nswitch costume to (5 v)\n\n@Platform3\n\nwhen flag clicked\nhide\nswitch costume to (1 v)\n\nwhen I receive [ask v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q4remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q2remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3remove v]\nclear graphic effects\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nwait (2) seconds\nstart sound [Tick v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q1 v]\nswitch costume to (2 v)\n\nwhen I receive [resetblocks v]\nswitch costume to (1 v)\nstart sound [Dissappear v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\n\nwhen I receive [ask2 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q2 v]\nswitch costume to (3 v)\n\nwhen I receive [ask3 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q3 v]\nswitch costume to (4 v)\n\nwhen I receive [ask4 v]\nswitch costume to (1 v)\nshow\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [q4 v]\nswitch costume to (5 v)\n\n@Music2\n\nwhen I receive [win3 v]\nset volume to (0) %\n\nwhen I receive [stop sounds v]\nset volume to (0) %\n\nwhen I receive [play music v]\nif <(Music#) = [3]> then\n    set volume to (15) %\n    set [canmoveplayer v] to [1]\n    play sound [3 v] until done\nend\n\n@Fail\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\n\nwhen I receive [level fail v]\nshow\nswitch costume to (costume1 v)\nset [ghost v] effect to (100)\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\ngo to [front v] layer\nstop [all v]\n\nwhen I receive [stop sounds v]\nset volume to (0) %\n\nwhen I receive [levelfail2 v]\nshow\nswitch costume to (costume2 v)\nset [ghost v] effect to (100)\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\ngo to [front v] layer\nstop [all v]\n\nset [canmoveplayer v] to [1]\nhide\n\n@Text\n\nwhen flag clicked\nhide\n\nwhen I receive [play music v]\nif <(Music#) = [3]> then\n    wait (1) seconds\n    show\n    switch costume to (1 v)\n    wait (2) seconds\n    hide\nend\n\n@Conveyor Belt 7\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to [back v] layer\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [15]> then\n        show\n        next costume\n        set [brightness v] effect to (2)\n    else\n        hide\n    end\nend\n\n@CoinLock5\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (1 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [17]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [2]>\nstart sound [Door Open v]\nbroadcast (LavaRise v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nclear graphic effects\nswitch costume to (1 v)\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@CoinLock6\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (2 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [18]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [2]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@Conveyor Belt 8\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [18]> then\n        show\n        next costume\n        set [brightness v] effect to (2)\n    else\n        hide\n    end\nend\n\n@Music3\n\nwhen I receive [win4 v]\nset volume to (0) %\n\nset volume to (25) %\n\nwhen I receive [stop sounds v]\nset volume to (0) %\n\nwhen I receive [play music v]\nif <(Music#) = [4]> then\n    set volume to (25) %\n    set [canmoveplayer v] to [1]\n    forever\n        play sound [Song v] until done\n    end\nend\n\nstop all sounds\n\nset [music# v] to [3]\n\n@Jump Rings\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) (y) At Size: (size)\nset size to (size) %\ngo to x: (x) y: (y)\npoint in direction (90)\ncreate clone of (_myself_ v)\n\nwhen I receive [reset orb v]\nclear graphic effects\nif  then\n    delete this clone\nend\nif <(Level) = [19]> then\n    Clone At X: [58] [25] At Size: [90]\nend\nif <(Level) = [20]> then\n    Clone At X: [-6] [-25] At Size: [90]\n    Clone At X: [189] [65] At Size: [90]\nend\n\nwhen I start as a clone\nshow\ngo [backward v] (14) layers\nforever\n    point in direction (90)\n    if <touching (player v)?> then\n        set [brightness v] effect to (5)\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            start sound [Jump v]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (-2)\n            end\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nbroadcast (Reset orb v)\n\nwhen I start as a clone\nshow\nforever\n    set size to ((([sin v] of (((timer) + ((0) * (400))) * (150)) ) * (10)) + (80)) %\nend\n\n@CoinLock7\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (2 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [19]>\ngo to [back v] layer\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [2]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\n@Conveyor Belt 9\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [intro done v]\nshow\n\nwhen I receive [intro done v]\ngo to x: (0) y: (0)\nforever\n    go to x: (0) y: (0)\n    if <(Level) = [19]> then\n        show\n        next costume\n        set [brightness v] effect to (2)\n    else\n        hide\n    end\nend\n\n@CoinLock8\n\nwhen flag clicked\nhide\nclear graphic effects\nswitch costume to (2 v)\n\nwhen I receive [next v]\nwait (0.1) seconds\nwait until <(Level) = [20]>\nclear graphic effects\nshow\nwait until <(CoinsCollected) = [3]>\nstart sound [Door Open v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [intro done v]\n\nshow\nclear graphic effects\n\nwhen I receive [next v]\nforever\n    next costume\nend\n\nwhen [e v] key pressed\nif <(username) = [250119code2]> then\n    hide\nend\n\ngo [forward v] (2) layers\n\n@WinCoin\n\ndefine Spin\n\nwhen flag clicked\nset [coinscollected v] to [0]\nhide\n\ndefine Clone At X: (x) (y) At Size: (size) (delay)\nwait (delay) seconds\nset size to (size) %\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\npoint in direction (90)\n\nwhen I receive [next v]\nset [coins: frame v] to [0]\nset [coinscollected v] to [0]\nif  then\n    delete this clone\nend\nif <(Level) = [20]> then\n    Clone At X: [-210] [138] At Size: [190] [0]\nend\n\nwhen I start as a clone\nshow\nwait until <touching (player v)?>\nchange [coinscollected v] by (1)\nstart sound [Collect v]\nset rotation style [all around v]\nset [coin y v] to [10]\nrepeat (20)\n    change [coin y v] by (-1)\n    change [ghost v] effect by (5)\n    turn right (8) degrees\n    change y by (Coin Y)\nend\n\nSpin\n\nbroadcast (Next v)\n\nwhen [m v] key pressed\nset [mouse v] to (join (round (mouse x)) (join [ ] (round (mouse y))))\n\nwhen I start as a clone\nforever\n    change y by ((0.5) * ([sin v] of (Coins: frame) ))\n    change [coins: frame v] by (5)\nend\n\nshow\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [countdown3 v]\ndelete this clone\n\nClone At X: [-68] [106] At Size: [100] [0]\n\nbroadcast (Next v)\n\n