Alpaca Platformer
@Stage\n\nwhen flag clicked\nswitch backdrop to (blue sky2 v)\nforever\n    if <(level) = [11]> then\n        switch backdrop to (light v)\n    end\nend\n\n@Alpaca\n\nwhen flag clicked\nset [level v] to [1]\nset [full v] to [0]\nset [slope v] to [0]\ngo to x: (-200) y: (50)\npoint in direction (-90)\nset rotation style [left-right v]\nwait (1.5) seconds\nforever\n    if <(WALL) > [1]> then\n        change [wall v] by (-1)\n    else\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            point in direction (90)\n            move (-4) steps\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            point in direction (-90)\n            move (-4) steps\n        end\n    end\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(falling) < [3]>> then\n        set [y speed v] to [11]\n    end\n    if <<(y speed) < [4]> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        change [y speed v] by (-1)\n    else\n        change [y speed v] by (-2)\n    end\n    change y by (y speed)\n    Go to bottom <>\n    if <touching (sprite1 v)?> then\n        change y by (1)\n        set [y speed v] to [0]\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (alpaca v)\nset [deaths v] to [0]\nwait (1.3) seconds\nshow\n\nwhen flag clicked\nset size to (40) %\nforever\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) > [240]> then\n        broadcast (level2 v)\n        change [level v] by (1)\n        go to x: (-200) y: (-100)\n    end\nend\n\ndefine Go to bottom <up>\nchange [falling v] by (1)\nrepeat until <not <touching (sprite1 v)?>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [y speed v] to [0]\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\n    if <<key (up arrow v) pressed?> and <[3] > ([abs v] of (speed) )>> then\n        if <(wall jump) = [0]> then\n            set [x speed v] to ((-1.2) * (speed))\n            set [y speed v] to [11]\n            set [falling v] to [6]\n            set [wall jump v] to [15]\n        end\n    else\n        set [x speed v] to [0]\n    end\nend\nif <(Full) > [4.1]> then\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (sprite1 v)?>>>\nchange y by (1)\nchange [slope v] by (1)\n\nwhen flag clicked\nforever\n    if <<touching (sprite3 v)?> or <<touching (sprite4 v)?> or <<touching (sprite5 v)?> or <touching (sprite6 v)?>>>> then\n        go to x: (-200) y: (-82)\n        change [deaths v] by (1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite9 v)?> then\n        go to x: (-200) y: (-82)\n        change [deaths v] by (1)\n        point in direction (-90)\n    end\nend\n\n@Sprite1\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nforever\n    if <(level) = [11]> then\n        hide\n    end\nend\n\nwhen I receive [level2 v]\nnext costume\n\nwhen flag clicked\nrepeat until <(level) = [6]>\n    if <(level) = [6]> then\n        repeat (1)\n            change [deaths v] by (-1)\n        end\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\nwait (0.3) seconds\nrepeat (40)\n    change [ghost v] effect by (3)\nend\n\n@clouds\n\nwhen flag clicked\nhide\nrepeat (3)\n    create clone of (_myself_ v)\n    wait (pick random (1) to (6)) seconds\nend\n\nwhen I start as a clone\ngo [backward v] (100) layers\ngo to x: (290) y: (pick random (-50) to (146))\nset [ghost v] effect to (0)\nswitch costume to (pick random (1) to (3))\nshow\nglide (pick random (10) to (15)) secs to x: (-275) y: (y position)\ncreate clone of (_myself_ v)\ndelete this clone\n\nwhen flag clicked\nforever\n    if <not <(username) = [MaxLovesDogs]>> then\n        play sound [one_0.mp3 v] until done\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(level) = [12]> then\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (0) y: (-5)\nforever\n    if <(level) = [10]> then\n        wait (1) seconds\n        show\n        wait (1) seconds\n        hide\n    else\n        hide\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to x: (100) y: (-5)\nforever\n    if <(level) = [10]> then\n        wait (1) seconds\n        show\n        wait (1) seconds\n        hide\n    else\n        hide\n    end\nend\n\n@Sprite5\n\nwhen flag clicked\nhide\ngo to x: (200) y: (-5)\nforever\n    if <(level) = [10]> then\n        wait (1) seconds\n        show\n        wait (1) seconds\n        hide\n    else\n        hide\n    end\nend\n\n@Sprite6\n\nwhen flag clicked\nhide\ngo to x: (300) y: (-5)\nforever\n    if <(level) = [10]> then\n        wait (1) seconds\n        show\n        wait (1) seconds\n        hide\n    end\nend\n\nhide\n\n@Sprite7\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [11]> then\n        show\n    end\nend\n\n@copy (save) me\n\nwhen flag clicked\nhide\nset [posx v] to [167]\nset [posy v] to [161]\nset [my number v] to [0]\nset [numbercount v] to [0]\nset [numbercounttotal v] to [4]\nswitch costume to (0 v)\ngo to x: (PosX) y: (PosY)\nshow\nforever\n    repeat ((numberCountTotal) - (1))\n        create clone of (_myself_ v)\n    end\n    if <(letter (length of (Number)) of (Number)) = [0]> then\n        switch costume to (0 v)\n    else\n        if <(letter (length of (Number)) of (Number)) = [1]> then\n            switch costume to (1 v)\n        else\n            if <(letter (length of (Number)) of (Number)) = [2]> then\n                switch costume to (2 v)\n            else\n                if <(letter (length of (Number)) of (Number)) = [3]> then\n                    switch costume to (3 v)\n                else\n                    if <(letter (length of (Number)) of (Number)) = [4]> then\n                        switch costume to (4 v)\n                    else\n                        if <(letter (length of (Number)) of (Number)) = [5]> then\n                            switch costume to (5 v)\n                        else\n                            if <(letter (length of (Number)) of (Number)) = [6]> then\n                                switch costume to (6 v)\n                            else\n                                if <(letter (length of (Number)) of (Number)) = [7]> then\n                                    switch costume to (7 v)\n                                else\n                                    if <(letter (length of (Number)) of (Number)) = [8]> then\n                                        switch costume to (8 v)\n                                    else\n                                        if <(letter (length of (Number)) of (Number)) = [9]> then\n                                            switch costume to (9 v)\n                                        else\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nhide\nchange [numbercount v] by (1)\nset [my number v] to (numberCount)\ngo to x: (PosX) y: (PosY)\nchange x by (((17) * (numberCount)) * (-1))\nforever\n    if <(length of (Number)) > (my number)> then\n        show\n        if <(letter ((length of (Number)) - (my number)) of (Number)) = [0]> then\n            switch costume to (0 v)\n        else\n            if <(letter ((length of (Number)) - (my number)) of (Number)) = [1]> then\n                switch costume to (1 v)\n            else\n                if <(letter ((length of (Number)) - (my number)) of (Number)) = [2]> then\n                    switch costume to (2 v)\n                else\n                    if <(letter ((length of (Number)) - (my number)) of (Number)) = [3]> then\n                        switch costume to (3 v)\n                    else\n                        if <(letter ((length of (Number)) - (my number)) of (Number)) = [4]> then\n                            switch costume to (4 v)\n                        else\n                            if <(letter ((length of (Number)) - (my number)) of (Number)) = [5]> then\n                                switch costume to (5 v)\n                            else\n                                if <(letter ((length of (Number)) - (my number)) of (Number)) = [6]> then\n                                    switch costume to (6 v)\n                                else\n                                    if <(letter ((length of (Number)) - (my number)) of (Number)) = [7]> then\n                                        switch costume to (7 v)\n                                    else\n                                        if <(letter ((length of (Number)) - (my number)) of (Number)) = [8]> then\n                                            switch costume to (8 v)\n                                        else\n                                            if <(letter ((length of (Number)) - (my number)) of (Number)) = [9]> then\n                                                switch costume to (9 v)\n                                            else\n                                            end\n                                        end\n                                    end\n                                end\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    set [number v] to (Deaths)\nend\n\n@Sprite8\n\nwhen flag clicked\nforever\n    go to x: (140) y: (141)\n    set size to (75) %\nend\n\n@Sprite9\n\nwhen flag clicked\nhide\nforever\n    if <(level) = [4]> then\n        show\n        switch costume to (costume4 v)\n        go to x: (0) y: (-104)\n        wait (0.1) seconds\n        go to [front v] layer\n    end\n    if <(level) = [5]> then\n        show\n        switch costume to (costume5 v)\n        go to x: (0) y: (-40)\n        wait (0.1) seconds\n        go to [front v] layer\n    end\n    if <(level) = [6]> then\n        show\n        switch costume to (costume6 v)\n        go to x: (0) y: (-62)\n        go to [front v] layer\n    end\n    if <(level) = [7]> then\n        show\n        switch costume to (costume7 v)\n        go to x: (0) y: (-160)\n        go to [front v] layer\n    end\n    if <(level) = [8]> then\n        show\n        switch costume to (costume8 v)\n        go to x: (-20) y: (-132)\n        go to [front v] layer\n    end\n    if <(level) = [9]> then\n        show\n        switch costume to (costume9 v)\n        go to x: (0) y: (-90)\n        go to [front v] layer\n    end\n    if <(level) > [9]> then\n        hide\n    end\nend\n\n
Use arrows or WASD to move\nGo up against a wall to climb it.\nPress Flag twice\n\n3.01: Now works with Scratch 3.0!\n\nIf this gets 3,500 views by March, I'll make a llama platformer!\nLlama Platformer: https://scratch.mit.edu/projects/204700386/\nJust so you know my project didn't get on the front page. That was a very similar project.\n\nGuys go check out this project: https://scratch.mit.edu/projects/250067346/