PENCIL (Platformer)
@Stage\n\nwhen I receive [next stage v]\nnext backdrop\n\nwhen flag clicked\nswitch backdrop to (level1 v)\nforever\n    if <(backdrop [name v]) = [LEVEL2]> then\n        broadcast (LEVEL2 v)\n    end\nend\n\n@PENCIL\n\nwhen flag clicked\nplay sound [Green day - Time of your life with lyrics.mp3 v] until done\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume1 v)\n    end\n    if <key (space v) pressed?> then\n        if <<touching color (#ffcccc)?> or <touching color (#00ffff)?>> then\n            pen up\n            erase all\n        else\n            pen down\n        end\n    else\n        pen up\n    end\n    if <key (e v) pressed?> then\n        erase all\n    end\n    if <touching color (#00ffff)?> then\n        erase all\n        broadcast (next stage v)\n        go to x: (-212) y: (-143)\n    end\n    if <touching color (#ffcccc)?> then\n        erase all\n        go to x: (-212) y: (-143)\n    end\n    if <touching color (#00ffff)?> then\n        erase all\n        broadcast (next stage v)\n        go to x: (-212) y: (-143)\n    end\n    if <touching color (#ffcccc)?> then\n        erase all\n        go to x: (-212) y: (-143)\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (-212) y: (-143)\nerase all\nset pen color to (#000000)\nforever\n    if <key (right arrow v) pressed?> then\n        change [velocity v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [velocity v] by (-1)\n    end\n    set [velocity v] to ((Velocity) * (0.9))\n    change x by (Velocity)\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                            change x by ((Velocity) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Velocity) > [0]> then\n                                    set [velocity v] to [-5]\n                                else\n                                    set [velocity v] to [5]\n                                end\n                                set [gravity v] to [10]\n                            else\n                                set [velocity v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [gravity v] by (-1)\n    change y by (Gravity)\n    if <touching color (#000000)?> then\n        change y by ((Gravity) * (-1))\n        set [gravity v] to [0]\n    end\n    if <touching color (#000000)?> then\n        change y by ((Gravity) * (-1))\n        set [gravity v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [gravity v] to [13]\n        end\n    end\n    change y by (1)\nend\n\n
Subscribe to me on youtube: alekkeka \nArrow keys = Move\nSpacebar = Draw\nE button = Erase\n\nPlease check out part 2!!\nhttps://scratch.mit.edu/projects/112383716/\n\nFull Screen this is all VECTOR\n\nPlease Report if there are any Glitches and I will try to fix them once I see your report.