A Simple Platformer 2
@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop1 v)\nforever\n    set [level v] to (backdrop [number v])\nend\n\n@Sprite1\n\nwhen flag clicked\nshow\nset size to (50) %\ngo to x: (-189) y: (100)\nset [level v] to [0]\nset [death v] to [0]\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    change x by (xv)\n    set [xv v] to ((xv) * (0.9))\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            if <key (up arrow v) pressed?> then\n                                if <(xv) > [0]> then\n                                    set [xv v] to [-10]\n                                else\n                                    set [xv v] to [10]\n                                end\n                                set [yv v] to [10]\n                            else\n                                set [xv v] to ((xv) * (-1.3))\n                                change x by (xv)\n                                set [xv v] to [0]\n                                change x by ((xv) / (5))\n                            end\n                            change y by (-5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-0.5)\n    change y by (yv)\n    if <touching color (#000000)?> then\n        set [yv v] to ((yv) * (-0.25))\n        change y by (yv)\n        if <touching color (#000000)?> then\n            change y by (yv)\n            if <touching color (#000000)?> then\n                change y by (yv)\n                if <touching color (#000000)?> then\n                    change y by (yv)\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [yv v] to [10]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching (sprite2 v)?> then\n        switch backdrop to (next backdrop v)\n        reset\n        broadcast (message1 v)\n    end\n    if <<touching color (#ff0000)?> or <(y position) < [-170]>> then\n        reset\n        change [death v] by (1)\n    end\n    if <key (r v) pressed?> then\n        reset\n    end\n    if <touching color (#00ff55)?> then\n        set [yv v] to [15]\n    end\n    if <touching color (#00ffff)?> then\n        if <key (down arrow v) pressed?> then\n            set [yv v] to [-0.5]\n        else\n            set [yv v] to [2]\n        end\n    end\nend\n\ndefine reset\ngo to x: (-189) y: (0)\n\nwhen backdrop switches to [backdrop21 v]\nhide\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (200) y: (-72)\nshow\nset size to (60) %\nforever\n    turn right (15) degrees\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop9 v]\ngo to x: (-185) y: (122)\nshow\nset size to (60) %\nforever\n    turn right (15) degrees\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop12 v]\ngo to x: (-223) y: (-152)\nshow\nset size to (60) %\nforever\n    turn right (15) degrees\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop15 v]\ngo to x: (214) y: (147)\nshow\nset size to (60) %\nforever\n    turn right (15) degrees\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [backdrop21 v]\nhide\n\nwhen backdrop switches to [backdrop19 v]\ngo to x: (-223) y: (-152)\nshow\nset size to (60) %\nforever\n    turn right (15) degrees\n    wait (0.1) seconds\nend\n\n
Welcome to the sequel of "A Simple Platformer"!\nhttps://scratch.mit.edu/projects/248026284/\n**************************************************************\nIt's really simple!\nArrow keys to move.\nAvoid red and falling off platforms.\nGreen makes you jump higher.\nLight blue is water.\nAll 20 levels are possible!\n+++++++++++++++++++++++++++++++++++++++++\nIf there are any bugs, please write it down in the comments.\n+++++++++++++++++++++++++++++++++++++++++\nCheck out my other games too!\nhttps://scratch.mit.edu/studios/4685976/projects/