Scratch blocks - Make a Variable

Subscribers:
545
Published on ● Video Link: https://www.youtube.com/watch?v=BkLtjjdB2uo



Category:
Tutorial
Duration: 19:58
21 views
0


In this video we are going to learn how to use "Make a Variable" Scratch block.
This block is one of the Variables blocks, and we are going to use it to make a variable, like it's title says.
But what is variable and why do we need it?
Variables are very very important components in Scratch and programming in general.
Think of them as boxes, jars, drawers in real life.
They start empty, you name them and then put some things in them.
Like fruits or vegetables in jars, socks or t shirts in drawers, new or old items in boxes.
But their power comes from their options to remember their value and change their content, hence the name variables.
So, if you have 10 t shirts in box, take 4, you will be left with 6 in it, right?
Simple as that, take something from variable, add more, and so on, repeat if needed, or don't if you don't have need for it.
But your game will probably need some kind of component to remember score, lives, health, ammo, player class and level, etc.
That's where variables come in handy, just instead of socks and t shirts we will be counting ammo, gold, goblins and enemies !

Keep on learning, keep on Scratching !!!







Tags:
Make a Variable
Scratch blocks
Scratch 3 blocks
Scratch
Scratch 3
Scratch tutorials
Scratch 3 tutorials
programming
coding
programming for kids
coding for kids
programming for beginners
coding for beginners
how to program
how to code
how to program in Scratch
how to code in Scratch
Knowledge For All
K4A