{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/2059","repository_url":"https://api.github.com/repos/HaxeFlixel/flixel","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/2059/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/2059/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/2059/events","html_url":"https://github.com/HaxeFlixel/flixel/issues/2059","id":224933474,"number":2059,"title":"Fake overlap callbacks for FlxSprite after they no longer overlap","user":{"login":"starry-abyss","id":11571820,"avatar_url":"https://avatars3.githubusercontent.com/u/11571820?v=3","gravatar_id":"","url":"https://api.github.com/users/starry-abyss","html_url":"https://github.com/starry-abyss","followers_url":"https://api.github.com/users/starry-abyss/followers","following_url":"https://api.github.com/users/starry-abyss/following{/other_user}","gists_url":"https://api.github.com/users/starry-abyss/gists{/gist_id}","starred_url":"https://api.github.com/users/starry-abyss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/starry-abyss/subscriptions","organizations_url":"https://api.github.com/users/starry-abyss/orgs","repos_url":"https://api.github.com/users/starry-abyss/repos","events_url":"https://api.github.com/users/starry-abyss/events{/privacy}","received_events_url":"https://api.github.com/users/starry-abyss/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-27T22:44:03Z","updated_at":"2017-04-28T00:20:28Z","closed_at":null,"body":"- **Haxe version:** 3.2.0\r\n- **Flixel version:** cddeaae\r\n- **OpenFL version:** 3.6.1\r\n- **Lime version:** 2.9.1\r\n- **Affected targets:** neko, flash\r\n\r\n________________________________\r\n\r\nAnd also two \"good overlap\"'s and two \"fake overlap\"'s are triggered in the same frame (two overlaps per frame).\r\n\r\n**Code snippet reproducing the issue**:\r\n\r\n```haxe\r\npackage;\r\n\r\nimport flixel.FlxG;\r\nimport flixel.FlxSprite;\r\nimport flixel.FlxState;\r\nimport flixel.input.mouse.FlxMouseEventManager;\r\nimport flixel.math.FlxVector;\r\nimport flixel.text.FlxText;\r\nimport flixel.tile.FlxTilemap;\r\nimport flixel.ui.FlxButton;\r\nimport flixel.math.FlxMath;\r\nimport flixel.util.FlxColor;\r\n\r\nclass PlayState extends FlxState\r\n{\r\n\tvar enemySprite: FlxSprite;\r\n\tvar playerSprite: FlxSprite;\r\n\t\r\n\toverride public function create():Void\r\n\t{\r\n\t\tsuper.create();\r\n\r\n\t\tenemySprite = new FlxSprite(100, 300);\r\n\t\tenemySprite.makeGraphic(100, 100, FlxColor.RED);\r\n\t\tadd(enemySprite);\r\n\t\t\r\n\t\tplayerSprite = new FlxSprite(100, 100);\r\n\t\tplayerSprite.makeGraphic(100, 100, FlxColor.GREEN);\r\n\t\tadd(playerSprite);\r\n\t\t\r\n\t\tplayerSprite.velocity.y = 100;\r\n\t}\r\n\r\n\toverride public function update(elapsed:Float):Void\r\n\t{\r\n\t\tsuper.update(elapsed);\r\n\r\n\t\tFlxG.overlap(playerSprite, enemySprite, enemyCallback);\r\n\t}\r\n\t\r\n\tfunction enemyCallback(playerSprite: FlxSprite, enemySprite: FlxSprite): Void\r\n\t{\r\n\t\tif (!playerSprite.overlaps(enemySprite))\r\n\t\t{\r\n\t\t\ttrace(\"fake overlap\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttrace(\"good overlap\");\r\n\t\t\r\n\t\tplayerSprite.velocity.y = -100;\r\n\t}\r\n}\r\n```\r\n\r\n________________________________\r\n\r\n**Observed behavior:**\r\ngood overlap\r\ngood overlap\r\nfake overlap\r\nfake overlap\r\n\r\n**Expected behavior:**\r\ngood overlap\r\n"},"comment":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/comments/297874084","html_url":"https://github.com/HaxeFlixel/flixel/issues/2059#issuecomment-297874084","issue_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/2059","id":297874084,"user":{"login":"MSGhero","id":5033927,"avatar_url":"https://avatars0.githubusercontent.com/u/5033927?v=3","gravatar_id":"","url":"https://api.github.com/users/MSGhero","html_url":"https://github.com/MSGhero","followers_url":"https://api.github.com/users/MSGhero/followers","following_url":"https://api.github.com/users/MSGhero/following{/other_user}","gists_url":"https://api.github.com/users/MSGhero/gists{/gist_id}","starred_url":"https://api.github.com/users/MSGhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSGhero/subscriptions","organizations_url":"https://api.github.com/users/MSGhero/orgs","repos_url":"https://api.github.com/users/MSGhero/repos","events_url":"https://api.github.com/users/MSGhero/events{/privacy}","received_events_url":"https://api.github.com/users/MSGhero/received_events","type":"User","site_admin":false},"created_at":"2017-04-28T00:20:28Z","updated_at":"2017-04-28T00:20:28Z","body":"The multiple overlap thing is #1247, unsure of how overlaps work re: the second part."}}
{"actor":{"display_login":"MSGhero"}}