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

PlayerPrefs Deleted when Updating Game (Windows Phone)

I have an issue with PlayerPrefs in Windows Phone, Expected result: 1. PlayerPref is always saved even if the games is updated How to replicate issue: 1. Deploy the game to Windows Phone (non...

View Article


PlayerPrefs variable

Hi There, I'm collecting information about two Spheres and then rendering a Cylinder but this code gives errors. Why is that, thanks. function Update () { if (PlayerPrefs.GetInt("Sphere1", 1)...

View Article


Attempting to store an Inventory Array in PlayerPrefsX

Bear with me here, there's going to be a lot of code. Thanks to a couple of really awesome people (and thank God!) I was finally able to wrap my head around Playerprefs last night. No wonder everyone...

View Article

Using XML files and playerprefs together

I am developing a stand-alone game where potentially 20 users will have their own save file located on the same computer. At the moment, I am saving their data to individual XML files. I was wondering...

View Article

(stuck :() How can I save the player position/data when flicking between scenes

Hi, New to scripting and the such. I have spent a while looking at PlayerPrefs and how to use them. I have a main level and the player can flick to a "inventory scene" freely during the game so they...

View Article


PlayerPrefs string variables

Hi everyone! Well I've been looking for the way of making a PlayerPrefs Save system that allows the user (in the Editor) setting the name of each Pref (example: "level1", "level2", "level3"...). With...

View Article

Recognising high score when updated with a graphic

Hi there, I hope you can help. I'm putting together a game which uses a scoring system. Basically as you go through the level/s, score is saved via PlayerPrefs like this: if(chapter1Score >...

View Article

Problem with High Score System using PlayerPrefs [C#]

Hi, I'm trying my first PlayerPrefs high score system. I need to save the best score and time so I can have them display on the results screen and the high score screen. I'm using the solution from the...

View Article


Detect launch of app instead of level start

Is there a way to know the difference of when the app is just started versus when a level is loaded? Here is what I am trying to achieve. When the game first runs it zeros out the score saved in...

View Article


[SOLVED] A Playerpref in one place is blocking all my other Playerprefs

So in fixing one issue, I've come across a whole new (potentially bigger) issue. I've been using Playerprefs to save most everything. (Player health, money, items, etc.) Everything was working fine. I...

View Article

[PlayerPrefs] Shared saves between WebPlayer and Standalone?

A quick one: Is there any way to force the WebPlayer player prefs to use the same path as Standalone/Editor (com.company.appname.etc) and not the URL (or vice versa)? Or, to rephrase, is there any way...

View Article

[SOLVED] Same script (virtually) on two gameObjects. One saves to...

Ugh. Sorry I'm asking this. I have two gameobjects, boss characters. Each has (nearly) the same script attached, a health script. The one works perfectly, and saves the result of the battle to...

View Article

PlayerPrefs Plugin. error CS0103: The name `PlayerSettings' does not exist in...

When I tired to build my game it gave me these errors: Assets/Plugins/PlayerPrefsPlugin/Editor/PlayerPrefsPro.cs(52,52): error CS0103: The name `PlayerSettings' does not exist in the current context...

View Article


problem with playerprefs

hey guys, im trying to add a value to a playerpref i already have, in this case +50, however the way ive been calling my playerprefs is like this PlayerPrefs.GetInt("LevelPar1_" +...

View Article

performance wise, which is better..Playerprefs or global floats

hi huys, im working on scores for each of my levels and im just wondering which is better performance wise. i need to store different score limits for each level and not sure the most efficient way to...

View Article


[ANDROID]saving data with playerprefs

Hello. I'm making an android 2d runner game and I'm trying to save some data periodically such as high scores, total distance run, number of games played, average distance per game etc. I'm attempting...

View Article

Will PlayerPrefs work on PS3?

I haven't been able to find an answer to this question about PlayerPrefs on consoles. If it doesn't work how would one go about creating save data on playstation systems?

View Article


is it safe to save info in PlayerPrefs?

i need to save some info in my game running on android. device i saw that i can use PlayerPrefs for this. the question is how safe is this? can i save the amount of in game money the user earned for...

View Article

PlayerPrefs in android

hi all, i'm doing an app for android, and i use "playerprefs.setfloat" and "getfloat". Why this function work in pc but not onto my smartphone?

View Article

How to load an inventory array?

I am trying to use player prefs to save, and subsequently load, my player's inventory. The inventory is handled by the c# file Inventory3.cs, and saving and loading are handled in the javascript file...

View Article
Browsing all 1333 articles
Browse latest View live


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