{"action":"created","issue":{"url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/22","repository_url":"https://api.github.com/repos/photonstorm/phaser3-examples","labels_url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/22/comments","events_url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/22/events","html_url":"https://github.com/photonstorm/phaser3-examples/issues/22","id":303509350,"number":22,"title":"Flood fill example has a bug.","user":{"login":"whoiscc","id":35130945,"avatar_url":"https://avatars0.githubusercontent.com/u/35130945?v=4","gravatar_id":"","url":"https://api.github.com/users/whoiscc","html_url":"https://github.com/whoiscc","followers_url":"https://api.github.com/users/whoiscc/followers","following_url":"https://api.github.com/users/whoiscc/following{/other_user}","gists_url":"https://api.github.com/users/whoiscc/gists{/gist_id}","starred_url":"https://api.github.com/users/whoiscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whoiscc/subscriptions","organizations_url":"https://api.github.com/users/whoiscc/orgs","repos_url":"https://api.github.com/users/whoiscc/repos","events_url":"https://api.github.com/users/whoiscc/events{/privacy}","received_events_url":"https://api.github.com/users/whoiscc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-08T14:58:01Z","updated_at":"2018-03-22T19:27:37Z","closed_at":null,"author_association":"NONE","body":"The game is [here](https://labs.phaser.io/view.html?src=src\\games\\flood\\flood-fill.js). The bug occurs randomly, and more frequently if the screen recorder is not enabled.\r\n![2018-03-08_22-47-30-1-1](https://user-images.githubusercontent.com/35130945/37157547-1a8c292c-2324-11e8-996d-82a8260693fa.gif)\r\n<img width=\"802\" alt=\"screen shot 2018-03-08 at 10 59 38 pm\" src=\"https://user-images.githubusercontent.com/35130945/37157689-6d98e2b8-2324-11e8-8f59-9a8f5b45146b.png\">\r\n\r\n\r\n<bountysource-plugin>\r\n\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/55966169-flood-fill-example-has-a-bug?utm_campaign=plugin&utm_content=tracker%2F48931134&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F48931134&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/comments/375429119","html_url":"https://github.com/photonstorm/phaser3-examples/issues/22#issuecomment-375429119","issue_url":"https://api.github.com/repos/photonstorm/phaser3-examples/issues/22","id":375429119,"user":{"login":"Matthew-Herman","id":17124331,"avatar_url":"https://avatars1.githubusercontent.com/u/17124331?v=4","gravatar_id":"","url":"https://api.github.com/users/Matthew-Herman","html_url":"https://github.com/Matthew-Herman","followers_url":"https://api.github.com/users/Matthew-Herman/followers","following_url":"https://api.github.com/users/Matthew-Herman/following{/other_user}","gists_url":"https://api.github.com/users/Matthew-Herman/gists{/gist_id}","starred_url":"https://api.github.com/users/Matthew-Herman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Matthew-Herman/subscriptions","organizations_url":"https://api.github.com/users/Matthew-Herman/orgs","repos_url":"https://api.github.com/users/Matthew-Herman/repos","events_url":"https://api.github.com/users/Matthew-Herman/events{/privacy}","received_events_url":"https://api.github.com/users/Matthew-Herman/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T19:27:37Z","updated_at":"2018-03-22T19:27:37Z","author_association":"NONE","body":"Copying this from a duplicate issue:\r\nI have been looking at this bug and it seems to be an issue with stopping the tween that plays once a user mouses over a monster icon.\r\n\r\nOn line 364 we have this function\r\n\r\n    onIconOut: function (pointer, gameObject)\r\n    {\r\n        console.log(this.monsterTween.targets[0].y);\r\n\r\n        //this line causes monster.y to become 0 when cursor moves erratically \r\n        this.monsterTween.stop(0);\r\n\r\n        console.log(this.monsterTween.targets[0].y);\r\n\r\n        this.cursorTween = this.tweens.add({\r\n            targets: this.cursor,\r\n            alpha: 0,\r\n            duration: 300\r\n        });\r\n\r\n        this.arrow.setFrame('arrow-white');\r\n    },\r\nIt is certainly the behvaior of this.monsterTween.stop(0);, which causes the tween to stop but sometimes erroneously sets the y position of the monster icon to 0. I'm struggling to find out why this is because I don't know how stopping Tweens is implemented."}}
{"actor":{"display_login":"Matthew-Herman"}}