Hello! I am new to Phaser, try to make my first game. I created container with image and text, then I need to check overlap between this container and sprite. I use this.physics.add.overlap, but it doesn’t work. May be I need to use something other?
let crow = this.physics.add.sprite(100, 300, 'crow');
let bubble = this.physics.add.image(0, 0, 'bubble').setScale(0.14, 0.14);
let answer = this.add.text(0, 0, 'some text', style).setOrigin(0.5, 0.5);
let container = this.add.container(120, 200, [bubble, answer])
//overlap detection
this.physics.add.overlap(crow, container, chooseAnswer, null, this);