Quantcast
Channel: Questions in topic: "playerprefs"
Browsing all 1333 articles
Browse latest View live
↧

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 Article


I 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 Article


PlayerPrefs.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 Article

Accessing 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 Article

using 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 Article


HighScore 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 Article

How 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 Article

PlayerPrefs 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 Article


Number 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 Article


PlayerPrefs 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 Article

using 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 Article

Score 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 Article

PlayerPrefs.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 Article


Noob 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 Article

Highscoring 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 Article


Same 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 Article

Collision 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 Article


update 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 Article

PlayerPreds 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 Article

PlayerPrefs 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
Browsing all 1333 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>