i would like to have a map with spots, which turn around when you hover.
I thought this should be possible with a group, but when i add all spots to a group and set the group interactive all spots move when i hover over one of them. The but only the one my pointer is over should do this animation. So can i get the element of an group, which overlaps with my pointer?
Thank you, it works for the spots but unfortunately although the other object, that are interactive, are playing now the animation of the spots when hover…
var child = this.add.sprite(250, 250, 'boss1');
var child2 = this.add.sprite(250, 250, 'boss1');
var child3 = this.add.sprite(250, 250, 'boss1');
var children = this.physics.add.group();
children.add(child);
children.add(child2);
children.add(child3);
children.getChildren().forEach( function() {
console.log("Output per child of the group")
});