JWhandle | Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [07 Tiny Woods v] until done\nend\n\n@JWhandle\n\nwhen flag clicked\nhide\n\nwhen I receive [land v]\n\nstart sound [next lvl v]\n\nwhen I receive [land v]\n\nwhen I receive [land v]\n\n\n\ngo to x: (115) y: (-71)\n\ngo to x: (115) y: (-71)\n\nwhen flag clicked\nforever\n    set [playerx v] to (x position)\nend\n\nwhen flag clicked\ngo to [front v] layer\nset size to (35) %\nswitch costume to (costume1 v)\ngo to x: (-219) y: (-60)\npoint in direction (90)\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <<key (right arrow v) pressed?> or > then\n        change [xv v] by (0.7)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> and <<mouse down?> and <((mouse x) - (x position)) > [50]>>>> then\n        change [xv v] by (-0.7)\n        point in direction (-90)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n        change y by (1)\n        if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n            change y by (1)\n            if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n                change y by (1)\n                if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n                    change y by (1)\n                    if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n                        change y by (1)\n                        if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n                            change x by ((Xv) * (-1))\n                            change x by (-1)\n                            change y by (-5)\n                            change x by (1)\n                            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                                start sound [jump v]\n                                if <(Xv) > [0]> then\n                                    set [xv v] to [-8]\n                                else\n                                    set [xv v] to [8]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Yv)\n    if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<<touching color (#006622)?> or <touching (level v)?>> or <<touching color (#995900)?> or <touching color (#663b00)?>>> then\n        if <key (up arrow v) pressed?> then\n            start sound [jump v]\n            set [yv v] to [10]\n        end\n    end\n    change y by (1)\n    if <(x position) > [225]> then\n        point in direction (90)\n        go to x: (-219) y: (-60)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        broadcast (LevelUp v)\n    end\n    if <<touching color (#ff0000)?> or <touching color (#4a4a4a)?>> then\n        switch costume to (costume2 v)\n        start sound [bxsb v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        point in direction (90)\n        go to x: (-219) y: (-60)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        clear graphic effects\n        switch costume to (costume1 v)\n    end\n    if <touching color (#00ffff)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [5]\n        else\n            if <key (down arrow v) pressed?> then\n                set [yv v] to [-5]\n            else\n                set [yv v] to [-1]\n            end\n        end\n    end\n    if <touching color (#005eba)?> then\n        broadcast (win v)\n        hide\n        stop [this script v]\n    end\n    if <(y position) < [-170]> then\n        switch costume to (costume2 v)\n        start sound [bxsb v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        point in direction (90)\n        go to x: (-219) y: (0)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        clear graphic effects\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        start sound [pop v]\n        switch costume to (costume1 v)\n        go to x: (-219) y: (-100)\n        point in direction (90)\n        set [xv v] to [0]\n        set [yv v] to [0]\n        wait until <not <key (r v) pressed?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> then\n        next costume\n        wait (.1) seconds\n    else\n        switch costume to (costume2 v)\n    end\nend\n\n@level\n\nwhen flag clicked\n\nswitch costume to (costume1 v)\n\ngo to x: (0) y: (0)\n\nshow\n\nwhen I receive [levelup v]\nchange [level v] by (1)\nnext costume\n\nnext costume\n\nwhen flag clicked\n\ngo to x: (0) y: (0)\n\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset [level v] to [0]\ngo to x: (0) y: (0)\nshow\n\n@Sprite7\n\nhide\n\nswitch costume to (costume2 v)\n\nwhen I receive [land v]\n\nwhen flag clicked\nset rotation style [left-right v]\nforever\n    if <(PlayerX) > (x position)> then\n        point in direction (-90)\n    else\n        if <(PlayerX) < (x position)> then\n            point in direction (90)\n        end\n    end\nend\n\nset [boom v] to [0]\n\nswitch costume to (costume3 v)\ngo to x: (121) y: (-64)\nshow\n\nwhen I receive [win v]\nhide\n\nwhen flag clicked\nset size to (35) %\nhide\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n        set [boom v] to [0]\n    else\n        if <(Level) = [2]> then\n            hide\n            set [boom v] to [0]\n        else\n            if <(Level) = [3]> then\n                switch costume to (costume4 v)\n                show\n                go to x: (-205) y: (105)\n                show\n                set [boom v] to [0]\n            else\n                if <(Level) = [4]> then\n                    hide\n                    set [boom v] to [0]\n                else\n                    if <(Level) = [5]> then\n                        hide\n                        set [boom v] to [0]\n                    else\n                        if <(Level) = [6]> then\n                            hide\n                            set [boom v] to [0]\n                        else\n                            if <(Level) = [7]> then\n                                hide\n                                set [boom v] to [0]\n                            else\n                                if <(Level) = [8]> then\n                                    hide\n                                    set [boom v] to [0]\n                                else\n                                    if <(Level) = [9]> then\n                                        hide\n                                        set [boom v] to [0]\n                                    else\n                                        if <(Level) = [10]> then\n                                            switch costume to (costume3 v)\n                                            go to x: (121) y: (-64)\n                                            show\n                                            set [boom v] to [1]\n                                        else\n                                            if <(Level) = [11]> then\n                                                set [boom v] to [0]\n                                                hide\n                                            else\n                                                set [boom v] to [0]\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nswitch costume to (costume2 v)\nshow\nset [boom v] to [1]\n\nhide\n\nswitch costume to (costume2 v)\nshow\n\nset [boom v] to [1]\n\n@Sprite2\n\nwhen flag clicked\nhide\nforever\n    go to (sprite7 v)\n    if <(Boom) = [1]> then\n        repeat until <(Boom) = [0]>\n            create clone of (_myself_ v)\n            wait (2) seconds\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(Boom) = [0]> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [1]> then\n        hide\n        set [boom v] to [0]\n    else\n        if <(Level) = [2]> then\n            hide\n            set [boom v] to [0]\n        else\n            if <(Level) = [3]> then\n                go to (sprite7 v)\n                show\n                point towards (jwhandle v)\n                repeat until <<<touching (level v)?> or <touching (jwhandle v)?>> or <<touching (sprite8 v)?> or <(Level) = [4]>>>\n                    glide (1) secs to (jwhandle v)\n                end\n                hide\n                delete this clone\n            else\n                if <(Level) = [4]> then\n                    hide\n                    set [boom v] to [0]\n                else\n                    if <(Level) = [5]> then\n                        hide\n                        set [boom v] to [0]\n                    else\n                        if <(Level) = [6]> then\n                            hide\n                            set [boom v] to [0]\n                        else\n                            if <(Level) = [7]> then\n                                hide\n                                set [boom v] to [0]\n                            else\n                                if <(Level) = [8]> then\n                                    hide\n                                    set [boom v] to [0]\n                                else\n                                    if <(Level) = [9]> then\n                                        hide\n                                        set [boom v] to [0]\n                                    else\n                                        if <(Level) = [10]> then\n                                            hide\n                                            set [boom v] to [0]\n                                        else\n                                            if <(Level) = [11]> then\n                                                set [boom v] to [0]\n                                                hide\n                                            else\n                                                set [boom v] to [0]\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nswitch costume to (costume4 v)\ngo to x: (-205) y: (105)\nshow\nset [boom v] to [0]\n\nswitch costume to (costume2 v)\nshow\nset [boom v] to [1]\n\n@Sprite6\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nset [ghost v] effect to (99)\n\n@Sprite8\n\nwhen I receive [win v]\nhide\n\nhide\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\nforever\n    if <(Level) = [3]> then\n        show\n        go to x: (-75) y: (-80)\n    else\n        if <(Level) = [6]> then\n            show\n            go to x: (174) y: (9)\n        else\n            if <(Level) = [7]> then\n                show\n                go to x: (90) y: (-89)\n            end\n        end\n    end\nend\n\n@Deco\n\nwhen I receive [levelup v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nshow\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nhide\n\nshow\n\n
Welcome to < JWhandle's Platformer >\n\n->Use Arrow keys/WASD key to move\n\n->Updates<- Released\n\nComing Soon -> Jump Animation, Background effect\n\n<-> BoyMcBoy- Platformer [✔]\n<-> JWhandle | Platformer [✔]