{"action":"created","issue":{"url":"https://api.github.com/repos/englercj/phaser-tiled/issues/30","labels_url":"https://api.github.com/repos/englercj/phaser-tiled/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/englercj/phaser-tiled/issues/30/comments","events_url":"https://api.github.com/repos/englercj/phaser-tiled/issues/30/events","html_url":"https://github.com/englercj/phaser-tiled/issues/30","id":85818404,"number":30,"title":"removeTile causes \"flashing\" screen","user":{"login":"The-Outrider","id":6240904,"avatar_url":"https://avatars.githubusercontent.com/u/6240904?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Outrider","html_url":"https://github.com/The-Outrider","followers_url":"https://api.github.com/users/The-Outrider/followers","following_url":"https://api.github.com/users/The-Outrider/following{/other_user}","gists_url":"https://api.github.com/users/The-Outrider/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Outrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Outrider/subscriptions","organizations_url":"https://api.github.com/users/The-Outrider/orgs","repos_url":"https://api.github.com/users/The-Outrider/repos","events_url":"https://api.github.com/users/The-Outrider/events{/privacy}","received_events_url":"https://api.github.com/users/The-Outrider/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/englercj/phaser-tiled/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/englercj/phaser-tiled/milestones/4","html_url":"https://github.com/englercj/phaser-tiled/milestones/v2.0.0","labels_url":"https://api.github.com/repos/englercj/phaser-tiled/milestones/4/labels","id":836283,"number":4,"title":"v2.0.0","description":"","creator":{"login":"englercj","id":944497,"avatar_url":"https://avatars.githubusercontent.com/u/944497?v=3","gravatar_id":"","url":"https://api.github.com/users/englercj","html_url":"https://github.com/englercj","followers_url":"https://api.github.com/users/englercj/followers","following_url":"https://api.github.com/users/englercj/following{/other_user}","gists_url":"https://api.github.com/users/englercj/gists{/gist_id}","starred_url":"https://api.github.com/users/englercj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englercj/subscriptions","organizations_url":"https://api.github.com/users/englercj/orgs","repos_url":"https://api.github.com/users/englercj/repos","events_url":"https://api.github.com/users/englercj/events{/privacy}","received_events_url":"https://api.github.com/users/englercj/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2014-10-22T17:46:09Z","updated_at":"2015-06-06T22:44:12Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-06T22:37:33Z","updated_at":"2015-06-12T23:13:46Z","closed_at":null,"body":"When I trigger the removeTile on the Tilemap object the screen flashes for a brief moment. \r\n\r\nLine of code I am using is: \r\n\r\n\r\n        this.map.map.removeTile((Math.floor((this.sprite.x +directionHorizontal)  / 32)), (Math.floor((this.sprite.y + directionVertical) / 32)), 3);\r\n\r\n(The .map.map is an unfortunate naming coincidence that I'll refactor soon). \r\n\r\nCan be seen here: chat.outriderstudio.com:3000 (Username: test2 // Password: test2) \r\n\r\nUse Case:\r\nThe removeTile is bound to a keyboard command, face an object somewhere on the map, and hit the 1 key (non keypad) and you'll see the event fire, might have to press 1 a couple of times due to a seperate issue in a onAnimationComplete callback command."},"comment":{"url":"https://api.github.com/repos/englercj/phaser-tiled/issues/comments/111639507","html_url":"https://github.com/englercj/phaser-tiled/issues/30#issuecomment-111639507","issue_url":"https://api.github.com/repos/englercj/phaser-tiled/issues/30","id":111639507,"user":{"login":"The-Outrider","id":6240904,"avatar_url":"https://avatars.githubusercontent.com/u/6240904?v=3","gravatar_id":"","url":"https://api.github.com/users/The-Outrider","html_url":"https://github.com/The-Outrider","followers_url":"https://api.github.com/users/The-Outrider/followers","following_url":"https://api.github.com/users/The-Outrider/following{/other_user}","gists_url":"https://api.github.com/users/The-Outrider/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Outrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Outrider/subscriptions","organizations_url":"https://api.github.com/users/The-Outrider/orgs","repos_url":"https://api.github.com/users/The-Outrider/repos","events_url":"https://api.github.com/users/The-Outrider/events{/privacy}","received_events_url":"https://api.github.com/users/The-Outrider/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T23:13:46Z","updated_at":"2015-06-12T23:13:46Z","body":"Confirmed with some testing. The issue is due to the line \r\n\r\nthis.layers[layer].dirty = true; in the removeTile method.\r\n\r\nSeems like its just setting a property? Whats it doing when the layer dirty resolves to true?"}}