Save player position when trigger is destroyed
Hello everyone, this is a little bit of a loaded question, but i have looked online for some time and have been unable to find any answers. Hopefully you guys can help. So, what I am trying to do is...
View ArticleHow to load a scene with playerprefs from a ui element
Hello everyone, I am trying to figure out how to load a scene that has playerprefs saving the players position. I have a ui element that is on the main menu that the player clicks on - I just don't...
View ArticleHow to Load PlayerPrefs from a different scene
I am trying to load the saved players position from a UI on a different scene. Here is the code I have that is attached to a trigger and should save the players exact position. using UnityEngine; using...
View ArticlePlayerPrefs issue
ok, so I have a script that auto saves the players position, and then when the player uses a UI on the main menu "Continue" it will put them at the point where the position was auto saved. The issue is...
View ArticleLeaderboard displaying duplicates
Hi, We have been developing a game with a leaderboard. When we use the laptop, the leaderboard works well. However, when we play the game on the android, the leaderboard displays a bunch of duplicates:...
View ArticleGrabbing PlayerPrefs variables from another game.
Hello, I am planning on making another game as an addition to my current one that is for stats only. (Just for testing and different UI and etc.) But basically on app 1, I would have let's say variable...
View ArticleTrouble with the Playerprefs
Hi there! So i'm having trouble with playerprefs. Basically, every time i close and turn it on again the game, when this void is called (from a button) it returns me -100 SCurrency and 1 SlowmoCounter....
View Articleplayerprefs not working.
public Text scoretex; public Text scoretex2; //public Text scoretex3; private int score; public InputField username; // Use this for initialization //private Text[] text1 = new Text[4]; public Text...
View ArticleThe type or namespace name `Stage1' could not be found. Are you missing a...
using UnityEngine; using System.Collections; public class kayıt : MonoBehaviour { float playerScore = 0; public float guiPlacementY1; public float guiPlacementX1; Stage1 player; void Start() { player =...
View ArticleMy Player.Prefs can't save or load float?
public class gameController : MonoBehaviour { public float lifes = 10; // Use this for initialization void Start() { float lifes = PlayerPrefs.GetFloat("lifes"); } void lifecount() {...
View ArticleSave different game object's datas using the same script?
Hi everybody, I've a little problem. I'm making a simple application in witch user do maintenance to electrical system of a building. I created a script that allows you to inser the current date in...
View ArticleHow to save/load a ScrollRect's position using PlayerPrefs on scene change?
I am working on the UI design for a game that has two scene; 'scene one' is the level select and 'scene two' is the game. 'Scene one' has all the levels inside of a ScrollRect. Currently the position...
View ArticleSave a list of object locations
So i have a group of planets and i want to be able to save the game and when i load the game i want to load the planets at their previous locations.. My problem is that when i say to save the object...
View ArticleHow to Save/Load the rotation of my player
Hello, I'm making a 2D Platformer and I'm trying to save the rotation of the Player in Playerprefs whenever he hits the "Checkpoint" and when he dies the rotation should be loaded. The position is no...
View ArticleHow do I apply and save my game settings?
I am creating a game settings scene that includes things for volume, resolution and quality. Once I leave the scene all of the changes simply revert, I can't figure out how to keep them saved. I have...
View Articleplayer prefs
hehoo all, i have just 1 simple question, i couldnt find any answer for.. when i try to use my playerprefs like this: public int gold; void Start () { PlayerPrefs.SetInt("Gold", 25); print(gold); gold...
View ArticleAre there any major consequences when using Playerprefs?
I want to save one string and 16 floats in the Playerprefs, so that they are saved after scene change and game restart. Could that cause any issues?
View ArticleHi Everyone i need to get the high score but i get last score player achieve...
using UnityEngine; using UnityEngine.UI; public class Score : MonoBehaviour { public Transform Player; public Text ScoreText; public Text HighScore; public static int PlayerHighScore; public string...
View ArticleDropDown in scene 1 to change value in scene 2? Please help!
*Hi guys! Hope you are all doing well :) I have been stuck on this for 2 days and am still completely stuck, please help me out if you know how to make this work! I am making a game very similar to...
View ArticleHow do I save the state of a toggle button?
My code works, currently I'm working on the audio and this script makes it all work smoothly other then the fact that if I leave the scene and come back (audio still working fine) and go back to the...
View Article