Hi guys, i am currently working on a school project related to creating a game using unity 3D. As a beginner i have no previous experience in using this software. Therefore i hope so nice soul could help answer my question of, can a i embed a mini game within the main game itself ? like a mini-quest ? Thank you very much for your time.
Sure. You’ll have to program it though - Unity doesn’t have any built-in support for anything like that, if that’s what you’re asking.
As for how to do it, it depends on what your goal is exactly, but the two options that immediately spring to mind are:
-
Have the mini-quest be a separate scene, and somehow save the state of the game in the ‘primary’ scene so when you return from the mini-quest, the state can be re-created.
-
Have the mini-quest just be a different part of the scene that is somehow separated from the rest of the scene, and have the character go to and return from it simply by ‘teleporting’ the player object back and forth.
You could also potentially use LoadLevelAdditive if you have the minigame as a separate scene, and then destroy all the minigame objects when you’re done with it.
–Eric