{"action":"closed","issue":{"url":"https://api.github.com/repos/DanGiaime/IGME119-2DPlatformer/issues/14","repository_url":"https://api.github.com/repos/DanGiaime/IGME119-2DPlatformer","labels_url":"https://api.github.com/repos/DanGiaime/IGME119-2DPlatformer/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/DanGiaime/IGME119-2DPlatformer/issues/14/comments","events_url":"https://api.github.com/repos/DanGiaime/IGME119-2DPlatformer/issues/14/events","html_url":"https://github.com/DanGiaime/IGME119-2DPlatformer/issues/14","id":281172810,"number":14,"title":"\"Walk\" animation not playing + Fix","user":{"login":"jon101514","id":15642333,"avatar_url":"https://avatars0.githubusercontent.com/u/15642333?v=4","gravatar_id":"","url":"https://api.github.com/users/jon101514","html_url":"https://github.com/jon101514","followers_url":"https://api.github.com/users/jon101514/followers","following_url":"https://api.github.com/users/jon101514/following{/other_user}","gists_url":"https://api.github.com/users/jon101514/gists{/gist_id}","starred_url":"https://api.github.com/users/jon101514/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jon101514/subscriptions","organizations_url":"https://api.github.com/users/jon101514/orgs","repos_url":"https://api.github.com/users/jon101514/repos","events_url":"https://api.github.com/users/jon101514/events{/privacy}","received_events_url":"https://api.github.com/users/jon101514/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-11T21:27:21Z","updated_at":"2017-12-12T20:30:05Z","closed_at":"2017-12-12T20:30:05Z","author_association":"CONTRIBUTOR","body":"Mr. Giaime:\r\nGood afternoon; I hope you are doing well. I believe that I have found both a bug and its subsequent fix in this project. The \"Walk\" animation for the player never triggers, despite transitions being set up for it in the Animation Controller. I found that the Direction parameter is never changed, so my fix to the problem is as follows: \r\nIn FixedUpdate() of SimplePlatformController.cs, add the following code after the line \"float h = Input.GetAxis(\"Horizontal\");\":  \r\n\r\nif (h != 0) {\r\n\t\t\tanim.SetInteger(\"Direction\", 1);\r\n\t\t} else {\r\n\t\t\tanim.SetInteger(\"Direction\", 0);\r\n\t\t}\r\n\r\nI hope this helps in improving the project, and thank you for your time.\r\n- Jonathan So"}}
{"actor":{"display_login":"DanGiaime"}}