How to keep the camera position synchronised between multiple layers?

I am using four layers with different effects so that sprites look distinct according to the states they are in. They move in and out of different layers according to how the user interacts with them.

The problem is that I have a number of actions that update the camera position and every time I do this I have to add four actions, one for each layer.

It would be useful if I could have a single action affect the camera position in multiple layers (not all layers, I have some layers that do not move). Is this possible?

Unfortunately, currently there is no way to do a “for each layer” via a single event. You will have to do the camera positioning events for each layer.

You can try to make a function with the X and Y position of the camera as parameters wich update all the layers, to simplify your code.