Discuss Scratch

Looloopooo4
Scratcher
11 posts

How do I make a simple cash counter, like in Griffpatch videos?

I am trying to make a counter for money that isn't just the variable shown, instead a counter that is a sprite that clones itself. I have seen it before but I don't know how to do it.
Ranger_07
Scratcher
100+ posts

How do I make a simple cash counter, like in Griffpatch videos?

The basic script is something like this:
define display number (num)
set [i v] to [1]
repeat (length of (num))
switch costume to (letter (i) of (num))
create clone of [myself v]
change x by [10] //input the width of the widest number costume you have here
change [i v] by [1]
end

when I start as a clone
wait [0] seconds //this makes sure the numbers will show for one frame then delete themselves, at which point they will be replaced by the new clones
delete this clone

forever
display number (CASH)
end
CubedPlay
Scratcher
13 posts

How do I make a simple cash counter, like in Griffpatch videos?

Howdy! I’ve made a project showcasing a basic cash counter or number counter from this link: https://scratch.mit.edu/projects/1183982153/

If you have any questions please let me know!
realbloxhit900
Scratcher
100+ posts

How do I make a simple cash counter, like in Griffpatch videos?

or
when this sprite clicked
show variable [money v]
switch costume to [open v]
broadcast [money v]


the different sprite for the money
[scratchblocks]
when I receive [ money v]
go to x: (part where cash register is) y: (part where cash register)
repeat until <(money) = [(whatever amount or number that you want]>
create clone of [myself v]
end
[/scratchblocks]

Last edited by realbloxhit900 (June 3, 2025 02:15:18)

realbloxhit900
Scratcher
100+ posts

How do I make a simple cash counter, like in Griffpatch videos?

don't add the red
realbloxhit900
Scratcher
100+ posts

How do I make a simple cash counter, like in Griffpatch videos?

oh yeah on the go to x and Y put it. Where you want it to go
Looloopooo4
Scratcher
11 posts

How do I make a simple cash counter, like in Griffpatch videos?

Thanks!!! I'm sure to use them in my game!!!

Powered by DjangoBB