TEST - MMO Platformer v0.7
@Stage\n\nwhen [m v] key pressed\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\n\nwhen I receive [play scene v]\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [intro done v]\nforever\n    switch backdrop to (costume2 v)\nend\n\nwhen flag clicked\nswitch backdrop to (costume1 v)\n\n@Blank\n\nwhen flag clicked\nset [gravity v] to [1]\n\nwhen I receive [intro done v]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nset [exit v] to [win]\n\n@Intro\n\nwhen flag clicked\nIntro\n\ndefine Intro\nhide\ngo to x: (0) y: (0)\nset size to (100) %\npoint in direction (90)\nclear graphic effects\nset [sequence v] to [1]\nset [i v] to [0]\nset [i2 v] to [0]\nstart sound [Template v]\nswitch costume to (pink v)\ncreate clone of (_myself_ v)\nwait (.2) seconds\nswitch costume to (circle 1 v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [2]>\nwait (.2) seconds\nswitch costume to (circle 2 v)\ncreate clone of (_myself_ v)\nwait (.01) seconds\nswitch costume to (white bg v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [3]>\nwait (.1) seconds\nswitch costume to (filler 1 v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [4]>\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [5]>\nswitch costume to (name v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [6]>\nswitch costume to (filler 2 v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [7]>\nbroadcast (Delete Clones v) and wait\nset [sequence v] to [8]\nwait until <(Sequence) = [9]>\nwait (.2) seconds\nstop [this script v]\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    show\n    wait until <(Sequence) = [2]>\n    wait (.2) seconds\n    delete this clone\nelse\n    if <<(costume [number v]) > [1]> and <[4] > (costume [number v])>> then\n        show\n        set size to (0) %\n        repeat (13)\n            switch costume to (blank v)\n            change size by (((1600) - (size)) / (4))\n            switch costume to (circle 1 v)\n        end\n        wait (.1) seconds\n        repeat (15)\n            change [ghost v] effect by (7)\n            switch costume to (circle 1 v)\n            change size by (((0) - (size)) / (4))\n        end\n        set [sequence v] to [2]\n        delete this clone\n    else\n        if <<(costume [number v]) > [3]> and <[6] > (costume [number v])>> then\n            show\n            switch costume to (blank2 v)\n            set size to (1600) %\n            go to [front v] layer\n            clear graphic effects\n            repeat (15)\n                change [ghost v] effect by (6)\n                switch costume to (circle 2 v)\n                change size by (((0) - (size)) / (4))\n            end\n            set [sequence v] to [3]\n            delete this clone\n        else\n            if <(costume [number v]) = [6]> then\n                show\n                go to [back v] layer\n                wait until <(Sequence) = [7]>\n                delete this clone\n            else\n                if <(costume [number v]) = [7]> then\n                    show\n                    go to x: (0) y: (360)\n                    repeat (17)\n                        change y by (((0) - (y position)) / (4.5))\n                    end\n                    go to x: (0) y: (0)\n                    set [sequence v] to [4]\n                    wait until <(Sequence) = [7]>\n                    delete this clone\n                else\n                    if <(costume [number v]) = [8]> then\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 (((90) - (direction)) / (5)) degrees\n                        end\n                        set [sequence v] to [5]\n                        repeat (23)\n                            change size by (((85) - (size)) / (5))\n                            change y by (((40) - (y position)) / (5))\n                        end\n                        wait until <(Sequence) = [7]>\n                        delete this clone\n                    else\n                        if <(costume [number v]) = [9]> then\n                            show\n                            go to x: (-240) y: (-60)\n                            set [ghost v] effect to (100)\n                            repeat (23)\n                                change [ghost v] effect by (-10)\n                                change x by (((0) - (x position)) / (5))\n                            end\n                            wait (.2) seconds\n                            set [sequence v] to [6]\n                            wait until <(Sequence) = [7]>\n                            delete this clone\n                        else\n                            if <(costume [number v]) = [10]> then\n                                show\n                                go to x: (0) y: (360)\n                                repeat (17)\n                                    change y by (((0) - (y position)) / (4.5))\n                                end\n                                go to x: (0) y: (0)\n                                set [sequence v] to [7]\n                                wait until <(Sequence) = [8]>\n                                wait (.01) seconds\n                                set [sequence v] to [9]\n                                repeat (10)\n                                    change [ghost v] effect by (10)\n                                end\n                                broadcast (Play Scene v)\n                                delete this clone\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [delete clones v]\nif <not <(costume [number v]) = [10]>> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\n@Player\n\nwhen I receive [green flag v]\nhide\ngo [backward v] (40) layers\n\nwhen I receive [play game v]\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        Tester\n        broadcast (Tick v)\n    end\n    if <(EXIT) = [WIN]> then\n        Game - Win\n    else\n        Game Over\n    end\nend\n\ndefine Game On\nset [gravity v] to [1]\nshow\nset [sx v] to [0]\nset [sy v] to [0]\nif <(LEVEL) = [2]> then\n    set [x v] to [-160]\n    set [y v] to [-10]\nelse\n    if <(LEVEL) = [3]> then\n        set [x v] to [-160]\n        set [y v] to [-10]\n    else\n        if <(LEVEL) = [4]> then\n            set [x v] to [-160]\n            set [y v] to [-10]\n        else\n            if <(LEVEL) = [5]> then\n                set [x v] to [-30]\n                set [y v] to [-60]\n            else\n                if <(LEVEL) = [6]> then\n                    set [x v] to [-25]\n                    set [y v] to [-20]\n                else\n                    set [x v] to [-160]\n                    set [y v] to [-10]\n                end\n            end\n        end\n    end\nend\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (95) %\nshow\n\ndefine Tick\npoint in direction (90)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    set [dir v] to [left]\n    if <(crouching?) = [1]> then\n        change [sx v] by (-1.5)\n        switch costume to (crouchleft v)\n    else\n        change [sx v] by (-2.1)\n        switch costume to (left v)\n    end\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    set [dir v] to [right]\n    if <(crouching?) = [1]> then\n        change [sx v] by (1.5)\n        switch costume to (crouchright v)\n    else\n        change [sx v] by (2.1)\n        switch costume to (right v)\n    end\nend\nif <touching (ice v)?> then\n    set [sx v] to ((sx) * (0.87))\nelse\n    if <touching (honey v)?> then\n        set [sx v] to ((sx) * (0.68))\n    else\n        set [sx v] to ((sx) * (0.801))\n    end\nend\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player X By (round (sx))\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <not <touching (water v)?>> then\n        if <(in air) < [4]> then\n            if <touching (honey v)?> then\n                set [sy v] to [16]\n            else\n                set [sy v] to [16.5]\n            end\n        end\n    end\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<touching (water v)?> and <[20] > (sy)>> then\n        change [sy v] by (0.8)\n    end\nend\nif <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n    if <<touching (water v)?> and <[20] > (sy)>> then\n        change [sy v] by (-0.4)\n    end\nend\nif <not <touching (poles v)?>> then\n    if <(sy) > [-20]> then\n        if <touching (water v)?> then\n            change [sy v] by (-0.2)\n        else\n            change [sy v] by (-2)\n        end\n    end\nend\nChange Player Y By (sy)\nTest - Game Over\nset [scroll x v] to (x)\nif <(SCROLL X) < [-10]> then\n    set [scroll x v] to [-10]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (bouncy v)?> then\n    start sound [Bounce v]\n    set [sy v] to [29]\nend\nif <touching (right v)?> then\n    change [sx v] by (1.4)\nend\nLadder Physics\nif <touching (moving platfoms v)?> then\n    change [x v] by (CHANGE)\nend\nif <touching (moving p1 v)?> then\n    change [x v] by (CHANGE)\nend\nif <<<key (down arrow v) pressed?> or <key (s v) pressed?>> and <not <touching (poles v)?>>> then\n    set [crouching? v] to [1]\nelse\n    if <touching (can't go through v)?> then\n        set [crouching? v] to [1]\n    else\n        set [crouching? v] to [0]\n    end\nend\nif <<(LEVEL) = [4]> or <(LEVEL) = [5]>> then\n    change y by (-0.55)\nend\n\ndefine Change Player Y By (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <<touching (level v)?> or >>\n    if <(sy) > [10]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\nif <<[0] > (sy)> and <<touching (jump through v)?> or <touching (level v)?>>> then\n    repeat until <not <<touching (jump through v)?> or <touching (level v)?>>>\n        change [y v] by (1)\n        set [in air v] to [0]\n        Position\n        change [sy v] by (0)\n    end\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player X By (sx)\nchange [x v] by (sx)\nchange [in air v] by (1)\nPosition\nif <<touching (level v)?> or > then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<touching (level v)?> or >> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        repeat until <not <<touching (level v)?> or >>\n            if <(sx) > [0]> then\n                set [sx v] to [0]\n                change [x v] by (-1)\n            else\n                set [sx v] to [0]\n                change [x v] by (1)\n            end\n            Position\n        end\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <<touching (level v)?> or >>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\nif <(sx) > [0]> then\n    set [sx v] to [-16]\nelse\n    set [sx v] to [16]\nend\nset [in air v] to [0]\n\ndefine Game Over\nset [exit v] to []\nrepeat (4)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\nwait (0.5) seconds\nbroadcast (Block Reset v)\n\ndefine Test - Game Over\nif <touching (downsaws v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (boiling honey v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (upsaws v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (leftsaws v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (danger v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (saws v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (wheel v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (pike v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (boiling honey v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <<touching color (#ba5b5b)?> or <touching color (#964a4a)?>> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\nif <touching (smash v)?> then\n    start sound [Oops v]\n    set [exit v] to [DIE]\nend\n\ndefine Game - Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\nclear graphic effects\nbroadcast (Block Reset v)\n\ndefine Tester\nif <not <touching (water v)?>> then\n    go [forward v] (1) layers\nend\n\nwhen I receive [intro done v]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\ndefine Jump Ring?\nif <<touching (jump rings v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    set [sy v] to [20]\nend\nif <<touching (down rings v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    set [sy v] to [-35]\nend\nif <<touching (blue rings v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    set [sy v] to [28]\nend\nif <<touching (green rings v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n    if <(GRAVITY) = [1]> then\n        set [gravity v] to [2]\n        wait (1) seconds\n    else\n        if <(GRAVITY) = [2]> then\n            set [gravity v] to [1]\n            wait (1) seconds\n        end\n    end\nend\n\nwhen I receive [intro done v]\ngo [backward v] (60) layers\n\ndefine Ladder Physics\nif <touching (poles v)?> then\n    if <touching (poles v)?> then\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            if <not <<touching (level v)?> or >> then\n                set [sy v] to [8]\n            end\n        end\n    end\n    if <touching (poles v)?> then\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            if <not <<touching (level v)?> or >> then\n                set [sy v] to [-8]\n            end\n        end\n    end\n    if <not <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> or <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>>>> then\n        set [sy v] to [0]\n    end\nend\n\nwhen flag clicked\nset [checkpoint # v] to [0]\nbroadcast (Block Reset v)\n\nwhen flag clicked\nbroadcast (Block Reset v)\nforever\n    Jump Ring?\nend\n\nwhen I receive [die v]\nstart sound [Oops v]\nset [exit v] to [DIE]\n\nwhen I receive [green flag v]\nwait until <(Level) = [1]>\nset [checkpoint # v] to [0]\nwait until <(Level) = [3]>\nset [checkpoint # v] to [0]\n\ndefine Touching Platform?\nif <touching (moving p1 v)?> then\n    change [x v] by (CHANGE)\nend\n\nwhen flag clicked\nforever\n    wait until <touching (water v)?>\n    wait until <not <touching (water v)?>>\n    start sound [Splash v]\nend\n\nwhen flag clicked\nhide\n\nset [gravity v] to [2]\n\nset [scroll x v] to (pick random ((SCROLL X) - (5)) to ((SCROLL X) + (5)))\n\ndefine Should Crouch?\nif <(dir) = [left]> then\n    switch costume to (crouchleft v)\nend\nif <(dir) = [right]> then\n    switch costume to (crouchright v)\nend\n\nset [crouching? v] to [1]\n\nwhen flag clicked\nforever\n    if <(crouching?) = [1]> then\n        Should Crouch?\n        if <(dir) = [left]> then\n            switch costume to (crouchleft v)\n        end\n        if <(dir) = [right]> then\n            switch costume to (crouchright v)\n        end\n    else\n        Should Crouch?\n        if <(dir) = [left]> then\n            switch costume to (left v)\n        end\n        if <(dir) = [right]> then\n            switch costume to (right v)\n        end\n    end\n    if <touching (can't go through v)?> then\n        set [crouching? v] to [1]\n    end\n    change y by (-0.55)\nend\n\nforever\n\nwhen I receive [bang v]\n\nrepeat (6)\n    set [scroll y v] to (pick random ((SCROLL Y) - (5)) to ((SCROLL Y) + (5)))\nend\n\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [30]\n                        Clone At X: [360] Y: [30]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I start as a clone\n\ngo [backward v] (20) layers\n\nset [exit v] to [die]\n\nwhen flag clicked\nhide\n\n@Level\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [5]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I start as a clone\ngo [forward v] (7) layers\n\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\n\nwhen flag clicked\nhide\n\n@Text\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (1) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\ngo to [back v] layer\n\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\n\ngo to [back v] layer\n\nwhen flag clicked\nhide\n\n@Poles\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    point in direction (90)\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\ngo [backward v] (8) layers\n\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\n\nwhen flag clicked\nhide\n\n@Decoration\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I start as a clone\ngo [forward v] (7) layers\n\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (9) layers\n    point in direction (90)\n    set [ghost v] effect to (25)\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo [backward v] (1) layers\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<touching (player v)?> and <(costume [name v]) = [Open]>> then\n    start sound [Complete v]\n    set [exit v] to [WIN]\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone At X: [1710] Y: [95]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (closed v)\n        Clone At X: [2369] Y: [44]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (closed v)\n            Clone At X: [3520] Y: [-10]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (closed v)\n                Clone At X: [9999] Y: [-50]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (closed v)\n                    Clone At X: [9999] Y: [-15]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (closed v)\n                        Clone At X: [9999] Y: [-15]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    turn right (2) degrees\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\nshow\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nstart sound [Doorbell v]\nswitch costume to (open v)\n\nwhen I start as a clone\nset size to (110) %\ngo [backward v] (55) layers\n\nwhen flag clicked\nhide\n\n@Collectables\n\ndefine Counter\nset [counter collect v] to (join (COLLECTED) (join [ of ] (COLLECTED MAX)))\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (2 v)\n    Clone At X: [-71] Y: [-29]\n    Clone At X: [78] Y: [1]\n    Clone At X: [323] Y: [80]\n    Clone At X: [817] Y: [30]\n    Clone At X: [1099] Y: [35]\n    Clone At X: [1536] Y: [64]\n    Clone At X: [1819] Y: [106]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (2 v)\n        Clone At X: [125] Y: [49]\n        Clone At X: [253] Y: [106]\n        Clone At X: [543] Y: [-62]\n        Clone At X: [1009] Y: [165]\n        Clone At X: [1674] Y: [131]\n        Clone At X: [1890] Y: [133]\n        Clone At X: [2046] Y: [141]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (2 v)\n            Clone At X: [-40] Y: [-25]\n            Clone At X: [56] Y: [46]\n            Clone At X: [272] Y: [122]\n            Clone At X: [392] Y: [118]\n            Clone At X: [448] Y: [181]\n            Clone At X: [511] Y: [134]\n            Clone At X: [825] Y: [253]\n            Clone At X: [1534] Y: [110]\n            Clone At X: [1686] Y: [108]\n            Clone At X: [1961] Y: [154]\n            Clone At X: [2037] Y: [124]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (2 v)\n                Clone At X: [-137] Y: [186]\n                Clone At X: [582] Y: [211]\n                Clone At X: [1045] Y: [2]\n                Clone At X: [1592] Y: [140]\n                Clone At X: [1733] Y: [213]\n                Clone At X: [1985] Y: [54]\n                Clone At X: [2330] Y: [125]\n                Clone At X: [2432] Y: [125]\n                Clone At X: [2330] Y: [210]\n                Clone At X: [2432] Y: [210]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (2 v)\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (1 v)\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set size to (90) %\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\nwhen I receive [tick v]\nchange [sine v] by (0.05)\nPosition ((x) - (SCROLL X)) (((y) + ((6) * ([sin v] of (((x) + (SINE)) * (10)) ))) - (SCROLL Y))\nCounter\nif <touching (player v)?> then\n    start sound [Coin v]\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [intro done v]\nCounter\nshow variable [counter collect v]\n\nwhen flag clicked\nhide variable [counter collect v]\n\nbroadcast (Setup v)\n\nClone At X: [-130] Y: [165]\n\nClone At X: [750] Y: [472]\n\nset [exit v] to [die]\n\nwhen [d v] key pressed\n\nClone At X: [1733] Y: [213]\n\n@Saws\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    switch costume to (2 v)\n    turn right (5) degrees\n    if <(LEVEL) = [3]> then\n        change [x v] by (SAW X VEL)\n    else\n        if <(LEVEL) = [4]> then\n            change [y v] by (SAW Y VEL)\n        end\n    end\nend\n\nwhen flag clicked\nhide\nforever\n    turn right (3.5) degrees\nend\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nset size to (80) %\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [2]> then\nset [y v] to [-9999999]\n\nwhen I receive [setup v]\ndelete this clone\n\nClone x: [926] y: [11]\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    switch costume to (1 v)\n    set [saw x vel v] to ((SAW X VEL) * (0.65))\n    set [saw y vel v] to ((SAW Y VEL) * (0.65))\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nforever\n    if <(LEVEL) = [3]> then\n        repeat (30)\n            change [saw x vel v] by (1.5)\n        end\n        wait (1) seconds\n        repeat (30)\n            change [saw x vel v] by (-1.5)\n        end\n        wait (1) seconds\n    else\n        if <(LEVEL) = [4]> then\n            repeat (30)\n                change [saw y vel v] by (1.5)\n            end\n            wait (1) seconds\n            repeat (30)\n                change [saw y vel v] by (-1.5)\n            end\n            wait (1) seconds\n        end\n    end\nend\n\n@TN\n\nwhen flag clicked\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    set [ghost v] effect to (100)\n    go to [front v] layer\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\nset [ghost v] effect to (100)\n\nwhen [timer v] > (0.1)\nshow\ngo to [front v] layer\n\ngo to [front v] layer\n\n@Music Button\n\nwhen flag clicked\nhide\n\nwhen I receive [intro done v]\nset [deaf v] to [0]\nshow\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        change size by (((90) - (size)) / (5))\n        set [brightness v] effect to (10)\n    else\n        change size by (((75) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [intro done v]\nwait (0.8) seconds\nset volume to (70) %\nforever\n    play sound [Theme v] until done\nend\n\nwhen this sprite clicked\nif <(volume) = [50]> then\n    switch costume to (costume2 v)\n    set volume to (0) %\nelse\n    switch costume to (costume1 v)\n    set volume to (50) %\nend\n\n@Jump Rings\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    point in direction (90)\n    if <touching (player v)?> then\n        set [brightness v] effect to (10)\n        wait (0.1) seconds\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            start sound [Jump1 v]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (-10)\n            end\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    set size to ((([sin v] of (((timer) + ((0) * (400))) * (200)) ) * (12)) + (80)) %\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset size to (90) %\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [2]> then\n    Clone x: [726] y: [87]\n    Clone x: [845] y: [107]\n    Clone x: [1539] y: [65]\n    Clone x: [1956] y: [24]\n    Clone x: [2190] y: [46]\nelse\n    if <(LEVEL) = [3]> then\n        Clone x: [160] y: [50]\n        Clone x: [1381] y: [74]\n    else\n        if <(LEVEL) = [4]> then\n            Clone x: [-215] y: [107]\n            Clone x: [1850] y: [79]\n            Clone x: [2581] y: [45]\n        end\n    end\nend\nset [y v] to [-99999999999]\n\nClone x: [2417] y: [15]\n\n@Boiling Honey\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (3))\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nset [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [30]\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n    show\n    point in direction (90)\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ngo to [back v] layer\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\n\ngo [backward v] (20) layers\n\nwhen flag clicked\nhide\n\n@Water\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (3))\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nset [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [30]\n                    end\n                end\n            end\n        end\n    end\nend\n\nClone At X: [360] Y: [0]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (9999) layers\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n    set [ghost v] effect to (20)\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\ngo to [back v] layer\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [exit v] to [die]\n\nwhen flag clicked\nhide\n\n@Laser\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nchange [count v] by (2)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (55) layers\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [count v] to [1]\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [3]> then\nelse\n    if <(LEVEL) = [4]> then\nend\nset [y v] to [-9999999]\n\nwhen I receive [setup v]\ndelete this clone\n\nwhen I receive [tick v]\nif <((current [second v]) mod (4)) < [2]> then\n    switch costume to (count)\nelse\n    switch costume to ((count) + (1))\nend\n\nClone x: [1023] y: [-29]\n\nset [exit v] to [win]\n\nset [exit v] to [win]\n\nClone x: [-7] y: [127]\n\nchange [count v] by (2)\n\n@Smash\n\nwhen I start as a clone\npoint in direction (90)\nset [old y v] to (y)\nforever\n    show\n    go to [back v] layer\n    wait until <([abs v] of (((x) - (SCROLL X)) / (10)) ) < [5]>\n    start sound [Ricochet v]\n    set [ice vel v] to [0]\n    repeat until <not <touching (level v)?>>\n        change [y v] by (ice vel)\n        change [ice vel v] by (-0.8)\n    end\n    repeat until <touching (level v)?>\n        change [y v] by (ice vel)\n        change [ice vel v] by (-0.8)\n    end\n    start sound [BOOM v]\n    wait (0.5) seconds\n    show\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nrepeat until <(y) > (old y)>\n    change [y v] by (5)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [4]> then\n    Clone x: [869] y: [81]\nelse\n    if <(LEVEL) = [5]> then\nend\nset [y v] to [-9999999]\n\nwhen I receive [setup v]\ndelete this clone\n\nrepeat (3)\n    set [scroll y v] to (pick random ((SCROLL Y) - (7)) to ((SCROLL Y) + (7)))\nend\n\nset size to (80) %\n\nwait (5) seconds\n\n@Ice\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [5]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I start as a clone\ngo [forward v] (7) layers\n\nPosition [] []\n\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    set [ghost v] effect to (99)\nelse\n    hide\nend\n\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\n\n@TITLE\n\nwhen flag clicked\nhide\nset [screen v] to [1]\ngo [backward v] (99) layers\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@Play Button\n\nwhen I receive [play scene v]\nshow\nwait until <<touching (mouse-pointer v)?> and <mouse down?>>\nset [screen v] to [0]\nbroadcast (Transition v)\nbroadcast (Intro Done v)\nstart sound [Start 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 [click 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 (((80) - (size)) / (5))\n        set [brightness v] effect to (5)\n        switch costume to (costume2 v)\n    else\n        change size by (((75) - (size)) / (5))\n        set [brightness v] effect to (0)\n        switch costume to (costume1 v)\n    end\nend\n\n@Instructions\n\nwhen I receive [play scene v]\nforever\n    set [in v] to [0]\n    show\n    wait until <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN) = [1]>>>\n    broadcast (IN v)\n    wait until <not <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN) = [1]>>>>\nend\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 [click 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 (((80) - (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 (((75) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\nset [in v] to [1]\n\n@Credits\n\nwhen I receive [play scene v]\nforever\n    set [in2 v] to [0]\n    show\n    wait until <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN2) = [1]>>>\n    broadcast (CREDITS v)\n    wait until <not <<<touching (mouse-pointer v)?> and <mouse down?>> and <not <(IN2) = [1]>>>>\nend\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 [click 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 (((80) - (size)) / (5))\n        switch costume to (costume3 v)\n        set [brightness v] effect to (5)\n        if <mouse down?> then\n            set [in2 v] to [1]\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 (((75) - (size)) / (5))\n        set [brightness v] effect to (0)\n    end\nend\n\n@Background\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\ngo to [back v] layer\nset [brightness v] effect to (0)\nPosition ((x) - ((SCROLL X) / (2))) ((-30) + ((y) - ((SCROLL Y) / (2))))\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume3 v)\n    repeat (10)\n        Clone At X: [480] Y: [0]\n    end\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume3 v)\n        repeat (10)\n            Clone At X: [480] Y: [0]\n        end\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (costume3 v)\n            repeat (10)\n                Clone At X: [480] Y: [0]\n            end\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume3 v)\n                repeat (10)\n                    Clone At X: [480] Y: [0]\n                end\n            end\n        end\n    end\nend\nset [x v] to [-99999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\n\n@title screen\n\nwhen flag clicked\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 [in v] to [1]\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    set [in v] to [0]\n    repeat (20)\n        change [ghost v] effect by (5)\n        set [in v] to [0]\n    end\n    hide\n    set [in v] to [0]\nend\n\n@Down rings\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    point in direction (90)\n    if <touching (player v)?> then\n        set [brightness v] effect to (10)\n        wait (0.1) seconds\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            start sound [Jump 2 v]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (-10)\n            end\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    set size to ((([sin v] of (((timer) + ((0) * (400))) * (200)) ) * (12)) + (80)) %\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset size to (90) %\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [2]> then\n    Clone x: [1125] y: [178]\nelse\n    if <(LEVEL) = [3]> then\n        Clone x: [2709] y: [196]\n    end\nend\nset [y v] to [-99999999999]\n\nClone x: [2417] y: [15]\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    if <<touching (player v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        wait (0.1) seconds\n    end\nend\n\nstart sound [Jump 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\n@Honey\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (1.4))\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nset [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [30]\n                    end\n                end\n            end\n        end\n    end\nend\n\nClone At X: [360] Y: [0]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (9999) layers\n    set [ghost v] effect to (5)\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\ngo to [back v] layer\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [exit v] to [die]\n\n@Credits2\n\nwhen flag clicked\nset [in v] to [0]\nhide\n\nwhen I receive [credits 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        set [in2 v] to [0]\n        set [in v] to [0]\n    end\n    hide\n    set [in2 v] to [0]\n    set [in v] to [0]\nend\n\nset [in2 v] to [0]\n\n@Blue rings\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    point in direction (90)\n    if <touching (player v)?> then\n        set [brightness v] effect to (10)\n        wait (0.1) seconds\n        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            start sound [Jump 2 v]\n            repeat (10)\n                change [ghost v] effect by (10)\n                change size by (-10)\n            end\n            delete this clone\n        end\n    else\n        set [brightness v] effect to (0)\n    end\n    set size to ((([sin v] of (((timer) + ((0) * (400))) * (200)) ) * (12)) + (80)) %\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset size to (90) %\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [3]> then\n    Clone x: [355] y: [25]\n    Clone x: [849] y: [82]\n    Clone x: [2208] y: [-36]\nelse\n    if <(LEVEL) = [4]> then\n        Clone x: [2775] y: [-26]\n    end\nend\nset [y v] to [-99999999999]\n\nClone x: [2417] y: [15]\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    if <<touching (player v)?> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        wait (0.1) seconds\n    end\nend\n\nstart sound [Jump 2 v]\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\n@Jump Through\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [5]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [150]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nset [y v] to (y)\nnext costume\n\nwhen I start as a clone\ngo [forward v] (7) layers\n\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\nClone At X: [360] Y: [0]\n\nwhen flag clicked\nhide\n\n@Bouncy\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nshow\nforever\n    set size to (110) %\n    point in direction (90)\n    if <touching (player v)?> then\n        repeat (5)\n            next costume\n        end\n        repeat (5)\n            switch costume to ((costume [number v]) - (1))\n        end\n    end\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset size to (110) %\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [3]> then\n    Clone x: [1869] y: [-14]\n    Clone x: [2560] y: [46]\n    Clone x: [3041] y: [-7]\nelse\n    if <(LEVEL) = [4]> then\n        Clone x: [-65] y: [-43]\n        Clone x: [2333] y: [-19]\n    else\n        if <(LEVEL) = [5]> then\n    end\nend\nset [y v] to [-99999999999]\n\nClone x: [2417] y: [15]\n\nwhen I start as a clone\n\nClone x: [2560] y: [43]\n\nClone x: [1869] y: [-10]\n\n@next\n\nwhen I receive [transition v]\ngo to [front v] layer\nwait (0) seconds\nswitch costume to (pick random (1) to (4))\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))\n    go to [front v] layer\nend\nwait (0.5) seconds\nrepeat (20)\n    change x by (((x position) - (-550)) / (-5))\n    go to [front v] layer\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\nwhen flag clicked\nhide\n\nwhen I receive [transition v]\nforever\n    go [forward v] (1) layers\nend\n\ngo to [front v] layer\n\n@Ice blocks\n\nwhen I start as a clone\nswitch costume to (1 v)\ngo to [back v] layer\nclear graphic effects\nshow\nforever\n    point in direction (90)\nend\n\nwhen flag clicked\nhide\ngo to [back v] layer\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\ndefine Clone x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset size to (90) %\ndelete this clone\n\nwhen I receive [setup v]\nhide\nset [y v] to [0]\nset [x v] to [0]\nif <(LEVEL) = [4]> then\n    Clone x: [380] y: [-33]\n    Clone x: [480] y: [38]\n    Clone x: [380] y: [100]\n    Clone x: [1738] y: [144]\nelse\n    if <(LEVEL) = [5]> then\nend\nset [y v] to [-99999999999]\n\nwhen I start as a clone\nclear graphic effects\nwait until <touching (player v)?>\nrepeat (100)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\n@Can't Go through\n\nwhen I start as a clone\ngo [backward v] (1) layers\nforever\n    set [y v] to (([sin v] of ((timer) * (100)) ) * (1.4))\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nset [y v] to (([sin v] of ((timer) * (100)) ) * (3))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1  v)\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\n    Clone At X: [360] Y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n        Clone At X: [360] Y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n            Clone At X: [360] Y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n                Clone At X: [360] Y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (level 5 1 v)\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                    Clone At X: [360] Y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (level 6 1 v)\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [0]\n                        Clone At X: [360] Y: [30]\n                    end\n                end\n            end\n        end\n    end\nend\n\nClone At X: [360] Y: [0]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go [backward v] (9999) layers\n    set [ghost v] effect to (99)\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone At X: (x) Y: (y)\ncreate clone of (_myself_ v)\ngo to [back v] layer\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nset [exit v] to [die]\n\n
Hi and welcome to part two for minecraft platfomer. This is a sequel\nPART 1 https://scratch.mit.edu/projects/492378103\nInstructions\narrow keys to move\nPART 3: https://scratch.mit.edu/projects/508146928\nPART 4: https://scratch.mit.edu/projects/508327517\nfollow @siquonic547