Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How to make a function?
- raxu
- Scratcher
5 posts
How to make a function?
How to make a function? I can only make procedures in the “more blocks” part
- 78scratch87
- Scratcher
7 posts
How to make a function?
First, this belongs in Questions about Scratch.
Second, they will appear in the block library. You can add a definition my adding different blocks under the “hat” block.
I'll explain how to do this in more detail later.
Second, they will appear in the block library. You can add a definition my adding different blocks under the “hat” block.
I'll explain how to do this in more detail later.
I do not have a signature because I'm new here!
- Paddle2See
- Scratch Team
1000+ posts
How to make a function?
If, by function, you mean a procedure in the form of a reporter block that returns a single value - you can't do that with the current structure. You can still use variables to get return values but it isn't very elegant. Perhaps in a later release of Scratch.
Scratch Team Member, kayak and pickleball enthusiast, cat caregiver.
This is my forum signature! On a forum post, it is okay for Scratchers to advertise in their forum signature. The signature is the stuff that shows up below the horizontal line on the post. It will show up on every post I make.
(credit to Za-Chary)
;
- 78scratch87
- Scratcher
7 posts
How to make a function?
Thanks for moving this post Paddle2See! If, by function, you mean a procedure in the form of a reporter block that returns a single value - you can't do that with the current structure. You can still use variables to get return values but it isn't very elegant. Perhaps in a later release of Scratch.
I do not have a signature because I'm new here!
- Discussion Forums
- » Questions about Scratch
- » How to make a function?