Scratch Custom Blocks Tutorial

Поділитися
Вставка
  • Опубліковано 22 гру 2024

КОМЕНТАРІ • 421

  • @ShiftClickLearn
    @ShiftClickLearn  4 роки тому +110

    I hope this helps you guys out!

    • @gregfox51
      @gregfox51 4 роки тому +6

      thanks it did

    • @ShiftClickLearn
      @ShiftClickLearn  4 роки тому +8

      :D

    • @aminmiah9773
      @aminmiah9773 3 роки тому +2

      For me, when I make a custom block and I put a huge input with it, it doesn't work, so for people with the same issues, just use broadcast(also custom blocks with small inputs like one in the video work)

    • @bluevoltgaming2765
      @bluevoltgaming2765 3 роки тому +2

      This tutorial really helped! Thanks!!! :)

    • @senomation2228
      @senomation2228 3 роки тому

      Please look my scratch:senosenos

  • @kniightreviews4012
    @kniightreviews4012 3 роки тому +14

    I always never understood custom blocks this really helps

  • @eggomyleggos5247
    @eggomyleggos5247 Рік тому +3

    FINALLY A TUTORIAL ON HOW BOOLEANS WORK!! all of them go over the first and last parameter which are easy to figure out over time but the boolean confused me for weeks!

  • @letsgame1854
    @letsgame1854 2 роки тому +2

    You're a live saver! I'm having IT class and we're working with Scratch, I know much about it and never understood these Custom Blocks. I will be so much faster completing my tasks. (Also I when I will start using it my friend will be so confused and don't understand a word.) Thank you so much!

  • @TieZeeGuy235
    @TieZeeGuy235 Рік тому +10

    Bruh I never under stood custom blocks so thank you

  • @bloxzstudios1956
    @bloxzstudios1956 3 роки тому +8

    wow thank you
    I never fully understood what these do I didnt think it was this simple

  • @polivent2222
    @polivent2222 2 роки тому +4

    I would say I never write comments on youtube, but I have to say this. I was expecting a low quality scratch turtorial when searching this topic, but this video is so damn good. Amazing mic and pace. Great turtorial and great explaining. And as I Said I almost never write comments great video

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      Hey, thanks a lot for the comment, I'm glad my tutorial was good/ helped you out. :)

  • @nhathoangnguyen3198
    @nhathoangnguyen3198 Рік тому +2

    yo i been used scratch for 3 year but still didn't know this untill now,thank u so much

  • @lukatolstov5598
    @lukatolstov5598 5 місяців тому

    3:23 We can also fit inside (text) and (number), but not reversed.

  • @d_shadow.
    @d_shadow. 3 місяці тому +2

    Here I was never trying to use it just because I didnt know what it did, and then I find out its basically just a way more efficient version of broadcast and [forever]
    Thanks for the clear and concise tutorial.

    • @niebezpiecznykoles8120
      @niebezpiecznykoles8120 3 місяці тому +1

      It's not the same thing as a broadcast block, but it's still similar. You can only use these custom blocks in the sprite in which you created it. Actually, you can recreate custom blocks in every sprite. If the block is complex, You can also copy it by dragging the definition block you want, on icon of the sprite you want it in. I'm talking about icons which you can see under the stage.

  • @Oreopuchi
    @Oreopuchi 8 годин тому

    Thank you! Most professional coders use this and I was always confused on why but this video gave me understand to it. This will definitely help in making my code so much shorter!

  • @dukenawo7412
    @dukenawo7412 2 роки тому +2

    Very helpful video!! I have been using scratch for a long time and always avoided these blocks because they seemed complicated but now I see that it was actually very simple. Thanks a lot!

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому +1

      You're very welcome- they're really helpful! :D

  • @aadityameher6032
    @aadityameher6032 3 роки тому +2

    I never understood how to use my blocks. This really helped me in my project thank you.

    • @ShiftClickLearn
      @ShiftClickLearn  3 роки тому +1

      I am glad you understand now! Thanks for watching!

  • @Abdo-the-dark
    @Abdo-the-dark 11 місяців тому

    MAN THANK YOU I WAS SEARSHING FOR EVERY VIDEO IN UA-cam AND IT DOESN'T HELP ME BUT YOU'RE THE ONLY ONE WHO DO THUS THAAAAAANKSSS!!!!!

  • @darkplayz9890
    @darkplayz9890 Рік тому +1

    Great video! You did a good job explaining it simple enough for all ages yet it still shows you everything you need to know, keep up the good work!

  • @RecraftedS
    @RecraftedS 4 роки тому +9

    Also I’m not sure how hard this would be but can you try and make like a sandbox game maybe like the Paper Minecraft on scratch? I’ve been wanting to make a game like that for years. It’s meant to be a fusion of Minecraft terraria. So it would be a pretty good prototype to play with on scratch before I actually make it a fully fledged game. So if you could do it that would be amazing!

    • @ShiftClickLearn
      @ShiftClickLearn  4 роки тому +3

      Sorry I didn't reply I have been really busy lately!😁Those types of games are crazy CRAZY advanced...But I have always wanted to make something like that. Maybe someday!

  • @Jacksonwolstencroft
    @Jacksonwolstencroft 3 роки тому +4

    Using custom blocks now that I understand this. Keep up the great videos, I really like your stuff

    • @ShiftClickLearn
      @ShiftClickLearn  3 роки тому +3

      Thank you so much! I'm glad you understand them!

  • @flynnrm
    @flynnrm 17 днів тому +1

    this actually just made me understand everything in scratch

  • @stariobrawl86
    @stariobrawl86 2 роки тому +1

    Great video, I just got into scratch and I couldn't figure out what custom block did. You explained really well!

  • @Bacon_1672
    @Bacon_1672 2 роки тому +5

    Thank you for making this! I really didn't know how to use custom blocks.

  • @Sklider97Youtube
    @Sklider97Youtube 3 роки тому +3

    Its so good! Still working that good on tutorials! Good job!

  • @AnthonyZhangHuang
    @AnthonyZhangHuang 7 місяців тому +4

    define blocks are like 'when i receive message1' blocks and inputs are like variables

  • @johnpureza1600
    @johnpureza1600 4 роки тому +2

    This is the best explanation on blocks, Thank You

  • @RealerReal
    @RealerReal Місяць тому +2

    I am having trouble making something work. I am trying to make it so you input a value and it returns as something else. (not what my code is but what I mean) For example, you place a variable in one of the slots equal to 6, and the block just adds 2 to it and after the block is done the new value of that variable is 8. However, I can't find a way to do this so that it will work with whatever variable I input as there is no way to say Set ___ to something new, (___ being the input for the block) as you are only able to use the circle block of the input and nothing else. Sorry if I explained this bad or this is an easy fix but does anybody have a fix?

  • @c4thocente557
    @c4thocente557 11 місяців тому +2

    Finally figured out what this thing does, thanks :)

  • @StarfishStuff
    @StarfishStuff 5 місяців тому +1

    Thank you so much the helped so much with my projects! Before this I had no idea how to use the booleans and inputs. Also now I finally now how to create platforms! 11/10 awesome work

  • @RyanWhite717
    @RyanWhite717 2 роки тому +4

    Hey! I am working on a Tic Tac Toe Game in scratch, but I am confused on how to make the CPU Not go to that one spot.

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому +1

      What one spot?

    • @JOINTHEANTIBELLATHEWOLFGROUP
      @JOINTHEANTIBELLATHEWOLFGROUP 2 роки тому

      @@ShiftClickLearn try using the pick random ( ) to ( )

    • @Mythitie
      @Mythitie 2 роки тому

      Try creating a variable for each spot and when the spot is already taken set the variable to true so when the CPU goes to that spot it checks if the variable for that square is true it movs to another one and it repeats.

  • @Marco5Brawl
    @Marco5Brawl 2 роки тому +2

    my cl teacher didn't teavh me this, and before this vid I was just duping the codes and itwas very messy. Your vid saved my life!

  • @wholesomecupcake1526
    @wholesomecupcake1526 2 роки тому +1

    Is there a way to make "if you click this sprite, sprite blah blah blah changes to next costume"?

  • @TheDancingDame
    @TheDancingDame 2 роки тому +3

    Wow, that didn't do what I thought it did. Thanks for saving me all that time!

  • @IdostuffsometimesMP
    @IdostuffsometimesMP Рік тому +3

    The fact this and variables are so similar to each other

  • @sneakyplays101
    @sneakyplays101 2 роки тому +3

    Omg thanks this will make my platformer very simple

  • @saanvimurali054
    @saanvimurali054 3 роки тому +1

    I didn't know how the boolean and the circle thing worked. Thanks for this tutorial!

  • @einsteingamer2.0
    @einsteingamer2.0 11 місяців тому +1

    Thank you so much, couldn’t figure out how to get my sprite to stop moving when hitting a wall instead of just moving back -20 steps to fight against the player, but it looked bugging and worked terribly. But this help me so much

  • @abubakr8852
    @abubakr8852 2 роки тому +1

    concise & to the point ,,,, thanks that was very helpful

  • @moomoo_jons1958
    @moomoo_jons1958 11 місяців тому +2

    Very good tutorial! Thanks!

  • @oreoakm
    @oreoakm Рік тому

    This was super helpful! Been confused about boolean expressions on scratch for hours now 😅

  • @cosmocode75
    @cosmocode75 2 роки тому +1

    Hey shift,... I have no idea how to code a programming language in scratch, can you make a tutorial about this? Thanks very much!

  • @alandtea
    @alandtea 2 місяці тому +2

    can you make these blocks usable in other sprites tho?

    • @skeptical36
      @skeptical36 2 місяці тому +1

      No you can not

    • @ScratchLizard
      @ScratchLizard 25 днів тому

      yes you can. just drag the block definition into the desired sprite

  • @FireD4sher
    @FireD4sher Рік тому

    Thanks for the tutorial! I knew what block itself did, but never knew what Circle and Hexagon input were for.

  • @theonlycube8538
    @theonlycube8538 3 роки тому +2

    The move away script looks good in the video but I came up with the same script myself trying to get collision working in my game and it works if you are facing the object but if you like back into it it glitches you through the object. Hopefully this helped. But the tutorial is really good.

  • @RandomDude1487
    @RandomDude1487 9 місяців тому +2

    thanks for the tutorial, this is really good

  • @BeepBeep472
    @BeepBeep472 Рік тому +1

    is there a way to save these across project? i have a little spinny animation thing on one of my projects and i like to use it on others but it uses some code that idk what i means cuz i had to find a tutorial for it. so i want to save all of that code that makes it spin into one custom block so i can just use one block of code to make my little spinny animation

    • @chibacha21_CarBoi
      @chibacha21_CarBoi Рік тому

      Store it in the backpack, then open it up in your desired project and drop it in a sprite or the stage.

    • @BeepBeep472
      @BeepBeep472 Рік тому

      @@chibacha21_CarBoi yea i figured that out like right after i watched this but thank you anyway!

    • @chibacha21_CarBoi
      @chibacha21_CarBoi Рік тому

      @@BeepBeep472 You're welcome! :D

  • @iamicy.
    @iamicy. 3 роки тому +1

    i need to know how this is any better than just a message block because couldn't you do it by just using a broadcast block and when i receive block ???

    • @ShiftClickLearn
      @ShiftClickLearn  3 роки тому +2

      The custom blocks have inputs and labels and stuff to organize your code.

    • @tehokratija2520
      @tehokratija2520 3 роки тому +1

      Functionally, you can do the same thing with messages, but custom blocks make code organization much easier.

  • @satako888
    @satako888 Рік тому +2

    It's so useful 🥰 thanks so much

  • @GeckoTech_Engineer
    @GeckoTech_Engineer Рік тому +1

    What does Boolean input do
    Nvm you explained

  • @SaculxYT
    @SaculxYT 3 роки тому +4

    So we can make copies of a block that is already on scratch…?

  • @funnysounds969
    @funnysounds969 3 роки тому +2

    Thanks, this helped a lot! I’m trying to make a PvZ like game in scratch, and it would be impossible without the enemies having HP counters and other stuff

    • @funnysounds969
      @funnysounds969 3 роки тому +1

      Just noticed that wouldn’t work because everything would share the same HP variable lol. Why does my brain move so slow! It was still an amazing tutorial none the less

    • @ShiftClickLearn
      @ShiftClickLearn  3 роки тому +2

      Thanks! You could try to make the variable for this sprite only- That will make the HP var independent to the individual clones! 😁

    • @funnysounds969
      @funnysounds969 3 роки тому

      @@ShiftClickLearn Ok, thanks! I had no idea that was what it was for lol

  • @FuzzyImages
    @FuzzyImages 2 роки тому +2

    I don't understand, for me the blocks don't seem to be visible in the tool bar between sprites.

    • @RavivLadaga
      @RavivLadaga 2 роки тому

      They only work for one sprite make another one if you want one in a different sprite just make one in the sprite you want it to be in

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      They are like a for this sprite only variable! :D

    • @FuzzyImages
      @FuzzyImages 2 роки тому

      @@ShiftClickLearn Yeah I eventually figured them out, I just expected them to be across all sprites.

  • @Yannisngan
    @Yannisngan 10 місяців тому

    Old video but very useful , I was so confused of custom blocks but now I understand thanks to your tutorial and it might be useful since I have like at least 50 broadcasts in my unshared project

  • @JJbroGaming1122
    @JJbroGaming1122 2 роки тому +2

    Thank you so much! Now I finally know what this does!

  • @t1ishoo
    @t1ishoo 3 роки тому +3

    this rlly helped a lot! ty! :D

  • @darayman8614
    @darayman8614 2 роки тому

    is there a way to change the speed of ur sounds files without effecting the pitch??

  • @alyaso5918
    @alyaso5918 2 роки тому +4

    It's very helpful thx!

  • @dantheg4691
    @dantheg4691 2 роки тому +1

    make a tutorial on which block can we make the sprite flip horizontaly (which block)

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      Set rotation style to Left-Right
      Point in direction 90/ -90
      Hope this helps. :)

  • @lemonadeoriginal65
    @lemonadeoriginal65 2 роки тому +2

    Very helpful thank you! 🍋

  • @mrelephante
    @mrelephante 2 роки тому +3

    This helped a bunch, thanks

  • @harshadagorey
    @harshadagorey 4 роки тому +2

    This helped me out very much

  • @yepthatsmyname2309
    @yepthatsmyname2309 2 роки тому +2

    Thank you I needed this sooo bad

  • @raedkhashashneh5781
    @raedkhashashneh5781 17 днів тому

    I dont know if you will see this but my bolean doesnt work! In the block i added a bolean that repeats a script until the bolean is fulfilled, it doesnt work when i add my condition in the block but i tried doing it without using the custom block and it worked so im not sure why its not functioning well

    • @Nickel475
      @Nickel475 20 годин тому

      Did you tick the run without screen refresh?

  • @unpleasantzombie
    @unpleasantzombie 3 роки тому +1

    I have a question how do you make a staircase using custom blocks

  • @JM_theBoss
    @JM_theBoss Рік тому +2

    Such a good Video❤❤🎉

  • @charmz_s163
    @charmz_s163 3 роки тому +2

    omg i didnt understand it at first but now i do tysm

  • @rick5522
    @rick5522 2 роки тому +1

    Gz, it's a nice one. Especially outstanding performance at your age, according to your tone. Don't stop ;)

  • @CubicChair
    @CubicChair 2 роки тому +2

    Thank you SO MUCH it helped.

  • @alpactra1830
    @alpactra1830 3 роки тому +2

    this is an awesome tutorial!!!

  • @reptro
    @reptro 2 роки тому +1

    much better than my computer lab teacher!

  • @Danya-gaming
    @Danya-gaming 17 днів тому

    Thank you. i didnt know what it did and you helped me.

  • @lampzs-bestie
    @lampzs-bestie 8 місяців тому

    you are an absolute lifesaver

  • @shane914
    @shane914 Місяць тому +1

    Thank u now I finally know what blocks are

  • @nerfDarkiblade
    @nerfDarkiblade 3 роки тому +3

    7:29 that happened to me too😂

  • @diptych1
    @diptych1 2 роки тому

    This is the vid that got me to follow you - great communication skills! I learned a few things I didn't even realize I was missing out on. So... I guess custom blocks can only apply to other sprites than the one where you created it if you use the backpack to transfer it one new sprite at a time? Is there a place to create universal custom blocks or to import them so that they become unoiversal? (This is the reason I searched for block help to begin with, but now I know how to use the input buttons which massively finer understsnding, so THANKS)

  • @7axol
    @7axol 7 місяців тому +3

    Custom blocks are so overpowered they are capable of crashing scratch

  • @TiredAndSleepDeprived
    @TiredAndSleepDeprived 7 місяців тому +2

    Doesn't that mean it's the same as the broadcast block?

    • @TotallyNotJ4denn
      @TotallyNotJ4denn 6 місяців тому +1

      yes but it’s more easier to do and you can make your own type by adding Booleans and inputs so it’s op and useful

    • @TiredAndSleepDeprived
      @TiredAndSleepDeprived 6 місяців тому +1

      @@TotallyNotJ4denn well yeah besides adding boolings and inputs

    • @TotallyNotJ4denn
      @TotallyNotJ4denn 6 місяців тому +1

      @@TiredAndSleepDeprived it can reduce blocks and be fit easier in code

    • @TiredAndSleepDeprived
      @TiredAndSleepDeprived 6 місяців тому +1

      @@TotallyNotJ4denn yeah but the broadcast Does the same thing just no booleans or inputs

    • @TotallyNotJ4denn
      @TotallyNotJ4denn 6 місяців тому

      @@TiredAndSleepDeprived some times you can’t put certain code into places so you use custom blocks

  • @STEAM_Global
    @STEAM_Global Рік тому

    Great one. Well explained. It helped!

  • @jakke1975
    @jakke1975 5 місяців тому +2

    So it's basically a function?

  • @Superoneswithtophats
    @Superoneswithtophats Рік тому +1

    I already know but thanks for telling me about that hexagon block, I didn’t even know about that!

  • @imagee2
    @imagee2 2 роки тому

    What is the point of using a My block custom block without putting inputs, booleans or run without screen refresh?

    • @tronnx6655
      @tronnx6655 2 роки тому +1

      you can use it to organize your code. ex. if you have jumping scripts or something, you can repleace it with a custom block.

    • @imagee2
      @imagee2 2 роки тому

      @@tronnx6655 is it to make ur code shorter?

    • @blengen1
      @blengen1 2 роки тому +1

      @@imagee2 Well it won't shorten it, it'll just split it into two, but in a way, yes I guess?
      But yeah custom blocks are a lot for just organization really.
      However there is one use case, which is technically replicable with if checks, but I prefer this in a lot of ways.
      When you use a "stop this script" inside a custom block, it only stops the custom block, and not the script it was called from. I mainly use this in repeat loops, when I don't want the loop to stop, but I want the current run of the loop to end!

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      Yup, it's for organizing your code.

  • @ymelfilm
    @ymelfilm 2 роки тому +1

    very smart young padavan! Thank you!

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      We have informed Lord Vader of your comment, he was mode pleased...
      *IMPERIAL MARCH STARTS PLAYING*

  • @lukatolstov5598
    @lukatolstov5598 5 місяців тому

    You can add text to it, numbers, boolean, text. Works almost same as variable and broadcast and receive blocks.

  • @drikzz
    @drikzz 2 роки тому +3

    Thanks man!!

  • @JoshuaSpeedcubing
    @JoshuaSpeedcubing 3 роки тому +1

    The Boolean also works with SOME circle stuff

  • @luke2042
    @luke2042 2 роки тому

    These are like functions in Visual Basic or a stored procedure in SQL.

  • @cubeyblox6969
    @cubeyblox6969 3 роки тому +2

    this is really helpful, ty

  • @AzidDrop
    @AzidDrop 4 місяці тому +3

    THANK YOU

  • @Toquestino
    @Toquestino 2 роки тому +1

    Thanks! I really need an explanation for the number or text feature

  • @morganisapro8k
    @morganisapro8k Рік тому

    With the first example, couldn't that be done with messages?

    • @El_Asado
      @El_Asado Рік тому

      Can you send values between messages?

    • @morganisapro8k
      @morganisapro8k Рік тому

      @@El_Asado No, but with the first example, he showed us that everytime you use the block, the output connected to the define block will be activated

    • @El_Asado
      @El_Asado Рік тому

      @@morganisapro8k a custom block can run scripts without screen refresh and use inputs, but i see what you mean. I don't think my brain was activated when i made that comment

  • @TropialGamingYT
    @TropialGamingYT 2 роки тому +1

    This will help alot for my game
    And also I was wondering if you can make a survival game like minecraft but flat and a scrolling game with tiles?

    • @ShiftClickLearn
      @ShiftClickLearn  2 роки тому

      Hey, I have a series on making a tile game! Here's the link: ua-cam.com/play/PLH9SXvJQHkMTuNRf_14_NcvJIDsosmh4n.html

    • @TropialGamingYT
      @TropialGamingYT 2 роки тому

      @@ShiftClickLearn ok thanks

  • @the_company_animator
    @the_company_animator 8 місяців тому

    Thank you sooo much❤❤❤❤ i love this I'm subing

  • @kingsqueletons6668
    @kingsqueletons6668 2 роки тому

    Omg that so useful tysm!❤

  • @QayDel
    @QayDel 2 місяці тому +1

    i was here for run without screen refresh but i now know how the bolean works i thought i know how it works but i was wrong before and i get it now how the run without screen refresh works thanks!!

  • @Csbees
    @Csbees Рік тому +1

    Thanks very helpful 👍

  • @manaralshaar3381
    @manaralshaar3381 3 роки тому +1

    Perfect man. Thanks

  • @liviacarla1052
    @liviacarla1052 Рік тому

    Não tem mais blocos na categoria 🔴 (Os Meus Blocos) pq reiniciou com blocos da categoria 🔴 (Os Meus Blocos)

  • @Welshcrusader-v2u
    @Welshcrusader-v2u 8 місяців тому

    So helpful thank you so much!

  • @julianw3947
    @julianw3947 3 роки тому +2

    Yay I know how to do a good game now!

  • @VhTutorial-u4k
    @VhTutorial-u4k 7 місяців тому +1

    it helps me so good

  • @peachesswooten3465
    @peachesswooten3465 Рік тому

    How do I get rid of scrolling camera in scratch

  • @zoshida
    @zoshida 2 роки тому +1

    so helpful, thanks

  • @Sketched_One
    @Sketched_One 3 роки тому +5

    this is useful