# Problem with overlap method!

**URL:** <https://phaser.discourse.group/t/problem-with-overlap-method/2528>\
**Category:** Phaser 3\
**Created:** [May 22, 2019, 7:13am UTC](https://phaser.discourse.group/t/problem-with-overlap-method/2528 "2019-05-22T07:13:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![noobie](https://avatars.discourse-cdn.com/v4/letter/n/d78d45/32.png) [@noobie](https://phaser.discourse.group/u/noobie)\
**Post date:** [May 22, 2019, 7:13am UTC](https://phaser.discourse.group/t/problem-with-overlap-method/2528/1 "2019-05-22T07:13:28Z")

</div>

i’m trying to make a simple 2d game, it based on the " make your first game tutoriel " , the sprite collects the stars but each time it overlaps with a star it color changes, the problem is that i can’t make that transition, anything i write below that function dosn’t seem to be combiled.  
i can provide screenshots or snippets of code if needed, any help would be great!

---

<div class="post-metadata">

**Author:** ![Skwal](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/skwal/32/1212_2.png) [@Skwal](https://phaser.discourse.group/u/Skwal)\
**Post date:** [May 22, 2019, 2:41pm UTC](https://phaser.discourse.group/t/problem-with-overlap-method/2528/2 "2019-05-22T14:41:23Z")

</div>

Hi @noobie, a bit of code is always useful to help us understand what the problem is.
