Homework Vs. Video Games 2 - A Platformer Game #All #Games #Games #Games #Games #Games #Games #Games

Instructions: Click the green flag twice.\nPART 3: https://scratch.mit.edu/projects/560771855/\n\nPART 4: https://scratch.mit.edu/projects/561037787/\n\nPART 5: https://scratch.mit.edu/projects/562632734/\n\n\n\n\n@--AwesomeCode-- for the engine

@Stage\n\n@Text\n\nwhen flag clicked\nswitch costume to (costume13 v)\n\nwhen I receive [next level v]\nnext costume\n\n@Ground\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nswitch costume to (costume2 v)\n\n@Player\n\nwhen flag clicked\nshow\nset [level v] to [1]\nbroadcast (Next Level v)\nforever\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x velocity v] by (-1.5)\n    end\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [x velocity v] by (1.5)\n    end\n    set [x velocity v] to ((X Velocity) * (0.85))\n    change x by (X Velocity)\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (1)\n    end\n    if <touching (ground v)?> then\n        change y by (-4)\n        change x by ((X Velocity) * (-1))\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            if <(X Velocity) > [0]> then\n                set [x velocity v] to [-10]\n            else\n                set [x velocity v] to [10]\n            end\n            set [y velocity v] to [15]\n        else\n            set [x velocity v] to [0]\n        end\n    end\n    change [y velocity v] by (-1)\n    change y by (Y Velocity)\n    if <touching (ground v)?> then\n        change y by ((Y Velocity) - ((Y Velocity) * (2)))\n        set [y velocity v] to [0]\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\n    change y by (-1)\n    if <<touching (ground v)?> and <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        set [y velocity v] to [15]\n    end\n    change y by (1)\n    if <(x position) > [239]> then\n        broadcast (Next Level v) and wait\n        change [level v] by (1)\n    end\n    if <<touching (sprite2 v)?> or <touching (homework v)?>> then\n        broadcast (Reset v)\n        create clone of (_myself_ v)\n    else\n        if <<key (down arrow v) pressed?> or <key (s v) pressed?>> then\n            switch costume to (crouch v)\n        else\n            switch costume to (player v)\n        end\n    end\nend\n\nwhen I start as a clone\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\n    change y by (5)\n    turn right (5) degrees\nend\ndelete this clone\n\nwhen I receive [next level v]\nbroadcast (Reset v)\n\nwhen I receive [reset v]\nset [x velocity v] to [0]\nset [y velocity v] to [0]\ngo to x: (-216) y: (40)\n\nwhen flag clicked\nforever\n    play sound [bensound-perception v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nhide\nforever\n    if <(Level) = [5]> then\n        show\n        start sound [recording1 v]\n        say [ZOMBIES, ZOMBIES THEY ARE COMING TO EAT YOUR BRAIN RUN, RUN!!!!!!!] for (5) seconds\n        hide\n        stop [this script v]\n    end\nend\n\n@Homework\n\nwhen flag clicked\nswitch costume to (costume4 v)\n\nwhen I receive [next level v]\nnext costume\n\nwhen flag clicked\nforever\n    if <(Level) > [9]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [4]> then\n        hide\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nrepeat (10)\n    hide\n    hide\n    hide\nend\n\nwhen flag clicked\nswitch costume to (costume2 v)\nforever\n    if <(Level) > [6]> then\n        show\n    end\nend\n\nwhen I receive [next level v]\nif <(Level) > [6]> then\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [costume4]> then\n        forever\n            switch costume to (costume4 v)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(Level) > [10]> then\n        hide\n    end\nend\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nshow\ngo to [front v] layer\n\n