GameMaker (2.3)
Icon

Multi Object Tracking Camera

Albertros

You must be logged in to obtain assets

Description

A pretty simple and hopefully readable camera implementation that allows tracking multiple objects and zooming out dynamically so that they all fit on screen, unlike other assets on the market this allows tracking multiple types of objects easily, you can track individual instances or entire object classes.

  • Has a 'clamp to room' option
  • Allows adding\removing objects\instances to track during run time
  • Track individual instances or object types to track all object of a certain type
  • Easily set up multiple objects\classes to be tracked in one line of code.
  • New camera object now also has a Screen_Shake() function that can be used to trigger screenshakes, it can be customized with animation curves as shown in the example project.

The functionality is provided by a single object and no scripts, the project also contains a very simple example room and objects.

How to use: just place the 'MultiTrackCamera' object in the room, and then add objects to be tracked using the Track_Objects(object_to_track) function (which can be called from the MultiTrackCamera object itself or from any other object using dot notation "MultiTrackCamera.Track_Objects(object)"). As the function uses a with() statement it can accept object index or instance id so you can choose to either track a single instance or any instance of a certain object. For added convenience it is also possible to pass an array of objects\instances to the same function like this "MultiTrackCamera.Track_Objects([object1, object2, object3...])".

To stop tracking an object\instance use the "Stop_Tracking_Objects(object_or_instance_or_array)" function. Note that if some object is tracked both as an instance and as part of an object_index removing its instance from the tracked object array will not actually stop the tracking. A Stop_Tracking_All() method is also provided.

End User Licence Agreement (EULA).

Age Rating: 4+

Version

GMS2.3 - Version 1.0.4. Published January 27, 2022

Fixed minor issues with screenshake

Loading, please wait

Package contents

Loading, please wait

What is the issue?

Loading, please wait