Discuss Scratch

ILOVEEGG_PEOPLE
Scratcher
3 posts

How do you use my blocks properly

I've been confused when I see a tutorial for example griffpatch for using the custom blocks but I don't know what are they for so somone please help me.
when green flag clicked
 HELP ME reapeat until knowing how to use my blocks
end

Last edited by ILOVEEGG_PEOPLE (March 28, 2024 09:09:27)

deck26
Scratcher
1000+ posts

How do you use my blocks properly

There are several advantages to custom blocks.

They can help you organise your code - eg if the same code is repeated in different scripts or different parts of a script you can have a single custom block call.

You can use parameters so, for example. have something that draws a circle of a specified size at a specified location. So to draw 10 circles you'd just call the custom block ten times with different parameters. Doing this by other methods involves repeating code or setting several variables before drawing each circle.

The ‘run without screen refresh’ option allows the block to run very quickly. https://scratch.mit.edu/projects/55182496/ for example.

Only the calling object runs the custom block which is better than a broadcast when using clones - you have to stop other clones from running the code if you only want one clone to do so.
ILOVEEGG_PEOPLE
Scratcher
3 posts

How do you use my blocks properly

I highly appreciate you for teaching me about the my blocks in scratch and I also appreciate the fact that you used a example for me to understand easily.

Last edited by ILOVEEGG_PEOPLE (March 28, 2024 09:16:57)

tom75766
Scratcher
6 posts

How do you use my blocks properly

move (10) steps
tom75766
Scratcher
6 posts

How do you use my blocks properly

quiz 666

Powered by DjangoBB