Scratch Variables | How to Use Variables in Scratch 3.0 Tutorial

preview_player
Показать описание

*** Patreon Page ***

*** Surfing Scratcher Shop ***
Educators and teachers, you can find unplugged lessons, resources and activities to purchase for this tutorial series on my website here:

*** Catch me on social media ***

*** Video Description ***
In this Scratch 3 basics tutorial, we use the idea of a box to understand what variables are in programming. Like boxes, variables store things except that variables can only store specific types of values. Variables in Scratch 3 can store two types of values: numbers and text (strings). We look at how to add variables, how to rename variables, how to hide variables and how we can change the value of a variable.

*** What is Surfing Scratcher? ***
Surfing Scratcher wants to show learners, students, educators and teachers how to learn mathematics through coding games online with Scratch 3 programming projects. Whether you are a Scratch beginner, or you're an educator wondering how to use Scratch in your classroom or looking for lessons & resources for your classroom, Surfing Scratcher is here to help you on your journey.

*** Credits ***

*** Check out the other playlists now ***

#scratch #codingforkids #scratchbasics
Рекомендации по теме
Комментарии
Автор

SCRATCHY QUESTION: What are some other types of variables that YOU know in computer programming (including outside of Scratch)?

SurfingScratcher
Автор

Who is here because of online class? Like if you did

joceandbri
Автор

Hey thanks for teaching me about variables. if not i would have never finished my game. Thx man you deserve more likes and subs.

Skemati
Автор

you can also use variables and the if/then block to toggle things. For example, if you want a gun to shoot when it has full ammo, make a variable named "shoot?", and then when you press the button to shoot, make a if/then block check whether or not the value of "shoot?" is equal to 1. if it isn't 1, you are out of ammo. you won't be able to shoot until that variable equals 1. You would also have to make the variable change when you reload and shoot, so when you shoot it changes to 0, and when you reload it changes back to 1. I hope this helps!

iamicy.
Автор

In lua i recall using a local variable to store lines of code, so I could use that code later. For example this was when I used the engine Roblox “local

DrBotnus
Автор

You just help me in my computer homework you are the best

DaniyalKhan-unfh
Автор

This is very thankful to you helping to do my homework

rajeshnx
Автор

This is a very very important explanatory video. It will help kids transit from scratch to higher programming languages like Python. Please do more videos like this.

kayodeayeni
Автор

That was quite helpful! Thanks for making video on this😊 Btw, I have a question on using labels in scratch. In my game, I need to show score in bold numbers in a square box on top right of screen. That means I want to assign current value of variable I am using to that square box on top right corner where I can see the score in bold numbers (not in the default box of scratch). Is there any way to do so in scratch? Thanks in advanced!

kaminipatil
Автор

how do you use them in games like y and x what is that used for

ItsEmerold
Автор

thanks so much for that! it really helped me! i just have one question.lets say you want the box to explode when the apple count is 10.how do you do that?

sam_does_stuff
Автор

i wondering something if im making a clicker game and i want to increase 1 variable by 1 at the cost of 10
i can do that but i want for example to get plus 2 on one variable at the cost of 20 on another basically 1=10 so im wondering how to do that

CorneliusBumbleBottomTherd
Автор

Hey! I was wondering if you could make a tutorial on making a sprite show using variables and the "greater than" and "lesser than" blocks because I am making a game where basically scratch picks a number 10 - 60 and it will show a specific sprite when its in the 10's, 20', 30's, 40's, 50's, etc. So I hope you can make a tutorial on this, bye!

Coolxgaming
Автор

Hey thanks to teach about variables . It's a good video and your voice is sweet

cricketshots
Автор

My variables are piling. For example, I do -1 for ammo. Basically, first time it’s -1, then -2, then -4, and it keeps doubling. What am I doing wrong

mrdinosaurproductions
Автор

thank you for teaching me that i had a porject about a game tysm♡♡♡♡♡○☆◇

Coralcorlaz
Автор

how do you make the game check for a certain value?

logcrelol
Автор

But how did you do the dropping applr thing?

DynoDevaurion
Автор

Your video helped so much! But I still have a question: Can i make the variable broadcast a message when it gets to a certain number? For example, if I have a variable called "hi" and I want variable "hi" to broadcast a message when it gets to 10, can I do that? I hope I explained myself... :D

Amy-yugn
Автор

Thank you for all of your videos. I am looking for one about variables and cloning. My students need to create a disease simulation and we are struggling to get it to work. One problem we are having is that the variable shows a bigger number than the number of clones we have. The variable just keeps counting up. Any help would be appreciated!

nicolecollins