How do i combine Godot Projects?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Cryreh


i wanted to create a little birthday game for my friend where he plays himself as the main character, walks home and gets suprised by a few NPCs who all have a present for him in form of a minigame. or actualy the minigames are bigger games . they are simple versions of a jump and run, or a rpg but still finished projects with a menu and ending and i intend them to be 5-60 min long, so i also want him to be able to save his progress somehow…

im watching alot of tutorials and getting the hang of making different types of games, understanding godot and programming on the way a little too. but i cant find anything about how to import seperate projects in godot into 1 big project and switch to them via talking to NPCs. or switch back via menu.

I intend to set it in a way that when he talks to a npc in the birthday game, he can then play the game and switch back anytime he wants. and if he chooses to finish all games he unlocks a special event.

Maybe i need more time to understand how to make all this in general, but i would also like to know if its possible at all, to have multiple games with possibly different project settings in 1 game. or if i have to make adjustments in advance before creating all of this.

Thank you for the help! I appreciate it a lot!

And im using gdscript, windows its mostly 2D
and im very new to programming, but willing to put a lot of effort into this to make this present ^^.

Usually what I do when i get other projects from github or something else:
I have a main/base project

  • in the sub project that I want to import : I open the project then put everything in a single folder (not including icon.png, project.godot and everything that is already shared between every projects)
  • in the main project, I import that folder then resolve every dependencies

This is surely not the best solution but it works :slight_smile:
Maybe you can try to create different scenes in your project and consider them as a whole minigame. If you organize everything well, it’s very powerfull

Or add a password for each minigame and each time he passes a level, he can play the other project. But then you have to export every project and have multiple .exe and share a save file which is not optimized at all

leo-pnt | 2020-11-21 19:21

can’t you have those minigames be separate scenes in the same project?

Millard | 2020-11-22 04:00

i try to do that now, thx^^

Cryreh | 2020-11-22 22:06

:bust_in_silhouette: Reply From: Wakatta

Move all contents of the project to be imported to a folder except project.godot
e.g "res://miniGame"
In the main project copy that folder into the same location
e.g "C:\\Maingame\miniGame"

thank you , i try to use this information^^

Cryreh | 2020-11-22 22:06