{"action":"created","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/12231","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/12231/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/12231/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/12231/events","html_url":"https://github.com/cocos2d/cocos2d-x/issues/12231","id":85910636,"number":12231,"title":"Question regarding parsing an object in TMXXMLParser::startElement","user":{"login":"Pouja","id":2385144,"avatar_url":"https://avatars.githubusercontent.com/u/2385144?v=3","gravatar_id":"","url":"https://api.github.com/users/Pouja","html_url":"https://github.com/Pouja","followers_url":"https://api.github.com/users/Pouja/followers","following_url":"https://api.github.com/users/Pouja/following{/other_user}","gists_url":"https://api.github.com/users/Pouja/gists{/gist_id}","starred_url":"https://api.github.com/users/Pouja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pouja/subscriptions","organizations_url":"https://api.github.com/users/Pouja/orgs","repos_url":"https://api.github.com/users/Pouja/repos","events_url":"https://api.github.com/users/Pouja/events{/privacy}","received_events_url":"https://api.github.com/users/Pouja/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"dabingnn","id":4794489,"avatar_url":"https://avatars.githubusercontent.com/u/4794489?v=3","gravatar_id":"","url":"https://api.github.com/users/dabingnn","html_url":"https://github.com/dabingnn","followers_url":"https://api.github.com/users/dabingnn/followers","following_url":"https://api.github.com/users/dabingnn/following{/other_user}","gists_url":"https://api.github.com/users/dabingnn/gists{/gist_id}","starred_url":"https://api.github.com/users/dabingnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dabingnn/subscriptions","organizations_url":"https://api.github.com/users/dabingnn/orgs","repos_url":"https://api.github.com/users/dabingnn/repos","events_url":"https://api.github.com/users/dabingnn/events{/privacy}","received_events_url":"https://api.github.com/users/dabingnn/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/22","html_url":"https://github.com/cocos2d/cocos2d-x/milestones/unconfirmed","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-x/milestones/22/labels","id":1080226,"number":22,"title":"unconfirmed","description":"","creator":{"login":"walzer","id":345379,"avatar_url":"https://avatars.githubusercontent.com/u/345379?v=3","gravatar_id":"","url":"https://api.github.com/users/walzer","html_url":"https://github.com/walzer","followers_url":"https://api.github.com/users/walzer/followers","following_url":"https://api.github.com/users/walzer/following{/other_user}","gists_url":"https://api.github.com/users/walzer/gists{/gist_id}","starred_url":"https://api.github.com/users/walzer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walzer/subscriptions","organizations_url":"https://api.github.com/users/walzer/orgs","repos_url":"https://api.github.com/users/walzer/repos","events_url":"https://api.github.com/users/walzer/events{/privacy}","received_events_url":"https://api.github.com/users/walzer/received_events","type":"User","site_admin":false},"open_issues":210,"closed_issues":79,"state":"open","created_at":"2015-04-23T08:44:11Z","updated_at":"2015-12-02T08:20:55Z","due_on":"2015-11-29T16:00:00Z","closed_at":null},"comments":2,"created_at":"2015-06-07T15:13:58Z","updated_at":"2015-12-02T08:20:55Z","closed_at":"2015-12-02T08:20:55Z","body":"While I was reading how a tmx file gets parsed, I came across this: [CCTMXXLParser.cpp](https://github.com/cocos2d/cocos2d-x/blob/v3/cocos/2d/CCTMXXMLParser.cpp#L457).\r\n\r\nI have 2 questions about that specific line of code:\r\n * ~~Why are you taking the mapsize.y in the equation for calculating the y coordinate?~~ Already figured it out: It is because the y-zero is different for tiledmap and opengl.\r\n * Shouldn't it be: `_mapSize.height * _tileSize.height - y  - objectGroup->getPositionOffset().y - attributeDict[\"height\"].asInt()` instead of `_mapSize.height * _tileSize.height - y  - objectGroup->getPositionOffset().x - attributeDict[\"height\"].asInt()`. So: taking the offset in y direction instead of the x direction, which makes more sense if I'm not mistaken.\r\n"},"comment":{"url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/comments/161216553","html_url":"https://github.com/cocos2d/cocos2d-x/issues/12231#issuecomment-161216553","issue_url":"https://api.github.com/repos/cocos2d/cocos2d-x/issues/12231","id":161216553,"user":{"login":"Pouja","id":2385144,"avatar_url":"https://avatars.githubusercontent.com/u/2385144?v=3","gravatar_id":"","url":"https://api.github.com/users/Pouja","html_url":"https://github.com/Pouja","followers_url":"https://api.github.com/users/Pouja/followers","following_url":"https://api.github.com/users/Pouja/following{/other_user}","gists_url":"https://api.github.com/users/Pouja/gists{/gist_id}","starred_url":"https://api.github.com/users/Pouja/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pouja/subscriptions","organizations_url":"https://api.github.com/users/Pouja/orgs","repos_url":"https://api.github.com/users/Pouja/repos","events_url":"https://api.github.com/users/Pouja/events{/privacy}","received_events_url":"https://api.github.com/users/Pouja/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T08:20:55Z","updated_at":"2015-12-02T08:20:55Z","body":"Yup closing it"}}