Hidden


@Stage\n\nwhen flag clicked\nforever\n    if <(Slide) = [1]> then\n        play sound [Oppressive Gloom v] until done\n    end\nend\n\nwhen flag clicked\nset [slide v] to [1]\nswitch backdrop to (game v)\nhide variable [time v]\nhide variable [deaths v]\n\nwhen flag clicked\nforever\n    if <(Slide) = [1]> then\n        switch backdrop to (game v)\n        hide variable [time v]\n        hide variable [deaths v]\n    else\n        stop all sounds\n        switch backdrop to (end v)\n        show variable [time v]\n        show variable [deaths v]\n        play sound [Unteld v] until done\n    end\nend\n\n@Thumbnail\n\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\nclear graphic effects\nswitch costume to (thumbnail v)\nset [deaths v] to [0]\nset [time v] to [0]\nhide variable [time v]\nhide variable [deaths v]\n\nwhen flag clicked\nforever\n    if <<key (z v) pressed?> and <(username) = [Blackswift]>> then\n        ask [Level] and wait\n        set [level v] to (answer)\n    end\nend\n\nwhen flag clicked\nset [level v] to [`]\nset [time v] to [0]\nset [deaths v] to [0]\nset [ghost v] effect to (0)\ngo to [front v] layer\nshow\nwait (1) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\nrepeat until <(Slide) = [2]>\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n@Levels\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [slide v] to [1]\nswitch costume to (1 v)\nforever\n    if <(Slide) = [1]> then\n        if <(Level) = [27]> then\n            repeat (50)\n                change [ghost v] effect by (2)\n            end\n            hide\n            set [slide v] to [2]\n        else\n            show\n            switch costume to (Level)\n        end\n    else\n        hide\n    end\nend\n\n@Colt\n\nwhen flag clicked\nhide\nwait (3) seconds\nshow\nerase all\nset [xstart v] to [-212]\nset [ystart v] to [-130]\nset [walljumpenabled? v] to [yes]\nset [level v] to [1]\ngo to x: (XStart) y: (YStart)\nforever\n    if <(Slide) = [1]> then\n        if <touching color (#555555)?> then\n            change y by (1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (1)\n                            if <touching color (#555555)?> then\n                                change y by (1)\n                                if <touching color (#555555)?> then\n                                    change y by (1)\n                                    if <touching color (#555555)?> then\n                                        change y by (1)\n                                        if <touching color (#555555)?> then\n                                            change y by (-8)\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        else\n            change [yvelocity v] by (-0.3)\n            if <not <(YVelocity) > [0]>> then\n                if <not <touching color (#555555)?>> then\n                    change y by (-1)\n                    if <(YVelocity) < [-0.5]> then\n                        if <not <touching color (#555555)?>> then\n                            change y by (-1)\n                            if <(YVelocity) < [-1.5]> then\n                                if <not <touching color (#555555)?>> then\n                                    change y by (-1)\n                                    if <(YVelocity) < [-2.5]> then\n                                        if <not <touching color (#555555)?>> then\n                                            change y by (-1)\n                                            if <(YVelocity) < [-3.5]> then\n                                                if <not <touching color (#555555)?>> then\n                                                    change y by (-1)\n                                                    if <(YVelocity) < [-4.5]> then\n                                                        if <not <touching color (#555555)?>> then\n                                                            change y by (-1)\n                                                            if <(YVelocity) < [-5.5]> then\n                                                                if <not <touching color (#555555)?>> then\n                                                                    change y by (-1)\n                                                                    if <(YVelocity) < [-6.5]> then\n                                                                        if <not <touching color (#555555)?>> then\n                                                                            change y by (-1)\n                                                                            if <(YVelocity) < [-7.5]> then\n                                                                                if <not <touching color (#555555)?>> then\n                                                                                    change y by (-1)\n                                                                                    if <(YVelocity) < [-8.5]> then\n                                                                                        if <not <touching color (#555555)?>> then\n                                                                                            change y by (-1)\n                                                                                            if <(YVelocity) < [-9.5]> then\n                                                                                                if <not <touching color (#555555)?>> then\n                                                                                                    change y by (-1)\n                                                                                                    if <(YVelocity) < [-10.5]> then\n                                                                                                        if <not <touching color (#555555)?>> then\n                                                                                                            change y by (-1)\n                                                                                                            if <(YVelocity) < [-11.5]> then\n                                                                                                                if <not <touching color (#555555)?>> then\n                                                                                                                    change y by (-1)\n                                                                                                                end\n                                                                                                            end\n                                                                                                        end\n                                                                                                    end\n                                                                                                end\n                                                                                            end\n                                                                                        end\n                                                                                    end\n                                                                                end\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        else\n                                                            set [yvelocity v] to [0]\n                                                        end\n                                                    end\n                                                else\n                                                    set [yvelocity v] to [0]\n                                                end\n                                            end\n                                        else\n                                            set [yvelocity v] to [0]\n                                        end\n                                    end\n                                else\n                                    set [yvelocity v] to [0]\n                                end\n                            end\n                        else\n                            set [yvelocity v] to [0]\n                        end\n                    end\n                end\n            end\n            if <touching color (#4c0703)?> then\n                start sound [Dead v]\n                switch costume to (death v)\n                repeat (10)\n                    change [ghost v] effect by (10)\n                end\n                set [xvelocity v] to [0]\n                set [yvelocity v] to [0]\n                change [deaths v] by (1)\n                go to x: (XStart) y: (YStart)\n                set [ghost v] effect to (0)\n            end\n            if <(y position) < [-187]> then\n                set [xvelocity v] to [0]\n                set [yvelocity v] to [0]\n                change [deaths v] by (1)\n                go to x: (XStart) y: (YStart)\n                set [ghost v] effect to (0)\n            end\n            if <(x position) > [235]> then\n                set [xvelocity v] to [0]\n                set [yvelocity v] to [0]\n                erase all\n                change [level v] by (1)\n                go to x: (XStart) y: (YStart)\n            end\n        end\n        change y by (1)\n        if <<key (w v) pressed?> or <key (up arrow v) pressed?>> then\n            change y by (-1)\n            if <touching color (#555555)?> then\n                start sound [Jump v]\n                set [yvelocity v] to [7]\n            end\n            change y by (1)\n        end\n        if <not <touching color (#555555)?>> then\n            if <not <(YVelocity) < [0]>> then\n                if <(YVelocity) > [0.5]> then\n                    if <not <touching color (#555555)?>> then\n                        change y by (1)\n                        if <(YVelocity) > [1.5]> then\n                            if <not <touching color (#555555)?>> then\n                                change y by (1)\n                                if <(YVelocity) > [2.5]> then\n                                    if <not <touching color (#555555)?>> then\n                                        change y by (1)\n                                        if <(YVelocity) > [3.5]> then\n                                            if <not <touching color (#555555)?>> then\n                                                change y by (1)\n                                                if <(YVelocity) > [4.5]> then\n                                                    if <not <touching color (#555555)?>> then\n                                                        change y by (1)\n                                                        if <(YVelocity) > [5.5]> then\n                                                            if <not <touching color (#555555)?>> then\n                                                                change y by (1)\n                                                                if <(YVelocity) > [6.5]> then\n                                                                    if <not <touching color (#555555)?>> then\n                                                                        change y by (1)\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <touching color (#555555)?> then\n            set [yvelocity v] to ((YVelocity) * (-1))\n            change y by (-1)\n            if <touching color (#555555)?> then\n                change y by (-1)\n                if <touching color (#555555)?> then\n                    change y by (-1)\n                    if <touching color (#555555)?> then\n                        change y by (-1)\n                        if <touching color (#555555)?> then\n                            change y by (-1)\n                        end\n                    end\n                end\n            end\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            if <(XVelocity) < [4]> then\n                change [xvelocity v] by (0.5)\n            end\n        end\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            if <(XVelocity) > [-4]> then\n                change [xvelocity v] by (-0.5)\n            end\n        end\n        if <<not <<key (left arrow v) pressed?> or <key (a v) pressed?>>> and <not <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n            set [xvelocity v] to ((XVelocity) * (0.88))\n        end\n        if <<(XVelocity) > [-0.05]> and <(XVelocity) < [0.05]>> then\n            set [xvelocity v] to [0]\n        end\n        if <<(XVelocity) < [-3.5]> and <not <touching color (#555555)?>>> then\n            change x by (-1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) > [3.5]> and <not <touching color (#555555)?>>> then\n            change x by (1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) < [-2.5]> and <not <touching color (#555555)?>>> then\n            change x by (-1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) > [2.5]> and <not <touching color (#555555)?>>> then\n            change x by (1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) < [-1.5]> and <not <touching color (#555555)?>>> then\n            change x by (-1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) > [1.5]> and <not <touching color (#555555)?>>> then\n            change x by (1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <touching color (#555555)?> then\n                                change x by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) < [-0.5]> and <not <touching color (#555555)?>>> then\n            change x by (-1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n                                if <(WallJumpEnabled?) = [yes]> then\n                                    set [xvelocity v] to [6]\n                                    set [yvelocity v] to [7]\n                                end\n                            end\n                            if <touching color (#555555)?> then\n                                change x by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<(XVelocity) > [0.5]> and <not <touching color (#555555)?>>> then\n            change x by (1)\n            if <touching color (#555555)?> then\n                change y by (1)\n                if <touching color (#555555)?> then\n                    change y by (1)\n                    if <touching color (#555555)?> then\n                        change y by (1)\n                        if <touching color (#555555)?> then\n                            change y by (-3)\n                            if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n                                if <(WallJumpEnabled?) = [yes]> then\n                                    set [xvelocity v] to [-6]\n                                    set [yvelocity v] to [7]\n                                end\n                            end\n                            if <touching color (#555555)?> then\n                                change x by (-1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        switch costume to (right v)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            switch costume to (left v)\n        else\n            if <not <touching color (#4c0703)?>> then\n                switch costume to (still v)\n            end\n        end\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (XStart) y: (YStart)\nchange [deaths v] by (1)\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        repeat (50)\n            change [ghost v] effect by (2)\n            hide\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    end\nend\n\n@Moving Stuff\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    if <(Level) = [14]> then\n        show\n        go to x: (0) y: (0)\n        switch costume to (swingy v)\n        Swing\n    else\n        if <(Level) = [15]> then\n            point in direction (90)\n            go to x: (0) y: (0)\n            switch costume to (hammery thingy v)\n            show\n            Stomp\n        else\n            if <(Level) = [19]> then\n                point in direction (90)\n                go to x: (100) y: (0)\n                switch costume to (moving dude v)\n                show\n                Jump\n            else\n                if <(Level) = [20]> then\n                    point in direction (90)\n                    go to x: (0) y: (0)\n                    switch costume to (moving dudes v)\n                    show\n                    Jump\n                else\n                    if <(Level) = [21]> then\n                        point in direction (90)\n                        go to x: (0) y: (0)\n                        switch costume to (moving dudes2 v)\n                        show\n                        Jump\n                    else\n                        if <(Level) = [22]> then\n                            point in direction (90)\n                            go to x: (0) y: (0)\n                            switch costume to (moving dudes3 v)\n                            show\n                            Jump\n                        else\n                            if <(Level) = [25]> then\n                                point in direction (90)\n                                go to x: (0) y: (0)\n                                switch costume to (hammery thingy2 v)\n                                show\n                                Stomp\n                            else\n                                if <(Level) = [26]> then\n                                    point in direction (90)\n                                    go to x: (0) y: (0)\n                                    switch costume to (moving dudes4 v)\n                                    show\n                                    Jump\n                                else\n                                    hide\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Swing\nturn left (Swing) degrees\n\nwhen flag clicked\npoint in direction (180)\nset [swing v] to [0]\nset [ghost v] effect to (0)\nset [crush v] to [0]\nset [jump v] to [2]\nforever\n    if <(Level) = [14]> then\n        repeat (15)\n            change [swing v] by (1)\n        end\n        repeat (30)\n            change [swing v] by (-1)\n        end\n        repeat (15)\n            change [swing v] by (1)\n        end\n    end\n    if <<(Level) = [15]> or <(Level) = [25]>> then\n        set [crush v] to [0]\n        repeat (40)\n            change [crush v] by (-5)\n        end\n        wait (0.5) seconds\n        repeat (10)\n            change [crush v] by (20)\n        end\n        wait (0.2) seconds\n    end\n    if <<<(Level) = [19]> or <(Level) = [20]>> or <<(Level) = [21]> or <<(Level) = [22]> or <(Level) = [26]>>>> then\n        repeat (20)\n            change [jump v] by (((Jump) * (0.2)) * (-1))\n        end\n        set [jump v] to [2]\n        repeat (20)\n            change [jump v] by ((Jump) * (0.2))\n        end\n        wait (0.1) seconds\n    end\nend\n\ndefine Stomp\nchange y by ((Crush) * (-1))\n\ndefine Jump\nchange y by ((Jump) * (-1))\n\nwhen flag clicked\nforever\n    if <(Level) = [27]> then\n        repeat (50)\n            change [ghost v] effect by (2)\n            hide\n            stop [other scripts in sprite v]\n            stop [this script v]\n        end\n    end\nend\n\n@Levels2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nset [ghost v] effect to (100)\nwait until <(Level) = [27]>\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nset [slide v] to [2]\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\n