Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » I Need Help
- 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
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
I hope this helps
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
thank you 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 spritewhen 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
- HeHeTeeHeeHee
- Scratcher
100+ posts
I Need Help
thank you 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 spritewhen 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
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!
i'm brain dead aren't ii 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
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
probably movedHey! 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
AMONG USSTOPPPP
- Discussion Forums
- » Help with Scripts
- » I Need Help