Problem with overlap method!

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!

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