Alice Community

Alice Community (http://www.alice.org/community/index.php)
-   How do I...? (http://www.alice.org/community/forumdisplay.php?f=16)
-   -   Score on Text? (http://www.alice.org/community/showthread.php?t=6655)

Nighthawk0973 05-28-2011 05:47 PM

Score on Text?
 
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.

TauTrumpsPi 05-28-2011 06:45 PM

[QUOTE=Nighthawk0973;36616]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.[/QUOTE]

For score showing, use the "what as string" function and have some 3d text set text to "Score Variable" as string.

sfunk 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.

Nighthawk0973 05-29-2011 10:23 AM

I'll have to check out what you said after my school. :)


All times are GMT -5. The time now is 07:28 AM.

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