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

Player Prefs reset after crash?

On iOS and Android, player prefs are sometimes reset when our game crashes which results in players losing their progress. I'm not sure what is causing the crash as I haven't been able to reproduce it....

View Article


I want to add player pref in my code to get current Player Health but i Don't...

i have 3 different script and now i am confused where to put player pref to get current . i want the same amount of health of player which is before i restart my game .... like if i played my game get...

View Article


Issue with PlayerPrefs not loading a value, as well as a bug...

My game uses PlayerPrefs to save and load values for the last played Score and Highscore variables (both integers). Everything worked in this project when it was using OnGUI, but since then I've...

View Article

pause menu loads saved game quirky

can anyone see what is wrong with my Java script pause menu? When I have a saved game, then go to another level, bring up the pause menu and hit " load", it will take me to the correct level but the...

View Article

saving texture change in PlayerPrefs

I have a script where I can toggle through textures but how do I save it to player prefs. the way the script is set up ( i think) is that when I press V I save the int of the texture that is displayed...

View Article


PlayerPrefs is affecting all builds of my game

I have used playerprefs in my game and built it and they work fine. Unfortunately, when I make another build of the game, the playerprefs that were saved in my already existing build affected it so I...

View Article

Highscore and PlayerPrefs unity C#

So I'm not new I but never really worked around scoring with highscores and player prefs. Here is my script and help is greatly appreciated. using UnityEngine; using System.Collections; using...

View Article

how i save and load my coins look the script please

using UnityEngine; using System.Collections; using UnityEngine.UI; public class Coin : MonoBehaviour { public int coinValue; public Text scoreText; // Use this for initialization void Start () { } //...

View Article


how can i save and load my coins look my script please!!

this is my script: using UnityEngine; using System.Collections; using UnityEngine.UI; public class Coin : MonoBehaviour { public int coinValue; public Text scoreText; // Use this for initialization...

View Article


standard anti memory hack load save data using playerprefs

Hi all. I want to save my vital variables (gems,coins,level,xp , etc) into a file using playerprefs. My file has been encrypted.(AES) it is ok. I load my data in start only one time and initialize the...

View Article

My save data is being overwritten

Hello, world: I'm writing a very easy save function in Unity for an iOS game. Though it saves your progress as it goes, however, it deletes the data from all the previously saved levels. Can anyone...

View Article

create store database class for RTS games

my question is about make a true and best class to store data. (for example like clash of clans or royale or RTS games). We have many ways. Suppose we have several cards(units) that have special...

View Article

PlayerPrefs arent loading properly.

Dear reader, i created a 2d application in unity(c#). I created a save and a load button using PlayerPrefs. On my PC these Button are working fine. If run it on my Lumia 950, save and then load it...

View Article


Argument out of range

In my really simple simon says game, everything used to be working fine. The game would generate a pattern, and when the player got the pattern correct, the computer would give the same thing but add...

View Article

random question without repetition

hi i'm creating a word game.i have a list of questions which is divided into scenes. 1 question per scene. the objective of the game is once the question is answered it will never show again unless the...

View Article


How to access android sharedpreferences using unity c# ?

I am trying to access sharedpreferences of a game which is developed using android studio. Anyone has solution how to do it in c# ?

View Article

How to efficiently hand out rewards based on the level that the player...

I currently have 15 levels and counting in my game, and would like to make a simple formula that increases the reward by 10% by every level for example. My "win" screen is a separate scene which is...

View Article


Decrease Lives on collision

I'm fairly new to Unity & C#, i've made a basic Flappy Bird type clone which runs perfect on WebGL, Windows & Android. I have decided to spruce it up a little and add in levels - after reaching...

View Article

how to convert a dynamic playerpref to a dynamic int variable?

hi my question might be not very clear but by dynamic i mean a string name that changes according to the level we are in the game.Basically in my game i needed a method to check if a player have...

View Article

Why is my operation delete the playerPRefs?

Hey there! (Please see image first) ![alt text][1] I have this question. Why does M = S+C/2 delete my playerPrefs? While M = S+C is fine, Here's what I'm trying to do, I'm making a timer which ends...

View Article
Browsing all 1333 articles
Browse latest View live


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