Discuss Scratch

WillyTREJO2010
Scratcher
38 posts

I Need Help

I need help to make it so that my numbers will change depending on how many cookies you have.

here is the link
aaroj123
Scratcher
38 posts

I Need Help

I've tried this and it should work

create a variable named “counter”
in the cookie number sprite, create a custom block named “print” with “Run without screen refresh TICKED”
Press add extension and add the pen extension
place this code in the cookie number sprite

when green flag clicked
show
forever
set [ counter] to (0)
go to x: (-123) y: (131)
pen: erase all
my blocks: print
end
define my blocks: print
repeat (length of (cookies))
change [ counter] by (1)
show
switch costume to (join [pixel-] (letter (counter) of (cookies)))
pen: stamp
hide
move (20) steps
end

I hope this helps

Last edited by aaroj123 (Feb. 9, 2022 00:36:27)




——————————————
Coding
Making stuff
Helping with scripts
——————————————


——————————————
WillyTREJO2010
Scratcher
38 posts

I Need Help

aaroj123 wrote:

I've tried this and it should work

create a variable named “counter”
in the cookie number sprite, create a custom block named “print” with “Run without screen refresh TICKED”
Press add extension and add the pen extension
place this code in the cookie number sprite

when green flag clicked
show
forever
set [ counter] to (0)
go to x: (-123) y: (131)
pen: erase all
my blocks: print
end
define my blocks: print
repeat (length of (cookies))
change [ counter] by (1)
show
switch costume to (join [pixel-] (letter (counter) of (cookies)))
pen: stamp
hide
move (20) steps
end

I hope this helps
thank you
HeHeTeeHeeHee
Scratcher
100+ posts

I Need Help

WillyTREJO2010 wrote:

aaroj123 wrote:

I've tried this and it should work

create a variable named “counter”
in the cookie number sprite, create a custom block named “print” with “Run without screen refresh TICKED”
Press add extension and add the pen extension
place this code in the cookie number sprite

when green flag clicked
show
forever
set [ counter] to (0)
go to x: (-123) y: (131)
pen: erase all
my blocks: print
end
define my blocks: print
repeat (length of (cookies))
change [ counter] by (1)
show
switch costume to (join [pixel-] (letter (counter) of (cookies)))
pen: stamp
hide
move (20) steps
end

I hope this helps
thank you


Hey! Glad your problem was fixed but maybe next time post in the Help with Script section instead? This isn't a question about scratch!

HeHeTeeHeeHee wrote:

i'm brain dead aren't i
i usually use advanced topics or help with scripts but sometimes i can be found in things i'm playing and reading
aaroj123
Scratcher
38 posts

I Need Help

HeHeTeeHeeHee wrote:

Hey! Glad your problem was fixed but maybe next time post in the Help with Script section instead? This isn't a question about scratch!

this is in the help with scripts section



——————————————
Coding
Making stuff
Helping with scripts
——————————————


——————————————
VHS_Eyes
Scratcher
35 posts

I Need Help

aaroj123 wrote:

HeHeTeeHeeHee wrote:

Hey! Glad your problem was fixed but maybe next time post in the Help with Script section instead? This isn't a question about scratch!

this is in the help with scripts section
probably moved

AMONG US
STOPPPP

Powered by DjangoBB