Hello,
Is it possible to use an additional event sheet alongside the base scene event sheet when working with an external level editor?
regards,
Hello,
Is it possible to use an additional event sheet alongside the base scene event sheet when working with an external level editor?
regards,
Yes, add it as a link to external event in the base scene event sheet. Add the link at the point where you want the external events actioned in the base event sheet.
My issue is that I can’t display each scene’s event sheet.
How can I display it??
Oh, do you mean you want to view the two event sheets - the base and the external - at the same time? Not in the same editor. You could if you open a second instance of the GDevelop editor and view the other event sheet in that.
I mean, I want to see the base event sheet and the level event sheet.
Take a look at this image:
In this image, the base event sheet is visible, but the level1 event sheet is not. How can I display the level1 event sheet to write the level1 codes there? Is that possible?
Is level_1 a scene or an external layout?
If it’s a scene, then click on Level_1 under the project’s scene section (click the hamburger image in the top left of your screen snip). That will open the scene’s event sheet.
However, if Level_1 is an external layout then there will not be an associated event sheet because it is just a layout, not a complete scene.
I think I’m wrong.
I’ve created one scene and two external layouts!
Should I create a single external layout and two scenes?
Please correct me if I’m mistaken.
It depends on what you are doing. If Level_1 & Level_2 both use the objects and events from BaseScene, then leave it at 1 scene and 2 external layouts.
If Level_1 and Level_2 use the BaseScene objects but need different events, then use different external events for each external layout, and use conditions to determine which external event to use.
I have this now:
A base scene and 2 external layouts.
My question is this:
Could I get an event sheet for each of these external layouts?
Should all the game logic and code be written in the BaseScene event sheet?
I mean, shared logic be written in the BaceScene event sheet and dedicated logic be written in their separate event Sheet?
Thanks
You can create an external event for each, but then you might as well create a new scene for each level.
Think of the external layout like levels to a game. You have the same events controlling the game, it’s only the layout of the objects that make each level that is different.
Another application of external layout is for the game UI, which would be the same for every scene. Instead of creating the UI in each scene, you create it once in the external layout and load that in an event from your scene.
You can if it’s only going to be for that one scene. If there are sets of events or game logic that’s repeated over multiple scenes, then it’d be a better move to put that in external events.
Also, you can break a scene’s events into smaller chunks and have external events for each bit of game logic. So, for example, you may have an external event for player actions, another for enemy AI, and another for scoring. There’s no hard and fast rule on how to use external events.
Yes, that is a way of doing it. And then link to the external events as a subevent of a conditional event determining the current level.
When I create a new external event, it ask be to chose a scene. But it just let me to pick the base Scene?
Why? There is no need for a base scene for an external event!
It needs a base scene for the objects and scene variables you reference in the external event. Similarly for the external layout, that too needs a base scene so GDevelop knows what objects you can use in the editor.
If you could link external events to an external layout, then you’d have the makings of a scene - a layout with associated events.
Now I have two levels and a base scene:
Why, when level 2 is being played, does it not remove the level 1 contents and instead show level 2 in addition to level 1?
When attempting to define an external layout for level 2, it prompts me to select the associated level but only allows me to choose baseCscene.
It forces me to choose the base layer instead of layer 2.
This part is another question. The forum doesn’t let me edit it the above.
When you load from an external layout, you are just placing the objects on the scene as they appear in the external layout. Any existing objects in the scene are not deleted or removed. To do that, you’ll have to either delete them in events or reload the scene.
Yes, because as I explained previously, an external layout is associated with an existing scene so you can reference the base scene’s objects and variables. It doesn’t make sense for a layout to be it’s own base. That’s a circular reference.