- Home /
Recording metrics?
How would you script the ability to save a new player and the time for the new player to complete a level of a game. Please give scripting examples. Thank you for your help.
We need more information about the platform you want to build your game on. And could you explain a little further by "save a new player and the time for the new player to complete a level of a game" ?
What, PlayerPrefs? Read through the entire script reference, and if you still don't have any ideas, come back here.
I want to build a game for the web platform. Whilst the game is running I want to record the amount of people that play the game as well as the amount of time that each person plays. For example to assoicate PlayerA with the 5 $$anonymous$$utes of time they took to finish the game. How would I go about that using PlayerPrefs?
Answer by dannyskim · Feb 26, 2012 at 07:30 PM
Player prefs gives you the capability of writing key / value pairs to a text file stored locally on the machine that the client is running. With "metrics" tracking such as yours, you're looking at creating database information. So, you would either have to learn how to create your own databases and make query calls ( take for example SQL queries ) to your database server to store the information, or look for a vendor that supplies these services.
There isn't a one all solution for this if you decide to create it yourself. Another option would be to go to a third party analytics platform that stores this information for you. Flurry is a good example of this, and would do exactly what you're wanting:
Your answer
Follow this Question
Related Questions
A node in a childnode? 1 Answer
Script crashes Unity 1 Answer
Singletons in music script? 2 Answers
Simple EXP Script In Javascript 0 Answers
unity 4.6 button functions? 1 Answer