Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Score on Text?
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default Score on Text? - 05-28-2011, 05:47 PM

I'm making an FPS game, where you infinately fight guys in an attempt to rack up points. I'm thinking of making a variable that's a number, and setting it to be the score, but I want users to know their score when they die. How can I make it so that users can see their score?

I tried making a text equal to the variable of the number but it didn't work.

Also, is there a way to have leaderboards for score across the same computer? (I know servers aren't possible with alice. I think I know anyways) This way people can see what score they've got.
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 05-28-2011, 06:45 PM

Quote:
Originally Posted by Nighthawk0973 View Post
I'm making an FPS game, where you infinately fight guys in an attempt to rack up points. I'm thinking of making a variable that's a number, and setting it to be the score, but I want users to know their score when they die. How can I make it so that users can see their score?

I tried making a text equal to the variable of the number but it didn't work.

Also, is there a way to have leaderboards for score across the same computer? (I know servers aren't possible with alice. I think I know anyways) This way people can see what score they've got.
For score showing, use the "what as string" function and have some 3d text set text to "Score Variable" as string.


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
sfunk
Senior Member
 
sfunk's Avatar
 
Status: Offline
Posts: 1,112
Join Date: Mar 2011
Location: I don't know
Default 05-28-2011, 07:38 PM

if you want a constant score showing, have a 3d text in your world, then go into the 3d text properties, now drag the set text into a method, then the part that says set text as "..." go into world functions and place "whatr as a string" there, then place the number variable for your score there. then in world functions, scrool to the bottom of the list, there will be one that says ".." as int, place that onto the variable, so it gets rid of the decimal.


If you are stuck on a project, check out the tutorials I made here at this link:

http://alice.org/community/showthread.php?p=36778#post36778

There are lots of tutorials on it so far, including some youtube videos, check it out

Or..

Go to my youtube channel to check out my alice 2.2 tutorials I have there..

http://www.youtube.com/user/sfunk1992?feature=mhsn
   
Reply With Quote
Old
Nighthawk0973
Senior Member
 
Nighthawk0973's Avatar
 
Status: Offline
Posts: 240
Join Date: May 2011
Location: In front of my computer.
Default 05-29-2011, 10:23 AM

I'll have to check out what you said after my school.
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.