Posted By
Message
bri
Registered 04/05/2005
Points 17
17th May, 2005 at 23:45:39 -
hi all!
i'm using MMF's score extension at the moment for my score..
can anyone offer some advice to get my score to display multiple zeroes?
so, say a player has 2500 points, the score reads
00002500
as opposed to just
2500 ?
thanks!
n/a
Cecilectomy noPERegistered 19/03/2005
Points 305
17th May, 2005 at 23:53:57 -
im no expert and this is probably the worst way to to it but use differnt counters for 1point 10 points 100 points etc. look in some of the other tech help posts and email the people that gave the person the most help. maybe theyll know.
n/a
axel Crazy?
Registered 05/02/2005
Points 4766
18th May, 2005 at 03:57:58 -
or you could use a string (i mean with the str$() command) and add like 6 0:s before if the score is less than 10 and 5 0:s if it's 10-100 etc.
like this...
*score is less than 10
-Set alterable string to: "000000" + str$(value(score))
and so on
n/a
Joe.H Evil Faker Registered 19/08/2002
Points 3305
18th May, 2005 at 03:58:42 -
use a string object to display the score on the counter, with the required number of 0's before it
d'oh! Damn you aggggggggggggggggggggggggggggggggggggggggggggggggge! Edited by the Author.
My signature is never too big!!!
axel Crazy?
Registered 05/02/2005
Points 4766
18th May, 2005 at 04:20:48 -
n/a
Destroyer (CrobaSoft)
Registered 10/10/2004
Points 1106
18th May, 2005 at 04:26:57 -
No. Then when the score is 10, it would look like 0000010
and when the score is 25620, it would still look like 0000025620
Use a string and set it to
Left$( "00000", 5 - Len( Str$( score( "Player 1" ) ) ) ) + Str$( score( "Player 1" ) ) Edited by the Author.
Visit www.crobasoft.com or you're a Noob.
axel Crazy?
Registered 05/02/2005
Points 4766
18th May, 2005 at 04:36:01 -
uuuh, destroyer, did you even read my post?
i said that it'd add six 0:s if it was less than 10
and five 0:s if it was 10-100
and four 0:s if it was 100-1000
an so on...
well, your version is better, but still, please pay more attention and read others posts before saying their tecniques don't work
n/a
axel Crazy?
Registered 05/02/2005
Points 4766
18th May, 2005 at 04:56:50 -
and the score object isn't an extension, it's included with MMF
n/a
David Newton (DavidN) InvisibleRegistered 27/10/2002
Points 8322
18th May, 2005 at 05:08:48 -
Agggggggge's method is right, but using Len() does make the whole thing a lot neater.
http://www.davidn.co.nr - Games, music, living in America
axel Crazy?
Registered 05/02/2005
Points 4766
18th May, 2005 at 08:24:47 -
meh, yea it does, i can admit that. i didn't know about the len() function two weeks ago( ), and i thought it was len$()
n/a
Destroyer (CrobaSoft)
Registered 10/10/2004
Points 1106
18th May, 2005 at 08:55:54 -
Right, sorry Aggggge i should have read your post properly, all i saw was
"00000" + str$(score) Edited by the Author.
Visit www.crobasoft.com or you're a Noob.
Klikmaster Master of all things KlikRegistered 08/07/2002
Points 2599
18th May, 2005 at 13:21:08 -
Yeah, do what Destroyer said, but I'd recommend using the active system box instead, because it goes above active objects and the string object goes wierd in contact with actives
n/a
Phredreeke Don't listen to this idiotRegistered 03/08/2002
Points 4504
18th May, 2005 at 13:32:25 -
how about
Mid$(Str$( score( "Player 1" )+100000000),1,
that should work too, and is shorter than destroyer's version.
- Ok, you must admit that was the most creative cussing this site have ever seen -
Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363
bri
Registered 04/05/2005
Points 17
18th May, 2005 at 15:08:55 -
thanks guys, you all rock
n/a
Phredreeke Don't listen to this idiotRegistered 03/08/2002
Points 4504
18th May, 2005 at 15:19:55 -
Doh! That last thing should be 8 ) instead of
- Ok, you must admit that was the most creative cussing this site have ever seen -
Make some more box arts damnit!
http://create-games.com/forum_post.asp?id=285363