|
Hey Guys, I am sort of a beginner in terms of creating a fully working game. I've started a simple project that is level based and the main goal is to collect different objects in the levels. Basically, I want a level-select screen which contains portals to the different levels. The levels will contain five different types of collectibles. I want to store how many of each collectible you have collected per level separately, so in the level select screen, you can view your progress in that level. Also, in the level select screen, the next level is unlocked based on if the previous level was completed. I just need help getting this system going. I really have no idea where to start. Ive tried multiple different things but none work all too well. And im sure the answer to my issues is right under my nose, so maybe you guys can help me out. I'm not asking for anybody to write the game for me, but any links, suggestions, code snippets, and especially any help explaining to me how i should make the system flow would be greatly appreciated. :) -myjean17
(comments are locked)
|
|
To store the players progress read through http://unity3d.com/support/documentation/ScriptReference/PlayerPrefs.html. Using PlayerPrefs.SetInt("Level1_collectible1", 5) will store that you have collected 5 of collectible1. using GetInt you can now get that from your menu and show it to the user with something like GUI.Label(). The same way you could set "Level1Finished" and use PlayerPrefs.HasKey to query if a user has already completed a level.
(comments are locked)
|
|
You need to first start off with learning about the unity engine itself, then coding. http://forum.unity3d.com/threads/34015-Newbie-guide-to-Unity-Javascript-%28long%29 Thats not exactly the problem. (But thank you very much for attempting to help). I'm actually quite familiar with unity. Scripting not so much, but still past the noob level. My issue is that this is the first actual game I've made. I've put together interactive scenes in unity, but never really tied them together with a system like this. I need the game to remember all of the variables from every level in an efficient way. And I am having some trouble with this.
Nov 20 '11 at 10:19 PM
myjean17
(comments are locked)
|
