PlayerPrefs saving, but not loading correctly
I'm currently working on a game where you collect gold. As you pick up each gold, the variable in increased and saved out to playerprefs. I know this works because immediately afterwards I get the...
View ArticleGames played script using PlayerPrefabs
i want to make a games played script using PlayerPrefs. i did this but my code was increasing the value by 35 or more at a time for one game heres the script var GPcounter = (0); function Start() { if...
View ArticleGoogle play achievements problem please help
hi i seem to have a problem with my achievements. i got the leader board and all that working but i just cant seem to understand why my achievements and not working. here my code C# void Update () {...
View ArticleHow to Get a PlayerPrefsX boolean?
Hey everybody, I'm not particularly sure how to reference booleans that have and have not been created, yet, through playerPrefsX. I wrote for the boolean to save, but I did it while using variables,...
View ArticleButton Help
I have a script with GUIBox button, writted in the script, I need to put the script to work with a UNity 3D plane.obj as a button, I need help to implement that, i dont want the GUIBox button from the...
View ArticleWhat is the string length of a string on PlayerPrefs?
Hi nerd people! I need to store some serious data on a Key value on player prefs. But I don't know if the string property is large enough... where can I find info about that? Thanks a lot!
View ArticlePlayer Prefs for Current Lives
Could someone please explain to me how I can keep the current lives onto all my other scenes within the game I'm creating. I think I need player prefs but not sure how to implement this..? using...
View ArticleScore not resetting
Could someone please explain why my score isn't resetting each time I restart it? It keeps displaying the previous score on load? using UnityEngine; using System.Collections; public class Score :...
View ArticleIs it possible to set a format for a playerprefs value? (Timer)
Hello Everyone! I've managed to create a simple timer and highscore system for my game (attached to a GUIText object), which indicates on how long the player is currently surviving. When the players...
View ArticleWrite a new high score does not!!!
I could not find flaw. Can you tell me my shortcoming or more? var point : GUIText; var level : GUIText; function Start(){ } function Awake(){ point.text= "Point: "+ PlayerPrefs.GetInt("HighScore");...
View ArticleZombie AI Help
I have a 2D zombie, that i want to look at the player. Not rotate the zombie, but just flip his x axis so he's looking at the player.
View ArticlePlayerPrefs issue with my code.
I started to mess with PlayerPrefs and from what have read on unity scripting guide this is what I came up with. The script below in attaced to my main camera in the char creation scene. using...
View ArticleLocal High-Scores with PlayerPrefs?
Hi there guys, so my latest IOS project is going to have a very basic High-Scores scene. It is going to be something like this: Player1..........999 Player2..........888 Player3..........777...
View ArticleBest way to store usernames and passwords?
Hey, making a 2d rpg. when game starts player is prompted to enter username and password. i'm trying to figure out the best way to store this data. I could use a text file but i was wondering would it...
View ArticleErrors and suggestions
getting 2 errors: Assets/Scripts/TakeScreenshot.cs(23,39): error CS1525: Unexpected symbol `private' Assets/Scripts/TakeScreenshot.cs(13,17): error CS1525: Unexpected symbol `}' Also any suggestion to...
View ArticleSaving boolean values using PlayerPrefs
I can't get my "riflepickup" boolean value to save/load using PlayerPrefs could someone please take a look at my script and see if they can figure out the source of the problem? I really need help as I...
View ArticleAbsolute most basic ranking/scoreboard functionality
Hi. I'm *extremely* new to Unity/scripting/game making, and creating a first/test project, a simple time attack racing game. My knowledge is limited to the recorded live training videos, other...
View ArticleMobile: Is there a way to write PlayerPref data on first install
Hello, I am using PlayerPrefs for local scoreboard/options for my game. I would like to set a default name as well as default music volume. I could think of one way of doing this which would be to...
View ArticleShow top 5 Scores?
Hi Everyone, I wan to show top 5 scores in my game for that i am using playpref.setInt or Playpref.GetInt but its giving memory warning do we have any other way to show top 5 scores ? Thanks
View ArticleIn app purchases / PlayerPrefs
Hello, I'm looking for some technical advice how to solve this: How to safely store information about in app purchases into device. The reason is that I won't force the user every time when he starts...
View Article