Terraria Platformer #games #all
@Stage\n\nwhen flag clicked\nforever\n    play sound (pick random (1) to (16)) until done\nend\n\n@Sprite1\n\nwhen I receive [start v]\nshow\ngo to x: (-225) y: (45)\nset size to (150) %\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#1700ff)?> then\n        change y by (1)\n        if <touching color (#1700ff)?> then\n            change y by (1)\n            if <touching color (#1700ff)?> then\n                change y by (1)\n                if <touching color (#1700ff)?> then\n                    change y by (1)\n                    if <touching color (#1700ff)?> then\n                        change y by (1)\n                        if <touching color (#1700ff)?> then\n                            change y by (1)\n                            if <touching color (#1700ff)?> then\n                                change y by (-6)\n                                if <key (up arrow v) pressed?> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                    change x by (XV)\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#1700ff)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#1700ff)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [8]\n    end\n    if <[235] < (x position)> then\n        set size to (150) %\n        broadcast (p1 next level v)\n        go to x: (-225) y: (45)\n    end\n    if <touching color (#ff0000)?> then\n        broadcast (p1 died v)\n        go to x: (-225) y: (45)\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\ngo to x: (-225) y: (45)\nshow\nwait (3) seconds\nbroadcast (start v)\n\nwhen I receive [start v]\n\nbroadcast (end v)\n\nwait until <(backdrop [name v]) = [21]>\n\n@Sprite2\n\nwhen I receive [start v]\nshow\nset size to (150) %\ngo to x: (-225) y: (-130)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    change [yv v] by (-0.5)\n    if <key (a v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (d v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#ff0000)?> then\n        change y by (1)\n        if <touching color (#ff0000)?> then\n            change y by (1)\n            if <touching color (#ff0000)?> then\n                change y by (1)\n                if <touching color (#ff0000)?> then\n                    change y by (1)\n                    if <touching color (#ff0000)?> then\n                        change y by (1)\n                        if <touching color (#ff0000)?> then\n                            change y by (1)\n                            if <touching color (#ff0000)?> then\n                                change y by (-6)\n                                if <key (w v) pressed?> then\n                                    set [yv v] to [10]\n                                    if <(XV) > [0]> then\n                                        set [xv v] to [-10]\n                                    else\n                                        set [xv v] to [10]\n                                    end\n                                    change x by (XV)\n                                else\n                                    change x by ((XV) * (-1))\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (YV)\n    if <touching color (#ff0000)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#ff0000)?> and <key (w v) pressed?>> then\n        set [yv v] to [8]\n    end\n    if <[235] < (x position)> then\n        set size to (150) %\n        broadcast (p2 next level v)\n        go to x: (-225) y: (-130)\n    end\n    if <touching color (#1700ff)?> then\n        broadcast (p2 died v)\n        go to x: (-225) y: (-130)\n    end\n    change y by (0.5)\nend\n\nwhen flag clicked\ngo to x: (-225) y: (-130)\nshow\nwait (3) seconds\nbroadcast (start v)\n\nwhen I receive [start v]\n\nbroadcast (end v)\n\nwait until <(backdrop [name v]) = [21]>\n\n@Sprite3\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [p1 next level v]\nnext costume\n\n@Sprite4\n\nwhen I receive [p2 next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@Sprite5\n\nwhen flag clicked\nshow\nclear graphic effects\nstart sound [countdown1 v]\nswitch costume to (costume1 v)\nwait (1) seconds\nswitch costume to (costume2 v)\nstart sound [countdown1 v]\nwait (1) seconds\nswitch costume to (costume3 v)\nstart sound [countdown1 v]\nwait (1) seconds\nswitch costume to (costume4 v)\nstart sound [countdowngo v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite6\n\nif <(username) = [-HawkGames-]> then\n    clear graphic effects\n    go to [front v] layer\n    go to x: (0) y: (0)\n    show\n    stop [all v]\nend\n\nwhen flag clicked\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n
Top Loved! OwO Thanks everyone!\nAlso, I’ll maybe add a “back” button later.\nNew physics project! https://scratch.mit.edu/projects/401255085\n=====Info=====\nHi guys! Welcome to my newest project, which allows you to create your own platformer! Hope you enjoy! I spent almost 10 hours on this! :)\n=====Controls=====\nFor editor, you click on the buttons on the menu to choose which type of block you are placing. There are 8 types for you to choose.\nTo make the player move, click the play button in the menu. Arrow keys to move the player.\nTo load or save, go to the menu and choose the function you want.\nAlso, you can use mobile devices\n=====Credits=====\nCoding 100% me\nArt 95% me, 5% @carot3 (for the you win thingy)\nMusic is Unity by TheFatRat\n=====Others=====\nIf you don't add a player, it will make your player start at the defult starting place for platformers\nIf you want to share your code, do them here!\nhttps://scratch.mit.edu/discuss/topic/407624/