Sloth Platformer (My First Game)!!!!!!!!!!
@Stage\n\n@level\n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [start v]\nnext costume\n\n@character\n\nwhen flag clicked\nset [x velocity v] to [0]\ngo to x: (-203) y: (50)\ngo to [front v] layer\nforever\n    if <key (left arrow v) pressed?> then\n        set [x velocity v] to ((Walk Speed) * (-1))\n        point in direction (-90)\n    end\n    change x by (x velocity)\n    change x by (wall jump velocity)\n    if <not <(x velocity) = [0]>> then\n        if <(direction) = [90]> then\n            change [x velocity v] by (-0.5)\n        end\n        if <(direction) = [-90]> then\n            change [x velocity v] by (0.5)\n        end\n    end\nend\n\nwhen flag clicked\nset [wall jump velocity v] to [0]\nforever\n    if <touching (level v)?> then\n        if <<key (up arrow v) pressed?> and <<<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> and <(Wall Jump Enabled?) = [1]>>> then\n            if <(direction) = [-90]> then\n                set [wall jump velocity v] to ((Walk Speed) * (Wall Jump Amount))\n                repeat ((Walk Speed) * (Wall Jump Amount))\n                    change [wall jump velocity v] by (-1)\n                end\n            end\n            if <(direction) = [90]> then\n                set [wall jump velocity v] to ((Walk Speed) * ((Wall Jump Amount) * (-1)))\n                repeat ((Walk Speed) * (Wall Jump Amount))\n                    change [wall jump velocity v] by (1)\n                end\n            end\n        else\n            if <(direction) = [-90]> then\n                change x by (Walk Speed)\n            end\n            if <(direction) = [90]> then\n                change x by ((Walk Speed) * (-1))\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [y velocity v] to [0]\nforever\n    change y by (y velocity)\n    if <touching (level v)?> then\n        change y by ((y velocity) * (-1))\n        set [y velocity v] to [0]\n    end\n    change y by (-1)\n    if <touching (level v)?> then\n        if <key (up arrow v) pressed?> then\n            set [jumping v] to [0.05]\n            set [y velocity v] to (Jump Amount)\n        end\n    end\n    if <(y velocity) = [0.5]> then\n        set [jumping v] to [0]\n    end\n    change y by (1)\n    change [y velocity v] by ((Gravity) * (-1))\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        set [x velocity v] to (Walk Speed)\n        point in direction (90)\n    end\nend\n\nwhen flag clicked\nset [wall jump enabled? v] to [0]\nset [wall jump amount v] to [2]\nset [jump amount v] to [10]\nset [gravity v] to [0.5]\nset [walk speed v] to [5]\n\nwhen flag clicked\nforever\n    if <touching (sprite1 v)?> then\n        broadcast (start v)\n    end\nend\n\nwhen I receive [start v]\ngo to x: (-203) y: (50)\n\nwhen flag clicked\nforever\n    if <touching color (#cc0000)?> then\n        go to x: (-203) y: (50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n    end\nend\n\n@backdrop1\n\nwhen flag clicked\n\n@Sprite2\n\n@Sprite1\n\nwhen flag clicked\nshow\n\n@Sprite4\n\n@Sprite3\n\nwhen flag clicked\nhide\n\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\n\n
Hello people\nThis is my first game!!!\nUse arrow keys \nSorry if its short :(\nAlso I think its pretty easy\nThe Volcano is erupting!! Go save your family!\n