Hm. I don’t think you have to use an event to transfer background objects to the background layer. Click on an instance, and there it is, in the properties tab, above the “custom size?” button and below the Z order.
However, you cannot lock a layer, or select a layer and add directly to it.
Unless you mean using a whole bunch of “BackgroundBrick” instances, in which case, yeah, I can see the use of an event.
Wait, You shouldn’t have to use events at all to move them to another layer unless you have some dire need.
I thought you meant defaulting them by dragging them to the scene.
Once they’re on the scene, just click on them and click the “layer” box on the object properties panel, once switched here they’ll stay on that layer when your game starts.
“I thought you meant defaulting them by dragging them to the scene.”
It’s exactly that. I just don’t want to set their layer manually, one by one. I expected to be able to, I don’t know, maybe first select the layer, then, when dragging objects, just have them added to the selected layer, or something like that.
The idea would be to reduce the number of repetitive manual tasks we have to perform, and thus the risks of mistakes (forgetting to send cloud in the background).
So, if a create an object specifically for a layer (cloud in background), I would expect that its default behaviour would be to be send to that layer drag and dropping it in the scene.
If the editor does not allow it, then I would definitely use an event as described above (or create a costum behaviour).
Less work. Less things to worry about. Less mistakes. More fun in creation.
Of course it would be great if GDevelop recognizes the active layer or has a check like in Construct where you can isolate a layer that would be a nice feature.
My Problem is I have set the objects to the layer, in the scene editor i have them in the specific spot I want them. But when I enter the game anything that isn’t the base layer end up moving into a separate location in the background instead of being in that specific spot?