{"action":"created","issue":{"url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/128","repository_url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation","labels_url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/128/comments","events_url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/128/events","html_url":"https://github.com/karai17/Simple-Tiled-Implementation/issues/128","id":189858784,"number":128,"title":"Objects don't flip correctly","user":{"login":"josefnpat","id":646162,"avatar_url":"https://avatars.githubusercontent.com/u/646162?v=3","gravatar_id":"","url":"https://api.github.com/users/josefnpat","html_url":"https://github.com/josefnpat","followers_url":"https://api.github.com/users/josefnpat/followers","following_url":"https://api.github.com/users/josefnpat/following{/other_user}","gists_url":"https://api.github.com/users/josefnpat/gists{/gist_id}","starred_url":"https://api.github.com/users/josefnpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josefnpat/subscriptions","organizations_url":"https://api.github.com/users/josefnpat/orgs","repos_url":"https://api.github.com/users/josefnpat/repos","events_url":"https://api.github.com/users/josefnpat/events{/privacy}","received_events_url":"https://api.github.com/users/josefnpat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T21:54:15Z","updated_at":"2016-11-16T23:03:04Z","closed_at":null,"body":"I don't think the flipping property works:\r\n\r\nVersion 0.17.1\r\n\r\nEditor:\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367281/75eca75c-ac14-11e6-8766-329994d9c36b.png)\r\n\r\nMap:drawLayer:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367314/9d3688dc-ac14-11e6-9d35-43a260d1fed0.png)\r\n\r\nEditor (horizontal):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367340/ac30e60c-ac14-11e6-9bee-41bbb19986fc.png)\r\n\r\nMap:drawLayer (horizontal):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367363/c14aeed4-ac14-11e6-982c-6a6ddee996dc.png)\r\n\r\nEditor (vertical):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367380/d493eae0-ac14-11e6-97b9-8aa1ddfd8f67.png)\r\n\r\nMap:drawLayer (vertical):\r\n\r\n![image](https://cloud.githubusercontent.com/assets/646162/20367398/e66ce96a-ac14-11e6-91b5-230f9a662c5b.png)\r\n"},"comment":{"url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/comments/261101272","html_url":"https://github.com/karai17/Simple-Tiled-Implementation/issues/128#issuecomment-261101272","issue_url":"https://api.github.com/repos/karai17/Simple-Tiled-Implementation/issues/128","id":261101272,"user":{"login":"josefnpat","id":646162,"avatar_url":"https://avatars.githubusercontent.com/u/646162?v=3","gravatar_id":"","url":"https://api.github.com/users/josefnpat","html_url":"https://github.com/josefnpat","followers_url":"https://api.github.com/users/josefnpat/followers","following_url":"https://api.github.com/users/josefnpat/following{/other_user}","gists_url":"https://api.github.com/users/josefnpat/gists{/gist_id}","starred_url":"https://api.github.com/users/josefnpat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josefnpat/subscriptions","organizations_url":"https://api.github.com/users/josefnpat/orgs","repos_url":"https://api.github.com/users/josefnpat/repos","events_url":"https://api.github.com/users/josefnpat/events{/privacy}","received_events_url":"https://api.github.com/users/josefnpat/received_events","type":"User","site_admin":false},"created_at":"2016-11-16T23:03:04Z","updated_at":"2016-11-16T23:03:04Z","body":"Ok, looking at the data, the vertical and horizontal flags are stored in the GID.\r\n\r\nReference: http://doc.mapeditor.org/reference/tmx-map-format/#tile-flipping\r\n\r\nThis seems to work for me:\r\n\r\n```lua\r\nlocal horizontal = obj.gid,bit.band(obj.gid,0x80000000)~=0\r\nlocal vertical = obj.gid,bit.band(obj.gid,0x40000000)~=0\r\n```\r\n\r\nNot sure if this helps at all."}}
{"actor":{"display_login":"josefnpat"}}