Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » high number counter
- ZDerpKnight
-
Scratcher
100+ posts
high number counter
I'm making a clicker, I am struggling making a counter display, unsure why, I can make one that counts to 999,999. I would like one that does “1.2 mil” If anyone has any idea, please do help me out.
- Oumuamua
-
Scratcher
1000+ posts
high number counter
Hi, what is your problem exactly? Printing the counter with sprites? Shrinking the counter adding a sufix? You better share the project.
- DrGaming_92Games
-
Scratcher
100+ posts
high number counter
Use this:
EDIT: If you want it to calculate to the hundredths place, change the 10s to 100s, if you want to the thousandths change them to 1000s.
(join ((round (((money) * (10)) / (100000000))) / (10)) [M])
EDIT: If you want it to calculate to the hundredths place, change the 10s to 100s, if you want to the thousandths change them to 1000s.
Last edited by DrGaming_92Games (March 11, 2020 22:07:38)
- ZDerpKnight
-
Scratcher
100+ posts
high number counter
What I mean is a decent counter script/sprite. I am currently trying to make a clicker game, but I would like for them to be themed rather than the dull orange scratch variable box. I can't exactly release it as it is still in the basic stages of life.
I would prefer something, that could show “K;Mil;Bil;Tril” Which may be impossible, but either way I would like a way to do that.
I am currently using this
I would prefer something, that could show “K;Mil;Bil;Tril” Which may be impossible, but either way I would like a way to do that.
I am currently using this
when green flag clicked
forever
if <[Cost] > [100]> then
switch costume to [letter (1) of money]
end
end
Last edited by ZDerpKnight (March 12, 2020 14:05:39)
- LordThror
-
Scratcher
100+ posts
high number counter
What I mean is a decent counter script/sprite. I am currently trying to make a clicker game, but I would like for them to be themed rather than the dull orange scratch variable box. I can't exactly release it as it is still in the basic stages of life.You could use a text engine? Just search text engine on scratch and see if they have one that does what you want.
I would prefer something, that could show “K;Mil;Bil;Tril” Which may be impossible, but either way I would like a way to do that.
I am currently using thiswhen green flag clicked
forever
if <[Cost] > [100]> then
switch costume to [letter (1) of money]
end
end
- Discussion Forums
- » Help with Scripts
-
» high number counter




