Will_Wam II A Platformer
@Stage\n\n@Platform\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nshow\n\nwhen flag clicked\nshow\nswitch costume to (costume1 v)\n\n@Player\n\nwhen I start as a clone\nrepeat (35)\n    change [ghost v] effect by (15)\n    change size by (-5)\n    change [color v] effect by (50)\nend\ndelete this clone\n\nnext costume\n\n\n\nwhen flag clicked\nforever\n    play sound [Tevo v] until done\nend\n\nwhen flag clicked\nforever\n    if <(y position) > [-10]> then\n        if <(Level) = [1]> then\n            broadcast (yo v)\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (-219) y: (-96)\nset [x velocity v] to [0]\nset [y velocity v] to [0]\nset size to (100) %\nforever\n    if <touching color (#003fff)?> then\n        set [mode v] to [jump]\n        set [y velocity v] to [13]\n    end\n    if <touching color (#308bff)?> then\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            change [y velocity v] by (-1)\n        else\n            change [y velocity v] by (1)\n        end\n    end\n    if <<key (r v) pressed?> and <key (g v) pressed?>> then\n        wait until <not <<key (g v) pressed?> and <key (r v) pressed?>>>\n        set size to (100) %\n        go to x: (-222) y: (-223)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        broadcast (Restart v)\n    end\n    create clone of (_myself_ v)\n    if <key (r v) pressed?> then\n        if <not <key (g v) pressed?>> then\n            wait until <not <key (r v) pressed?>>\n            set size to (100) %\n            go to x: (-222) y: (-223)\n            set [x velocity v] to [0]\n            set [y velocity v] to [0]\n        end\n    end\n    go to [front v] layer\n    if <(Back) = [1]> then\n        hide\n        stop [this script v]\n    end\n    if <(x position) > [235]> then\n        broadcast (Next v)\n        set x to (-222)\n        set y to (0)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n        set size to (100) %\n    end\n    if <<(y position) < [-175]> or <touching color (#ff0000)?>> then\n        set size to (100) %\n        go to x: (-180) y: (-40)\n        set [x velocity v] to [0]\n        set [y velocity v] to [0]\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        point in direction (90)\n        change [x velocity v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        point in direction (-90)\n        change [x velocity v] by (1)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching color (#000008)?> then\n        change y by (1)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change y by (-7)\n                                change x by ((-1) * (X Velocity))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <not <(X Velocity) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [y velocity v] to [8]\n                                    set [x velocity v] to (((X Velocity) / ([abs v] of (X Velocity) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [x velocity v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#000008)?> then\n        if <(Y Velocity) = [-3]> then\n            if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n                set [mode v] to [run]\n            else\n                if <([abs v] of (X Velocity) ) > [.1]> then\n                    set [mode v] to [skid]\n                else\n                    set [mode v] to [stand]\n                end\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            set [mode v] to [jump]\n            set [y velocity v] to [9]\n        end\n    end\n    if <<<<(Mode) = [jump]> or <(Mode) = [walljump]>> and <(Y Velocity) < [0]>> or <<<(Mode) = [run]> or <(Mode) = [skid]>> and <(Y Velocity) < [-3]>>> then\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(Y Velocity) > [-15]> then\n        change [y velocity v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#000008)?>> then\n        change y by (-1)\n        if <not <touching color (#000008)?>> then\n            change y by (-1)\n            if <not <touching color (#000008)?>> then\n                change y by (-1)\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (Y Velocity)\n    if <touching color (#000008)?> then\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by ((-1) * (Y Velocity))\n            set [y velocity v] to [-3]\n        end\n        change y by (2)\n    end\n    if <touching color (#00ff55)?> then\n        set size to (30) %\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\nforever\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    stop all sounds\n    stop [all v]\nend\n\n
move with arrow keys\njump with the up arrow\nthe left arrow moves you to left\nthe right arrow moves you to right\nLove and favourite project then I will follow you