Discuss Scratch

TheProdigyCoder103
Scratcher
4 posts

Hi, how do I make a points counter for a clicker game?

I hope it can display up to 30 digits.

Please tell me how, I wanna make a clicker game
10goto10
Scratcher
1000+ posts

Hi, how do I make a points counter for a clicker game?

30 digits will be a problem since Scratch has a math problem with more than 16 digits.

You could look at my counting “invention” that starts with a high number and stops working after just a couple of clicks because of Scratch math.
https://scratch.mit.edu/projects/1107914178/
TheProdigyCoder103
Scratcher
4 posts

Hi, how do I make a points counter for a clicker game?

Oh.

Thanks for the help, but I saw the tutorial from Griffpatch
giraffeeproedmo
Scratcher
38 posts

Hi, how do I make a points counter for a clicker game?

You have to make a clone identification system

when green flag clicked
repeat (30)
turn cw (.01) degrees
move (10) steps
create clone of [myself]
end

Now make the clones switch to the numbers.

when I start as a clone
forever
switch costume to (letter (((direction) - (90)) * (100)) of (score))
end
10goto10
Scratcher
1000+ posts

Hi, how do I make a points counter for a clicker game?

TheProdigyCoder103 wrote:

Oh.

Thanks for the help, but I saw the tutorial from Griffpatch
Are you still looking for help or do you have everything you need?

I liked my number display because it includes commas which make the number easier to read. Also, without special math routines you won’t get 30 digits. At most you’ll get 16 digits and some trailing placeholders.
TheProdigyCoder103
Scratcher
4 posts

Hi, how do I make a points counter for a clicker game?

I have everything.
Thanks for the help anyway
NMario84
Scratcher
1000+ posts

Hi, how do I make a points counter for a clicker game?

Wait what? Scratch has issues solving math with over 20 digits? But WHY? Is this a bug, or something? Is it Scratch 3.0 specific, or has it been a bug since 1.0?
10goto10
Scratcher
1000+ posts

Hi, how do I make a points counter for a clicker game?

The math bug is number 8 in my studio of Scratch programming pitfalls. You’ve asked some good questions but we tend to follow the practice of starting a new topic in the Questions about Scratch forum. TheProdigyCoder103 appears to be done with this thread and might not want to be bothered with any more replies.

Powered by DjangoBB