# Group of interactive objects (v3)

**URL:** <https://phaser.discourse.group/t/group-of-interactive-objects-v3/971>\
**Category:** Examples\
**Created:** [January 27, 2019, 9:57pm UTC](https://phaser.discourse.group/t/group-of-interactive-objects-v3/971 "2019-01-27T21:57:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![samme](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/samme/32/5275_2.png) [@samme](https://phaser.discourse.group/u/samme)\
**Post date:** [January 27, 2019, 9:57pm UTC](https://phaser.discourse.group/t/group-of-interactive-objects-v3/971/1 "2019-01-27T21:57:28Z")

</div>

Here are two ways to make a group of interactive objects.

https://codepen.io/samme/embed/preview/pQWyMG?height=300&slug-hash=pQWyMG&default-tabs=js,result&host=https://codepen.io

This uses the `hitArea` and `hitAreaCallback` properties of the [GroupCreateConfig](https://photonstorm.github.io/phaser3-docs/global.html#GroupCreateConfig), in [createMultiple()](https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.Group.html#createMultiple__anchor).

Each group member will use a distinct hit area shape identical to the others, positioned on itself.

https://codepen.io/samme/embed/preview/BMNQWd?height=300&slug-hash=BMNQWd&default-tabs=js,result&host=https://codepen.io

This uses the [SetHitArea](https://photonstorm.github.io/phaser3-docs/Phaser.Actions.html#.SetHitArea__anchor) action. That action also takes `hitArea` and `hitAreaCallback` arguments, but you can omit them; in that case it works just like [setInteractive()](https://photonstorm.github.io/phaser3-docs/Phaser.GameObjects.GameObject.html#setInteractive__anchor) and uses each object’s texture frame as a hit area.
