2 Subject Camera, 2-Players

I saw an earlier help request for help with the same topic, using the mouse as the second subject, along with the player character. I was wondering how one could customise that code so another sprite could be the second subject. This was given as an example in the dynamic cameras help video, but the code example given only shows the mouse movement trigger. I’m pretty new at this, so maybe it’s an easy fix. Thanks in advance for the help.

Try this example and replace the mouse with the other objects x and y.
Flowlab Game Creator - 2 Subject Camera


Thank you! That’s super helpful.

1 Like

I believe the example would improve so much if you make the camera zoom out based on the distance from the 2 subjects so that it is not limited to how big the screen is. This can help especially if the users games have bigger maps but a small screen.