Skip to content

Follow multiple 2D objects with the camera

Change the zoom and position of the camera to keep all instances of an object (or object group) on the screen.

Authors and contributors to this community extension: VictrisGames, MrMen.


Use the "Follow multiple 2D objects with the camera" action on every frame that you want the camera to move.
If you want to select which object instances are tracked by the camera, add conditions to that event.

  • Use an object group to track multiple objects.
  • Only run on one layer at a time. If multiple layers need to move the same way, create events that copy CameraX, CameraY, and CameraZoom values (or use the "Copy camera settings" extension)
  • This action can also be used on a single object instance to move the camera smoothly - though other extensions might be more adapted.

Tip

Learn how to install new extensions by following a step-by-step guide.

Actions

Follow multiple objects with camera
Change the zoom and position of the camera to keep all instances of an object (or object group) on the screen.


This page is an auto-generated reference page about the Follow multiple 2D objects with the camera extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.