The Daily Click ::. Forums ::. Klik Coding Help ::. Can you use a new score object for each level?
 

Post Reply  Post Oekaki 
 

Posted By Message

pixeldriver119



Registered
  23/02/2011
Points
  127
2nd March, 2011 at 12:28:26 -

Hi just wanting to know if i can use a new score object in each level to make seperate high scores for different levels? Or would this not work?

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
2nd March, 2011 at 12:56:34 -

I've not tried to do this myself (I've only dabbled in single-player games myself, and no multiple score objects), but here are some thoughts:

--if you have more than one Score object in the same frame, they will have different object names, so I wouldn't initially see a problem with them displaying correctly as long as you use corresponding events to update the different score objects.

--If you find out that it's not possible, then I recommend creating a counter on your applicable frame, make sure it's visible, use a Global Alterable Value to track the various scores you have, then Always updating the counter to display whatever score you want, referencing the Global Alterable Value that's keeping score.

 
n/a

Jon Lambert

Administrator
Vaporware Master

Registered
  19/12/2004
Points
  8235

VIP MemberWii OwnerTDC Chat Super UserI am an April FoolSSBB 3265-4741-0937ACCF 3051-1173-8012360 Owner
2nd March, 2011 at 14:38:39 -

Score objects are tied to specific players so even if you had multiple score objects you could only show one of four scores (as mmf2 has a max of four hard-coded players). Therefore, you need to use counter objects instead.

 
Sandwich Time!Whoo!

JoyCheck & KeyCheck Widgets
For easy implementation of customizable joystick and keyboard controls.
http://www.create-games.com/download.asp?id=8364

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
2nd March, 2011 at 23:08:15 -

I would recommend using counters anyway, you can do a lot more with them and they have very few limitations.

 
n/a

pixeldriver119



Registered
  23/02/2011
Points
  127
4th March, 2011 at 10:10:48 -

Would i have to use INI to make this work? I have been told that if i use a Global variable that will do it but will that global variable value get wiped when i exit the game without using INI?

 
n/a

s-m-r

Slow-Motion Riot

Registered
  04/06/2006
Points
  1078

Candle
4th March, 2011 at 13:44:33 -

Yeah, if you want to hold scores over from one session to the next, learn about INI's and how to implement them. Still working on that myself...

EDIT: Here's a TDC article that explains some details on basic saving schemes:

http://www.create-games.com/article.asp?id=1065

I was thinking there was an official INI tutorial somewhere, but I haven't found it just yet. Check over at Clickteam's website as well for more details.

Edited by s-m-r

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
4th March, 2011 at 16:44:34 -

INI's are very simple to use once you understand how they work, i use INI's in almost everything i make. I wount explain how because ill confuse you however there are some very good INI tutorials around and as you will see when you check them that it is very easy to use.


 
n/a

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
4th March, 2011 at 22:14:35 -

You don't have to use the INI object specifically but you will need to use something that saves your data. MMF2 games/apps don't automatically save all their values.

Actually INIs are very easy to use but very easy to alter. You can open one in notepad and see the structure is just a list of words and numbers.

Wasn't there a high score object in TGF1 that saved high scores?

 
.
   

Post Reply



 



Advertisement

Worth A Click