# Follow multiple

**URL:** <https://phaser.discourse.group/t/follow-multiple/9361>\
**Category:** Phaser 3\
**Created:** [April 21, 2021, 8:07am UTC](https://phaser.discourse.group/t/follow-multiple/9361 "2021-04-21T08:07:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![easierbycode](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/easierbycode/32/5069_2.png) [@easierbycode](https://phaser.discourse.group/u/easierbycode)\
**Post date:** [April 21, 2021, 8:07am UTC](https://phaser.discourse.group/t/follow-multiple/9361/1 "2021-04-21T08:07:30Z")

</div>

How can I follow/zoomToFit multiple players with the camera?

[… here is what I have so far](https://codepen.io/EasierByCode/live/WNRgjWE)

---

<div class="post-metadata">

**Author:** ![Milton](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Milton](https://phaser.discourse.group/u/Milton)\
**Post date:** [April 21, 2021, 8:42am UTC](https://phaser.discourse.group/t/follow-multiple/9361/2 "2021-04-21T08:42:31Z")

</div>

> [@Zoom main camera to fit bounds / game-objects?](https://phaser.discourse.group/t/zoom-main-camera-to-fit-bounds-game-objects/9078):
>
> Say I want to zoom the camera to fit a Geom.Rectangle bounds, or a pair of game objects - is that even possible? Camera zooms appear to be purely numeric values, whereas I was hoping to be able to zoom the camera so that it always fitted GameObject A & GameObject B within the viewport (so I could create a Rectangle bounds from this easily enough if that was the way to do it…

---

<div class="post-metadata">

**Author:** ![easierbycode](https://yyz2.discourse-cdn.com/free1/user_avatar/phaser.discourse.group/easierbycode/32/5069_2.png) [@easierbycode](https://phaser.discourse.group/u/easierbycode)\
**Post date:** [May 4, 2021, 7:53pm UTC](https://phaser.discourse.group/t/follow-multiple/9361/3 "2021-05-04T19:53:34Z")

</div>

with players at adjacent corners the game only fills ~25% of the screen…

[https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/3/338415389620ff4b0d0ec4d29fc92897b1249ea8.webm](https://global.discourse-cdn.com/free1/uploads/phaser1/original/2X/3/338415389620ff4b0d0ec4d29fc92897b1249ea8.webm)

Is there another approach that retains the game size?

---

<div class="post-metadata">

**Author:** ![Milton](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@Milton](https://phaser.discourse.group/u/Milton)\
**Post date:** [May 5, 2021, 5:59am UTC](https://phaser.discourse.group/t/follow-multiple/9361/4 "2021-05-05T05:59:17Z")

</div>

Set ZOOM\_MIN to this.scale.height / HEIGHT, if scale.height \<= scale.width of course.
