Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » Saving your High Score???

Saving your High Score???

View previous topic View next topic Go down  Message [Page 1 of 1]

1 Saving your High Score??? on Mon Mar 24, 2014 3:40 am

trojqan1980


Member [Lv. 2]
Member [Lv. 2]
Hi all,

I'm having a bit of trouble I've been searching for a way to save my high score and nothing seems to be working (i must be doing something wrong)??? ive read playerprefs is the way to do it but i still can't work it out can anyone give a step by step explanation of this so i can understand the process please.

I've got a simple score that adds one point every time you go through a check point and when i die i would like to have the high score saved and displayed on the main menu


Thanks for any help...

View user profile

2 Re: Saving your High Score??? on Wed Mar 26, 2014 8:25 pm

BryceCain25


SUPER MODERATOR
SUPER MODERATOR
Hi! I seem to be thinking there may be a way to achieve this, maybe something like this?

Code:
#pragma strict
function Update () {
if(dead)
{
if(GUI.Button(Rect(10,10,150,100("Player Score")) {
Debug.log("Player Read Score");
}
}
}
this is a foundation of the script you may want to make
try and implement a function called dead()
so that you can use it when referencing different parts of the script
-BryceCain25

View user profile

3 Re: Saving your High Score??? on Fri Apr 04, 2014 10:18 pm

ryan2brian


{SUPER MEMBER}-LV.4
{SUPER MEMBER}-LV.4
you have to do it over networking becuase unity starts a over everything when you press play

View user profile

View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum