jumpy || a mobile platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Robot Guy  v] until done\nend\n\n@Player\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (-220) y: (180)\nset size to (40) %\ncreate clone of (_myself_ v)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\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 (#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                end\n                if <touching color (#ff0000)?> then\n                    change y by (1)\n                    if <touching color (#ff0000)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <key (up arrow v) pressed?> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [12]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\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 (-1)\n    if <touching color (#ff0000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching color (#0022ff)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (180)\n    end\n    if <touching color (#000000)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (180)\n    end\n    if <touching color (#00c835)?> then\n        set [touching flag? b v] to [yes]\n        if <<(Touching Flag? B) = [yes]> and <(Touching Flag? R) = [yes]>> then\n            broadcast (Next Level v)\n            go to x: (-220) y: (180)\n            set [yv v] to [0]\n            set [xv v] to [0]\n            change [level v] by (1)\n        end\n    else\n        set [touching flag? b v] to [no]\n    end\n    if <(y position) < [-175]> then\n        go to x: (-220) y: (180)\n        set [yv v] to [0]\n        set [xv v] to [0]\n    end\nend\n\nwhen I start as a clone\nswitch costume to (2 v)\ngo to x: (-220) y: (-20)\nset size to (40) %\nset [xv v] to [0]\nset [yv v] to [0]\nforever\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 (#0022ff)?> then\n        change y by (1)\n        if <touching color (#0022ff)?> then\n            change y by (1)\n            if <touching color (#0022ff)?> then\n                change y by (1)\n                if <touching color (#0022ff)?> then\n                    change y by (1)\n                end\n                if <touching color (#0022ff)?> then\n                    change y by (1)\n                    if <touching color (#0022ff)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-5)\n                        if <key (w v) pressed?> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [12]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#0022ff)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#0022ff)?> then\n        if <key (w v) pressed?> then\n            set [yv v] to [12]\n        end\n    end\n    change y by (1)\n    if <touching color (#ff0000)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (-20)\n    end\n    if <touching color (#000000)?> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-220) y: (-20)\n    end\n    if <touching color (#00c835)?> then\n        set [touching flag? r v] to [yes]\n        if <<(Touching Flag? B) = [yes]> and <(Touching Flag? R) = [yes]>> then\n            go to x: (-220) y: (-20)\n            set [yv v] to [0]\n            set [xv v] to [0]\n        end\n    else\n        set [touching flag? r v] to [no]\n    end\n    if <(y position) < [-175]> then\n        go to x: (-220) y: (-20)\n        set [yv v] to [0]\n        set [xv v] to [0]\n    end\nend\n\n@Ground\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Check Flag\n\nwhen flag clicked\ngo to x: (210) y: (-96)\nforever\n    switch costume to (1 v)\n    wait (0.3) seconds\n    switch costume to (2 v)\n    wait (0.3) seconds\nend\n\n@Victory\n\nwhen flag clicked\nset [level v] to [0]\nhide\ngo to x: (0) y: (0)\nforever\n    if <(level) = [10]> then\n        show\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\n
PART 2 IS OUT NOW!\nhttps://scratch.mit.edu/projects/638790847/\n\nTerraria Platformer #games #all by @cs2889410\n------------------------------------------------\nWelcome to the Terraria Platformer! \nInstructions:\nUse mouse/arrow keys/WASD/finger to move. \nAvoid slimes, spikes, and zombies!