I used to never use 'my blocks', because like a year ago I clicked on 'make a block' and got scared of all of the configurations then never tried to explore them further and just went on with my creating. 1 year later, I'm making a game as a school project when I look down and remember that moment. curious (and with a bit more confidence), I looked up this video and watched it all the way through. AND _MY GOD._ IT IS SO SIMPLE BUT COULD HAVE SAVED ME FROM SO MUCH TROUBLE. my mind is blown, thank you for this video!
Amazing! Thank you for sharing your story. It's so lovely to read about your journey and to hear you revisit content you previously thought challenging.
30 seconds in to this site and impressed already. Certainly going to explore all things "Surfing Scratcher"! Teacher F/T Primary - Sydney - Digital Tech / Robotics. Stay Calm...and Carry on Coding!
Thanks for dropping by with your comment, Karl. Pumped to read that you've found value. Be sure to reach out if you and your learners complete some of the projects. Love seeing how others put their spin on this work. Woot!
This video is useful for starters. I highly recommend starters follow this because it is so simple. The quality for this video is high. All of the time. I love your channel. It really needs a medal.
I had some what of an idea of how to use them but you cleared it up! I now know how to use the basics of my blocks from this video. Thanks surfing scratcher!
Hi KidtokidsGaming, thanks for your comment. It sounds like you value the content, which is wonderful. That's all that matters :) I'm always interested to hear about what people are looking to learn when it comes to Scratch and programming, so feel free to share what you're looking for 🤙
Hi Andres, thanks for posting your comment. Let me know if you think an accompanying worksheet would help with your students. If you think it might help, let me know what you'd like on it and I can create one :)
@@SurfingScratcher That would be great! Do you have a link to those worksheets? Would you happen to have any simple resources on how to explain conditional statements using if/then, when, = ? 4th graders will be learning those this upcoming year but I was having a hard time finding resources to "show" how it works. Thank you!!
@@andreschavez8811 I haven't yet created a worksheet for this video, but I can do it if you would like. It's probably a little more advanced though. Check out this resource first. It's an introductory project that talks about branching (if/then else decisions), iteration (loopin) and user input (button presses). If you check out this link you'll find a link to an unlisted video that walks you through the project. It's unlisted because it's part of a course. Let me know what you think. I'd be happy to create the Scratch functions worksheet in collaboration with you if you'll use it :) www.teacherspayteachers.com/Product/Coding-Activities-Scratch-3-Lesson-Plan-Bundle-Animate-Your-Name-5212508
Even though I am very late this explanation is the best I am going to use custom blocks on my new super Mario bros project to create the levels instead of making thousands of sprites for each different part of the levels
Absolutely LOVE reading this Themanofwinning Best. Once you nail this concept, you won't know yourself, and it will set the scene for your text-based programming explorations. Thanks for sharing and be sure to post a link to your project once you've done some work on it :)
@@Polai010 Awesome, thanks for sharing your project. I can see that you've utilised a custom block in your level base sprite. You've got a set of instructions that you need to repeat with one bit of information that changes. Great use of a custom block!
This video is pretty old and i'm not sure if your gonna see this but... do you know how there is a next backdrop block in scratch how would you create a previous backdrop block in scratch i really need to know. It will be much appreciated if you let me know and great video, you have earned a like and a new subscriber!
Vidyanidhi Vita legendary question! Personally, I haven’t found that solution. My workaround is to put the function in a central sprite and then use events in other sprites to call that function. Though, that’s of no use if you want to directly manipulate a sprite’s attributes. For that, you’ll need to duplicate using the backpack, which isn’t the cleanest solution. I wonder if other scratchers can she their workarounds. Check the wiki. It may have an answer for you. Thanks for posting!
Can I make a code where; it told the machine to put numbers in ascending/whatever order to the input boxes..? I'm too lazy of having to switch from clicking to typing to clicking to typing and so on.
Not in the works just yet. I reckon there might already be a few other videos around with these tutorials. If you link me with a couple of example, I can have a look into it.
Hi, great channel I was wonder how to make a sprite stop moving and like hide behind something. I'm doing this game where you have to pick up trash and their moving, if you click on it, it should stop and go behind the trash, but I have to wait for the moving code to finish then after that's finished it goes hiding behind the trash(which is my goal) plz help
That's a cool question Toni. You might create your own 'starter project' the starter project is a baseline that you can duplicate each time that you wish to start a new project. Alternatively, you could put everything inside of a sprite that could be important across projects. it's a little funky when you have variables and the like, especially with local and cloud variables. Curious to hear about other ways you've come up with to work around this. It's just about video worthy!
Hi yoismylastword, thanks for posting your comment. I wanna be sure that I'm understanding you. Are you suggesting that you would like to make a custom block and specify a time that it should run for? If so, you could use the built-in timer block. I'd do something like this: runFunctionFor: 2 seconds resetTimer repeatUntil Timer > 2
Hi, thank you for your sharing. I try to do the same in the scratch. Pixel size in costume set 24x24 and copy all the blocks in your order. But there are gaps between the pixels, which looks like the pixels are NOT touching each other/ they have a white outline. What do you think if anything I have done differently? thanks.
@@SurfingScratcher Thanks. I try to widen a bit of the pixel and the white gap disappears, while it still remains 24 x 24. I guess the dimension is not an integral.
It's not needed. I think I just used a list in place of a count variable. I could just check the length of the list. I was playing around with this technique and you might use it if you wanted to reference each individual pixel in the grid.
Inputs are used to make your sequence of steps more general. Think of my blocks like a food recipe. It has a sequence of steps for you to follow. Usually in a food recipe, you'll have to measure out quantities of ingredients. A recipe usually tells you how many serves it makes. Let's say a cake recipe makes 6 serves. But you're having a birthday party and there will be 18 people. Instead of manually changing the individual measurements of the recipe, you can just create a multiplier by using an input that will automatically do it for you. My blocks is just like creating a template to reuse. You can 'tweak' the template by the inputs that you pass in.
@@daynnit1 Just treat them as any other boolean. Recall that a boolean is just a switch for 'yes' or 'no'. So you're just passing in a 'yes' or 'no' if block condition that is controlled from outside of the custom my block. You use my blocks to generalise code block sequences. Say you wanted the same thing to happen when a condition was true, then you can generate a my block and have the boolean input as a placeholder for that condition. An example that comes to mind is user input. You could use a boolean for a mouse press or a button press and have the same set of instructions execute for both.
no. not at all. i came here to see what they where. they are basically like the print function in python!!! that makes it soooooooo much easier to make the fighting game i wanted to make!!!
Not that I am aware of, which is unfortunate. The my blocks that I wish to use 'across' or 'globally' throughout the project, I place on the stage. Then I can just use events to trigger them from any sprite. I try and keep custom blocks that relate directly to that sprite in the blocks of the sprite. Anything more generic goes in the stage.
I know, right? You can do some fairly clunky workarounds using events, but I think it would make your project more cluttered than it already is. I try and work globally in the stage sprite when I'm just working on data.
@@user-xz2nm6lp5d That's right, the 'boolean parameter' just acts like any other boolean operation. I like to think of it as a custom flag that's either yes or no. Rather than hardcoding that logic inside of the custom block, you can pass the block the yes or no flag. Inside the block, you will just execute code based on the yes or no flag that you've passed in. If yes passed in then do ... else ...
Hi Carries, thanks for your comment. Yep, 'my blocks' are more of an advanced feature. Definitely don't recommend them for just starting out. Once you begin to repeat instructions or want to group them, then they are super handy.
Hi Miss Shelley, thanks for dropping by with your comment. Which aspect of My Blocks are most confusing? If you're new to Scratch, I wouldn't recommend using them until you're comfy with other block categories first. Let me know which part of the tutorial seems most confusing and I'll do what I can to shed some light on it :)
@@missshelley6957 The show block sets the stage for the rest of the tutorial. A custom 'fade in' block is just a show block that gradually reveals itself. Call it a story-telling decision :) Though, I'm with you. Using a custom block that does something Scratch already does is pointless. I can see merit in demonstrating this as well, but acknowledge that it may not be to everyone's preference. ✌️
SCRATCHY QUESTION: Share how you use 'My Blocks' below.
Surfing Scratcher I use them ALL the time!!!
Making an operating system
custom hat blocks, custom modification blocks, custom pen blocks, etc
rhythm game
animations
I used to never use 'my blocks', because like a year ago I clicked on 'make a block' and got scared of all of the configurations then never tried to explore them further and just went on with my creating. 1 year later, I'm making a game as a school project when I look down and remember that moment. curious (and with a bit more confidence), I looked up this video and watched it all the way through.
AND _MY GOD._
IT IS SO SIMPLE BUT COULD HAVE SAVED ME FROM SO MUCH TROUBLE.
my mind is blown, thank you for this video!
Amazing! Thank you for sharing your story. It's so lovely to read about your journey and to hear you revisit content you previously thought challenging.
same :)
30 seconds in to this site and impressed already. Certainly going to explore all things "Surfing Scratcher"! Teacher F/T Primary - Sydney - Digital Tech / Robotics. Stay Calm...and Carry on Coding!
Thanks for dropping by with your comment, Karl. Pumped to read that you've found value. Be sure to reach out if you and your learners complete some of the projects. Love seeing how others put their spin on this work. Woot!
After 2 years, still helping a lot!
Thank You! I wasn’t smart enough to figure out how to male the inputs work but all thanks to your bonk of my head I can make an auto text scroller.
This video is useful for starters. I highly recommend starters follow this because it is so simple. The quality for this video is high. All of the time.
I love your channel. It really needs a medal.
Thanks Surfing Scratcher :) You help me alot with scratch!
Thanks so much!
And, Ive subscribed your youtube channel :)
U need more subscribers
Thanks, I will be sure to use this to save time in the future!
I had some what of an idea of how to use them but you cleared it up! I now know how to use the basics of my blocks from this video. Thanks surfing scratcher!
Unreal, Its Ravage! I love hearing and reading posts like yours. Super pumped to hear that it offered some value for you and your learning journey 🙌
You are underrated!!!
Clearest explanation of custom blocks I've seen, thanks!
How do you only have 173 subs? This is such a high quality channel!
Hi KidtokidsGaming, thanks for your comment. It sounds like you value the content, which is wonderful. That's all that matters :) I'm always interested to hear about what people are looking to learn when it comes to Scratch and programming, so feel free to share what you're looking for 🤙
@@SurfingScratcher Thank you!
he has 4.2k subs
@@ahmedfadi9050 He HaS 5.76 sUbS
@@ahmedfadi9050 It was posted 2 years ago, which was 1 year 10 months before your comment was posted. His channel grew so much in that time...
I appreciate this!! Been avoiding blocks for years, I didnt realize the potential behind them until now!
Amazing! Thanks for sharing your experience :)
You are so good at teaching,your tutorial helped me a lot,thank you.
Thanks YOMUPI for posting your feedback. I feel happy knowing that you found it helpful!
Thank you for teaching us this, I really learned something
not for me tho. this is a tutorial that help me do 1 code but it not an explaination that help me do everything else.
Thank you very much! This tutorial is very helpful. It's very clear and I understood everything.
Top Quality Channel. This was going over my head until you came and told me how to do it! HUZZAH to you!
Woot Vasurva! So glad to hear that the video has cleared up some confusion for you. I love hearing about stories like this so thanks for sharing :)
I just thought that they are like messages ( yellow blocks) but now I know more! Thanks!
Tysm! I didn’t know how to use these at all earlier!
i had no idea even what my blocks were . But this video helped me learn about them
thank you for your excellent movies
Excellent presentation. Thanks. We pronounce the word "Boolean" differently.
Me watching every single tutorial: i don't understand this.
Me Watching Surfing Scratcher: My mind is BLOWN O_O (bcuz of how amazing u r)
this is so helpful now i understand how blocks work thanks you so much
Thank you so much I knew how to use blocks but I didn't know how to use the inputs but they're just like variables! Thanks for the video!
8:56
You can just use one of those mass blocks and make an x, y, and direction text box
woah ive used scratch my blocks function before but this expalins it more then i knew
it was very helpful thanks.
Thanks for creating this! Would love to use this with our students! Thanks for creating the Starter Project as well!! So helpful!
Hi Andres, thanks for posting your comment. Let me know if you think an accompanying worksheet would help with your students. If you think it might help, let me know what you'd like on it and I can create one :)
@@SurfingScratcher That would be great! Do you have a link to those worksheets? Would you happen to have any simple resources on how to explain conditional statements using if/then, when, = ? 4th graders will be learning those this upcoming year but I was having a hard time finding resources to "show" how it works. Thank you!!
@@andreschavez8811 I haven't yet created a worksheet for this video, but I can do it if you would like. It's probably a little more advanced though.
Check out this resource first. It's an introductory project that talks about branching (if/then else decisions), iteration (loopin) and user input (button presses). If you check out this link you'll find a link to an unlisted video that walks you through the project. It's unlisted because it's part of a course.
Let me know what you think. I'd be happy to create the Scratch functions worksheet in collaboration with you if you'll use it :)
www.teacherspayteachers.com/Product/Coding-Activities-Scratch-3-Lesson-Plan-Bundle-Animate-Your-Name-5212508
This makes it so much easier! Now I will have less code and I can do stuff quicker! Thank you so much!
Definitely subscribing :)
Unreal StreamScapes! That's exactly the purpose of functions and now you've got a powerful skill/process to use going forward. Use it accordingly ;)
This video was very helpful thank you so much
Great video, thank you!
Even though I am very late this explanation is the best I am going to use custom blocks on my new super Mario bros project to create the levels instead of making thousands of sprites for each different part of the levels
Absolutely LOVE reading this Themanofwinning Best. Once you nail this concept, you won't know yourself, and it will set the scene for your text-based programming explorations. Thanks for sharing and be sure to post a link to your project once you've done some work on it :)
Surfing Scratcher Although this is not my ‘New’ Project It is sill using custom blocks for the level
scratch.mit.edu/projects/405151872/
@@Polai010 Awesome, thanks for sharing your project. I can see that you've utilised a custom block in your level base sprite. You've got a set of instructions that you need to repeat with one bit of information that changes. Great use of a custom block!
great explenation bro
This video is pretty old and i'm not sure if your gonna see this but... do you know how there is a next backdrop block in scratch how would you create a previous backdrop block in scratch i really need to know. It will be much appreciated if you let me know and great video, you have earned a like and a new subscriber!
Thank U
Thanks 🙍🏿♂️
video: teaches how to use custom locks in scratch
me: knows how but just wants to know what run without screen refresh ;)
Ohhh its like a function insertname(a, b)
Thanks
How do I use the same 'My Block' for different sprites within a project
Vidyanidhi Vita legendary question! Personally, I haven’t found that solution. My workaround is to put the function in a central sprite and then use events in other sprites to call that function.
Though, that’s of no use if you want to directly manipulate a sprite’s attributes. For that, you’ll need to duplicate using the backpack, which isn’t the cleanest solution. I wonder if other scratchers can she their workarounds.
Check the wiki. It may have an answer for you. Thanks for posting!
This has been annoying me too. No global function calls? Really MIT?
7:13 PM
5/9/2020
Use the broadcast feature.
I used my-blocks when I started making my 4th clicker game.
sorry i try it in laptop but "ok" button is not shown
This guy is better then zinnia
The scratch dev
finnaly, no more brodcasting :)
can you please post the link for the animation? thanks.
How about the Red hat block?
Can I make a code where; it told the machine to put numbers in ascending/whatever order to the input boxes..? I'm too lazy of having to switch from clicking to typing to clicking to typing and so on.
Using my blocks is fun
how do i change the block like its a varible tho?
Nioce
How to create one block for all sprites?
What do I do if I don't want any inputs to be entered as my scratch thing breaks with multiple inputs
N usei o bloco novo
hey can you make a fps game or a racing game on scratch and put a video
Not in the works just yet. I reckon there might already be a few other videos around with these tutorials. If you link me with a couple of example, I can have a look into it.
But what about the booleans
Hi, great channel I was wonder how to make a sprite stop moving and like hide behind something. I'm doing this game where you have to pick up trash and their moving, if you click on it, it should stop and go behind the trash, but I have to wait for the moving code to finish then after that's finished it goes hiding behind the trash(which is my goal) plz help
how do i delete blocks?
Isnt it just messages?
Is there a way to make a block that returns a value?
Unfortunately not. You'd need to work around this with setting a variable.
How to permanently save or even send your custom blocks? Only via save and share your own project?
That's a cool question Toni. You might create your own 'starter project' the starter project is a baseline that you can duplicate each time that you wish to start a new project. Alternatively, you could put everything inside of a sprite that could be important across projects.
it's a little funky when you have variables and the like, especially with local and cloud variables.
Curious to hear about other ways you've come up with to work around this. It's just about video worthy!
so.. its kinnda like the broadcast?
Yeah that's right. Except you can speak across sprites with broadcasts. My blocks only work within the sprite. But nice connection!
how to make a new block 'type () for () seconds' and use it?
Hi yoismylastword, thanks for posting your comment. I wanna be sure that I'm understanding you. Are you suggesting that you would like to make a custom block and specify a time that it should run for?
If so, you could use the built-in timer block.
I'd do something like this:
runFunctionFor: 2 seconds
resetTimer
repeatUntil Timer > 2
Hi, thank you for your sharing. I try to do the same in the scratch. Pixel size in costume set 24x24 and copy all the blocks in your order. But there are gaps between the pixels, which looks like the pixels are NOT touching each other/ they have a white outline. What do you think if anything I have done differently? thanks.
Is it something to do with the costume? Maybe your costume has a white outline?
@@SurfingScratcher Thanks.
I try to widen a bit of the pixel and the white gap disappears, while it still remains 24 x 24. I guess the dimension is not an integral.
So how to use 'My block'?
When creating the pixels, why is a list needed?
It's not needed. I think I just used a list in place of a count variable. I could just check the length of the list. I was playing around with this technique and you might use it if you wanted to reference each individual pixel in the grid.
Wait but messige blocks work the same!
How to use a single custom block in any spirits.
Unfortunately, it's not possible at this stage.
Can I give it to other sprites
If only! Unfortunately, you can only use my blocks on a single sprite. You can work around this somewhat with events, but it's not perfect.
😀
it doesn't work when I right-click
tell me in replies if u know what's happening on my computer
Me still watching at 9:99
what use do you use inputs for when you make my blocks
Inputs are used to make your sequence of steps more general. Think of my blocks like a food recipe. It has a sequence of steps for you to follow. Usually in a food recipe, you'll have to measure out quantities of ingredients. A recipe usually tells you how many serves it makes. Let's say a cake recipe makes 6 serves. But you're having a birthday party and there will be 18 people. Instead of manually changing the individual measurements of the recipe, you can just create a multiplier by using an input that will automatically do it for you.
My blocks is just like creating a template to reuse. You can 'tweak' the template by the inputs that you pass in.
@@SurfingScratcher i mean the boleen ones
@@daynnit1 Just treat them as any other boolean. Recall that a boolean is just a switch for 'yes' or 'no'.
So you're just passing in a 'yes' or 'no' if block condition that is controlled from outside of the custom my block.
You use my blocks to generalise code block sequences. Say you wanted the same thing to happen when a condition was true, then you can generate a my block and have the boolean input as a placeholder for that condition.
An example that comes to mind is user input. You could use a boolean for a mouse press or a button press and have the same set of instructions execute for both.
@@SurfingScratcher ok got it i ask that because i tried thaat and put repet until costume number thin for the input and it kept on glitching
no. not at all. i came here to see what they where. they are basically like the print function in python!!! that makes it soooooooo much easier to make the fighting game i wanted to make!!!
the road is amogus 😳😳
*uses blocks while watching
Do my blocks work across sprites?
Not that I am aware of, which is unfortunate. The my blocks that I wish to use 'across' or 'globally' throughout the project, I place on the stage. Then I can just use events to trigger them from any sprite. I try and keep custom blocks that relate directly to that sprite in the blocks of the sprite. Anything more generic goes in the stage.
custom blocks does not have global access! what a bummer!
I know, right? You can do some fairly clunky workarounds using events, but I think it would make your project more cluttered than it already is. I try and work globally in the stage sprite when I'm just working on data.
Can you help me with the booleans?
Have you checked out my video on Scratch Operators? If not, do that first as I go through Booleans there: ruclips.net/video/t8tQETY8j_M/видео.html
@@SurfingScratcher I meant the custom block booleans
Oh I get it now its a custom boolean thank you so much for your help
@@user-xz2nm6lp5d That's right, the 'boolean parameter' just acts like any other boolean operation. I like to think of it as a custom flag that's either yes or no. Rather than hardcoding that logic inside of the custom block, you can pass the block the yes or no flag.
Inside the block, you will just execute code based on the yes or no flag that you've passed in.
If yes passed in then do ...
else ...
i like to subcribe you and like you
there's a better tutorial to make blocks and here is it: ruclips.net/video/4GzZ-yG8aGg/видео.html
“Broadcasting in a nutshell”
Copy:
So basically the broadcast block on steroids?
someone like this video real quick or satan will come for us!!!!!!!!
I Understand nothing even i almost understand every scratch blocks
e
That is too confusing for making blocks the first time.
Hi Carries, thanks for your comment. Yep, 'my blocks' are more of an advanced feature. Definitely don't recommend them for just starting out. Once you begin to repeat instructions or want to group them, then they are super handy.
I hate ñ
Oh my gosh. Could you be anymore confusing
Hi Miss Shelley, thanks for dropping by with your comment. Which aspect of My Blocks are most confusing? If you're new to Scratch, I wouldn't recommend using them until you're comfy with other block categories first. Let me know which part of the tutorial seems most confusing and I'll do what I can to shed some light on it :)
@@SurfingScratcher Why even pull out the show block at the beginning when you don't need it? That is the first thing
@@missshelley6957 The show block sets the stage for the rest of the tutorial. A custom 'fade in' block is just a show block that gradually reveals itself. Call it a story-telling decision :)
Though, I'm with you. Using a custom block that does something Scratch already does is pointless. I can see merit in demonstrating this as well, but acknowledge that it may not be to everyone's preference. ✌️
no
i had no idea even what my blocks were . But this video helped me learn about them