I’m trying to use phaser and I’ve hit a snag during one of my tests.
I’ve got a GameObjects.Container that contains several images at various relative positions.
For each added image, I call .setInteractive({cursor: “pointer”}) and .on(“pointerdown”, … )
My expectation is that on the scene, when I click on the image, the function referenced by “on” is called.
However the clickable area is offset toward the center of the container compared to the image and it makes no sense to me.
e.g.
If an image of 16x16 is 64 pixels on the right side of the container (+64, +0), its clickable area will be around (+48, +0) on the right side of the container.