{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/2768","repository_url":"https://api.github.com/repos/photonstorm/phaser","labels_url":"https://api.github.com/repos/photonstorm/phaser/issues/2768/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser/issues/2768/comments","events_url":"https://api.github.com/repos/photonstorm/phaser/issues/2768/events","html_url":"https://github.com/photonstorm/phaser/issues/2768","id":179042234,"number":2768,"title":"Rotating child of sprite twitches ","user":{"login":"ForgeableSum","id":4404920,"avatar_url":"https://avatars.githubusercontent.com/u/4404920?v=3","gravatar_id":"","url":"https://api.github.com/users/ForgeableSum","html_url":"https://github.com/ForgeableSum","followers_url":"https://api.github.com/users/ForgeableSum/followers","following_url":"https://api.github.com/users/ForgeableSum/following{/other_user}","gists_url":"https://api.github.com/users/ForgeableSum/gists{/gist_id}","starred_url":"https://api.github.com/users/ForgeableSum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForgeableSum/subscriptions","organizations_url":"https://api.github.com/users/ForgeableSum/orgs","repos_url":"https://api.github.com/users/ForgeableSum/repos","events_url":"https://api.github.com/users/ForgeableSum/events{/privacy}","received_events_url":"https://api.github.com/users/ForgeableSum/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-09-24T17:41:36Z","updated_at":"2016-09-24T23:06:52Z","closed_at":"2016-09-24T23:06:52Z","body":"If you rotate the child of a sprite with a tween, the tween looks twitchy. Doing the same rotation tween on the child of a group looks fine. \r\n\r\nThis gif demonstrates what I'm talking about. The first tank (the twitchy one) is a sprite (the bottom of the tank) with a gun on top as a child of the sprite. Rotating the child with a tween makes it twitch. Using the same exact paramaters for the tween but with the gun and tank bottom being siblings in the same group (rather than parent-child), fixes the problem (see second tank in the gif):\r\n\r\nhttps://media.giphy.com/media/3o7TKLTdjjfnWXKWAw/giphy.gif\r\n\r\nWhat is going on here? P.S. the problem doesn't happen in 100% of environments. For example, if you have a simple little game with one sprite and a game size of 500 x 500 pixels, it's probably not going to twitch (tried in the phaser sandbox editor). \r\n\r\nAlso, I'm prepared to rewrite my game so each game object is a group instead of a sprite with child sprites. Other than fixing this bug, the other benefit is being able to change the render order (so i could move sprites to the bottom or bring to front at will - which you can't do with parent/child sprites as children are always rendered on top). But I have concerns about performance. If each game object in my game is a group, with several child sprite, would the performance be on par if each game object was a sprite with several child sprites? If so I'd very much like to use groups for each of my game objects.  \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser/issues/comments/249392496","html_url":"https://github.com/photonstorm/phaser/issues/2768#issuecomment-249392496","issue_url":"https://api.github.com/repos/photonstorm/phaser/issues/2768","id":249392496,"user":{"login":"ForgeableSum","id":4404920,"avatar_url":"https://avatars.githubusercontent.com/u/4404920?v=3","gravatar_id":"","url":"https://api.github.com/users/ForgeableSum","html_url":"https://github.com/ForgeableSum","followers_url":"https://api.github.com/users/ForgeableSum/followers","following_url":"https://api.github.com/users/ForgeableSum/following{/other_user}","gists_url":"https://api.github.com/users/ForgeableSum/gists{/gist_id}","starred_url":"https://api.github.com/users/ForgeableSum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForgeableSum/subscriptions","organizations_url":"https://api.github.com/users/ForgeableSum/orgs","repos_url":"https://api.github.com/users/ForgeableSum/repos","events_url":"https://api.github.com/users/ForgeableSum/events{/privacy}","received_events_url":"https://api.github.com/users/ForgeableSum/received_events","type":"User","site_admin":false},"created_at":"2016-09-24T23:06:52Z","updated_at":"2016-09-24T23:06:52Z","body":"Okay, so it turned out I was adding a tween somewhere else in my code. So the two tweens were happening simultaneously causing a twitch. Closing this issue. "}}
{"actor":{"display_login":"ForgeableSum"}}