Highscore GUI not working properly help
I've manage to set and show a score after the player game is over, only thing wrong is when i ever beat the highest score, it doesn't show "New Highscore" it shows "Score:(Number of points earn during...
View ArticleI think I broke PlayerPrefs. DWORDS with Binary Values
Hi, so I am just making a Main Menu for my game, including graphics menu. Until now everything worked just fine. (at least it always loded my saved values...) Anyway, now suddenly he doesn't load the...
View ArticlePlayerPrefs.GetInt won't load when awake.
I have a strange problem where my PlayerPrefs.SetInt works and saves just fine, But when i try to load it with void awake or start, the value stays at 0 until something is added to it. For example: If...
View ArticleAccessing player preferences outside game for statistics
Hi In my game I have used player preferences for storing some game data like highscore, number of deaths, number of shots fired , number of jumps etc. I am also able to show that on game GUI. But how...
View Articleusing playerprefs to update a guitext and record highscores
i have been working on a project where you tap spots to score points and keep going. i am having trouble determining how to use playerprefs to recored how many were tapped. here is the script for the...
View ArticleHighScore wont save Through PlayerPrefs
So i'm learning how to make game apps myself and so far i've been doing amazing! very pumped but I encountered an issue that I don't exactly know what's wrong as everything is running and coded...
View ArticleHow to save a bool in playerprefs as false
I know how to save a bool in playerprefs as true, but how to you set it as false and then get it.
View ArticlePlayerPrefs Player And Enemy Spawn
Hello Everyone I made some scripts: **Save Button:** var Saver : Saver; function OnGUI() { if(GUI.Button(Rect(Screen.width / 2 - 50, Screen.height / 2 + 65, 100, 70), "Save")) { Saver.Save(); } } **The...
View ArticleNumber of played games
Hi, I have problem with 1 thing in my game. I can't count played games by PlayerPrefs. Every game, this number is being reset. Someone know, how can I do it?
View ArticlePlayerPrefs is acting weird ??
The first Script which calculates score and stores in Playerprefs. using UnityEngine; using System.Collections; public class Scores : MonoBehaviour { private int score; // Use this for initialization...
View Articleusing SQL db instead of playerprefs (playerlocation)
![alt text][1] [1]: /storage/temp/35255-sql.png Ive created a really simple SQL db on a server with a few tables and populated it as above, what would be the most efficient way to retrieve these values...
View ArticleScore System help
Hey Unity community so i tried a new high score system for my game but im running into a few problems with it which i need help on. Issue #1 : The score is displayed, but the "Best Score" is always 0...
View ArticlePlayerPrefs.DeleteAll() not deleting unless app restarts
So I've opted to use PlayerPrefs to store important information throughout the game. Eventually if the player fails/wins I need the playerprefs to be deleted. However, It seems like the app needs to...
View ArticleNoob to Shaders - How to check for PlayerPref
Ok so as you can tell from the title, I don't exactly know much about shaders and how they work, I really only use ones by others and modify the settings. In my example, I have a setting on a shader...
View ArticleHighscoring and changing scripts (Java/UnityScript)
I have a score system that records score in the game, but i would like to use playerprefs to check the current score and if higher that previous highscore, set the guitext to a new highscore scoring.js...
View ArticleSame Playerprefs for 2 games? [Android]
Hi, Im doing a demo and full game with 2 different APK. The question is if I complete x levels in demo and I buy the full version, I want the x levels completed in full version. Could I use the same...
View ArticleCollision Detection not working?
Trying to make it so when the player collides with the Jetpack item it sets the playerpref for the jetpack to 1, then destroys the jetpack. But I can't seem to make the jetpack disappear....
View Articleupdate highscore if current is higher than previous score
in the script below, the highscore doesn't update at the start, if you have any help it will be appreciated. #pragma strict var High : int; function Start () { High = PlayerPrefs.GetInt("Highscore",...
View ArticlePlayerPreds Error
Hi! Thanks in advance!I get the errors for the code below ERR 1:Assets/Scripts/PositionLoader.cs(8,27): error CS1612: Cannot modify a value type return value of UnityEngine.Transform.position'....
View ArticlePlayerPrefs Loading Scene wont work
I am trying to build a script that would save the last scene you were on but it looks like it doesn't work by any means.By saving the last scene i mean saving the progress and sending you to Map Scene...
View Article