x


Developing A Simple Game System

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

more ▼

asked Nov 20 '11 at 04:52 PM

myjean17 gravatar image

myjean17
61 6 6 9

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Nov 20 '11 at 07:31 PM

billykater gravatar image

billykater
26

(comments are locked)
10|3000 characters needed characters left

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

http://unity3d.com/support/documentation/

more ▼

answered Nov 20 '11 at 07:34 PM

superventure gravatar image

superventure
649 44 54 63

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)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x66

asked: Nov 20 '11 at 04:52 PM

Seen: 595 times

Last Updated: Nov 20 '11 at 11:36 PM