Hello I i my project I want create overlap beetwen to images. But I only have collision.
Can you halp please?
class FinishRace{
constructor(scene){
this.scene=scene;
this.finishLine = this.scene.physics.add.image(207,384,"finish");
this.try = this.scene.matter.add.image(100, 550, 'pic', null, { isStatic: false });
}
create(){
this.text = this.scene.add.text(50,50,"", {
font: "40px Arial",
fill: "#ffffff",
align: "center"
});
}
countLaps(laps){
this.scene.physics.add.overlap(f1_car,this.try,console.log("aa"));
}
}