Separare code for different concepts

Hi! I am making a small game, but I came up with… something.

I would like to add minigames, like card games (memorize) or simple puzzles. But… I don’t want to have all the minigames mixed with the main code. Is there a way to separate the code into different pages?

Use external layout and events, then you use that in your main scene

Thank you for your answer, I will investigate how to use them.

Hi, in the good old platformer example you can see an external event in action (enemy management).
https://editor.gdevelop-app.com/?project=example://platformer

1 Like