2020-08-11
function is a very important concept in programming.
even in an object-oriented programming language, we still can find that function exists in the CLASS or OBJECT which is called method or sometimes function.
in Scratch, the function is not difficult to understand and can be easy to use.
you can find there is a My Blocks group. and please open the Make a Block.

you can name your new block. and setup other parameters. but now , let's just name it.

as a first example. I made two blocks:
turnRight make the role turn right and draw a circle. and the turnLeft block makes the role turn left and draw a circle.

now we use our own blocks to program.

let's try it.
https://scratch.mit.edu/projects/417069758
网友评论