Discuss Scratch

27ndolieslager3
Scratcher
73 posts

Clicker Game Coins

Hi!
I made a clicker game and I have a coin variable to show the coins. I want to make it so when you hit 1 million(for ex) it says 1m.
Thanks!

Scratch On!
bcs320jn
Scratcher
100+ posts

Clicker Game Coins

This should work…

when green flag clicked
forever
if <(Coins) > [999,999]> then
set [Coins v] to (join ((Coins) / [1,000,000]) [ m])
stop [This script v]
end
end

Last edited by bcs320jn (Feb. 7, 2022 23:07:07)


D-ScratchNinja
Scratcher
1000+ posts

Clicker Game Coins

bcs320jn wrote:

This should work…

when green flag clicked
forever
if <(Coins) > [999,999]> then
set [Coins v] to (join ((Coins) / [1,000,000]) [ m])
stop [This script v]
end
end
That is the idea, but you'll need to use a separate variable that displays the coin count, otherwise you'll break the real number.

D-ScratchNinja • he/him
- The following is my signature, which always shows up below my posts. -


New! Filter through my projects with my website.

Need to fix an issue? Check out this studio for solutions to some common problems!

OS: Windows 11 / Browser: Microsoft Edge / Time zone: PST/PDT
27ndolieslager3
Scratcher
73 posts

Clicker Game Coins

I want to do it for all things EX 2b

Scratch On!

Powered by DjangoBB