Hi GDevelop Team,
I am submitting a bug report regarding parameter alignment in the "Create Object" action.
Issue Description:
When creating or editing a "Create Object" action in the event editor, selecting "Base Layer" or selecting parameters via the UI can occasionally write the Object Name string directly into the Layer parameter (Parameter 1) instead of leaving it as an empty string ("").
Because Parameter 1 is parsed as the Layer name, passing the Object name (e.g., "hitBullet") forces the engine to attempt spawning the object on a non-existent layer named after the object. As a result, the object is created invisibly on a ghost layer, even though the visual UI editor appears to show "Base Layer" selected.
Steps to Reproduce:
1. Create a "Create Object" action (e.g., Create "hitBullet" at X, Y).
2. Select "Base Layer" from the dropdown.
3. Copy the event/action to the clipboard or export it as JSON.
4. Inspecting the JSON reveals:
"parameters": ["hitBullet", "hitBullet", "playerBulletsGroupe.X()", "playerBulletsGroupe.Y()", ""]
instead of:
"parameters": ["", "hitBullet", "playerBulletsGroupe.X()", "playerBulletsGroupe.Y()", ""]
Expected Behavior:
Selecting "Base Layer" or leaving the layer field blank should consistently compile Parameter 1 as an empty string ("") so the object spawns visibly on the base scene layer.
Environment:
- Engine: GDevelop (Desktop / Web version)
Thank you for your hard work on the engine!