{"action":"created","issue":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/904","labels_url":"https://api.github.com/repos/craftyjs/Crafty/issues/904/labels{/name}","comments_url":"https://api.github.com/repos/craftyjs/Crafty/issues/904/comments","events_url":"https://api.github.com/repos/craftyjs/Crafty/issues/904/events","html_url":"https://github.com/craftyjs/Crafty/issues/904","id":77055964,"number":904,"title":"Manipulating velocity conflicts with Multiway","user":{"login":"mucaho","id":3935691,"avatar_url":"https://avatars.githubusercontent.com/u/3935691?v=3","gravatar_id":"","url":"https://api.github.com/users/mucaho","html_url":"https://github.com/mucaho","followers_url":"https://api.github.com/users/mucaho/followers","following_url":"https://api.github.com/users/mucaho/following{/other_user}","gists_url":"https://api.github.com/users/mucaho/gists{/gist_id}","starred_url":"https://api.github.com/users/mucaho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mucaho/subscriptions","organizations_url":"https://api.github.com/users/mucaho/orgs","repos_url":"https://api.github.com/users/mucaho/repos","events_url":"https://api.github.com/users/mucaho/events{/privacy}","received_events_url":"https://api.github.com/users/mucaho/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/craftyjs/Crafty/labels/BUG","name":"BUG","color":"e11d21"},{"url":"https://api.github.com/repos/craftyjs/Crafty/labels/Motion","name":"Motion","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-05-16T14:56:18Z","updated_at":"2015-06-10T04:12:46Z","closed_at":null,"body":"As described [in this post](https://github.com/craftyjs/Crafty/issues/903#issuecomment-102533377) resetting velocity `vx = 0` while a key is pressed will lead to undesired behavior after releasing said key.\r\n[Relevant lines](https://github.com/craftyjs/Crafty/blob/e79a84cc5a39a39603b7020192301da1944258fc/src/controls/controls.js#L158-L178):\r\n```js\r\n_keydown: function (e) { ...\r\n    this.vx += directionSpeed.x;\r\n    this.vy += directionSpeed.y;\r\n... },\r\n\r\n_keyup: function (e) { ...\r\n    this.vx -= directionSpeed.x;\r\n    this.vy -= directionSpeed.y;\r\n... },\r\n```"},"comment":{"url":"https://api.github.com/repos/craftyjs/Crafty/issues/comments/110583396","html_url":"https://github.com/craftyjs/Crafty/issues/904#issuecomment-110583396","issue_url":"https://api.github.com/repos/craftyjs/Crafty/issues/904","id":110583396,"user":{"login":"ashes999","id":18432,"avatar_url":"https://avatars.githubusercontent.com/u/18432?v=3","gravatar_id":"","url":"https://api.github.com/users/ashes999","html_url":"https://github.com/ashes999","followers_url":"https://api.github.com/users/ashes999/followers","following_url":"https://api.github.com/users/ashes999/following{/other_user}","gists_url":"https://api.github.com/users/ashes999/gists{/gist_id}","starred_url":"https://api.github.com/users/ashes999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashes999/subscriptions","organizations_url":"https://api.github.com/users/ashes999/orgs","repos_url":"https://api.github.com/users/ashes999/repos","events_url":"https://api.github.com/users/ashes999/events{/privacy}","received_events_url":"https://api.github.com/users/ashes999/received_events","type":"User","site_admin":false},"created_at":"2015-06-10T04:12:46Z","updated_at":"2015-06-10T04:12:46Z","body":"@starwed how would I build a grappling hook? Acceleration doesn't really fit here, it's more like movement at a fixed velocity.\r\n\r\nMy current solution is terrible (manually change the player's coordinates), but acceptable because it's a prototype."}}