- Home /
How can i integrate several minigames into one project?
Hi everyone, I'm quite new to unity and have just finished my first game, a 2 player joystick game similar to football. I would like to expand my project so that I can integrate multiple minigames into one game (to clarify when you open up the app you'll have the choice between say 3 games to play with which you can select from a start menu). I tried using different scenes and scene manager to create the other minigames but I'm 100% new to that and not sure how it works and if it's even the best solution (I failed of course). Anyways what would be the best way for me to integrate those other minigames? Thx a lot:)
Answer by tormentoarmagedoom · Jul 23, 2019 at 09:55 AM
Hello @TLgino !
Well, you have 2 options,
One is to have different scene, but this will make the game load and unload scenes all time, and if the minigames are, as you say, mini, i reccommend the second options.
The second option is to have everything in the same scene, all games as diferent objects active and unactive. So you activate the minigame object you need and disabling the others,
Each minigame will have its own script, its own canvas, (and if its 3D, each own 3D objects), and you only need to move the camera.
As you are still new, i strongly recommend to spend some hours watching tutorials about makeing games, complete games. There are thousabnds of youtube tutorials that shows all you need. Is better to spend some days only learning, watching tutorials, and trying things before commence the "real project".
Good luck!
Placing all $$anonymous$$i-games (all game objects) in the scene hierarchy will consume much memory, another option is to make a prefab of each $$anonymous$$igame and the instantiate and destroy accordingly.
https://docs.unity3d.com/$$anonymous$$anual/Prefabs.html https://docs.unity3d.com/ScriptReference/Object.Instantiate.html https://docs.unity3d.com/ScriptReference/Object.Destroy.html
Answer by TLgino · Jul 23, 2019 at 06:30 PM
@tormentoarmagedoom Thx a lot for your answer! It was rly helpful and precise plus you've saved me a lot of time thx:D
Your answer
Follow this Question
Related Questions
scene switching 2 Answers
The best way how to render parallel scenes? 0 Answers
This script is not displaying scenes in unity properly. How would you fix it? 0 Answers
Android 2D game how to create swipe left/right views 2 Answers
Hey Everyone! Can you people help me on how to apply VR on a specific scene? 1 Answer