Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to count with sprites???
- DexterEast
-
Scratcher
100+ posts
How to count with sprites???
Hey, everyone, I want to know how to count using sprites, I already have costumes for numbers 0-9. can someone plz tell me how? (I'm also new to discussions lol, I had to look up a tutorial about how to make one.)
P.S: I prob won't respond in a while
P.S: I prob won't respond in a while
Last edited by DexterEast (Dec. 4, 2020 20:09:24)
- --HyperZ--
-
Scratcher
100+ posts
How to count with sprites???
What do you mean by counting using sprites? Do you mean adding their values to a variable or something else?
- DexterEast
-
Scratcher
100+ posts
How to count with sprites???
No no, i mean having a sprite have the same number as a variable and changing with that variable
- DexterEast
-
Scratcher
100+ posts
How to count with sprites???
ill give you an example:
let's say we have a variable called VAR, and a counter sprite. if VAR is set at 100 the sprite will change to 100, but using numbers 0-9. do you understand?
let's say we have a variable called VAR, and a counter sprite. if VAR is set at 100 the sprite will change to 100, but using numbers 0-9. do you understand?
- DexterEast
-
Scratcher
100+ posts
How to count with sprites???
define BUMP
go to x: (0) y: (360)
when green flag clicked
BUMP
- DexterEast
-
Scratcher
100+ posts
How to count with sprites???
define BUMP
go to x: (0) y: (360)
when green flag clicked
BUMP
say [Please Answer my question]
- Vaibhs11
-
Scratcher
1000+ posts
How to count with sprites???
Name all costumes as their number.
No variable needed
when green flag clicked
switch costume to [0 v]
repeat (10)
wait (...) secs
next costume
end
No variable needed
Last edited by Vaibhs11 (Dec. 5, 2020 01:58:40)
- laieekwang
-
Scratcher
82 posts
How to count with sprites???
when green flag clicked
hide
change [ number_id] by (1)
create clone of [ number]
change [ number_id] by (2)
create clone of [ number]
change [ number_id] by (3)
create clone of [ number]
when I start as a cloneMaybe it got wrong,if got wrong please tell me
forever
go to x: ((200) - ((30) * ((time_id) - (1)))) y: (-150)
switch costume to (letter ((score) - ((number_id) - (1))) of [(score)])
end
- Nezon
-
Scratcher
1000+ posts
How to count with sprites???
looks like you need a text engine. I have one, i'll get the link for you, and you can display the thing anywhere. You can also change it to make it have a delay, or use clones.
- laieekwang
-
Scratcher
82 posts
How to count with sprites???
or you wanna like this?
https://scratch.mit.edu/projects/459256453/
https://scratch.mit.edu/projects/459256453/
- Vaibhs11
-
Scratcher
1000+ posts
How to count with sprites???
or you wanna like this?he wants to count with costumes. Not time.
https://scratch.mit.edu/projects/459256453/
- Discussion Forums
- » Help with Scripts
-
» How to count with sprites???