Scratch blocks - ... and ...
In this video we are going to learn how to use "... and ..." Scratch block.
This block is one of the Operators blocks, and we are going to use it when we have more then one condition at the same time.
Or to be more precise we will use it to solve the problem with our cat moving to different heights on different levels.
We want our cat to be able to move to one limit on first level, another on second, and another on third.
So, we have to explain that to Scratch, in his language, Scratch blocks.
We have 2 questions to answer:
1.is the cat on level ...?
2.is the cat on height (y position) ...?
And we are going to put these 2 questions in "and" block.
Only if both answers are true, then the "and" block will be true and we can say to Scratch what the reaction will be.
In our case, that's pulling the cat down, to the limit we made.
It maybe sounds complex, but it is not that much, especially if you plan to code in Scratch for longer term.
Just play with this block and try to think of some examples where you have 2 or more conditions and that's it!
Keep on learning, keep on Scratching !!!
Other Videos By Knowledge For All
2019-11-25 | Scratch blocks - when I receive message |
2019-11-25 | Scratch blocks - broadcast message |
2019-11-19 | Scratch blocks - join ... ... |
2019-11-19 | Scratch blocks - letter ... of ... |
2019-11-19 | Scratch blocks - length of ... |
2019-11-19 | Scratch blocks - answer |
2019-11-19 | Scratch blocks - ask ... and wait |
2019-11-18 | Scratch blocks - stop ... |
2019-11-18 | Scratch blocks - wait until ... |
2019-11-18 | Scratch blocks - distance to ... |
2019-11-08 | Scratch blocks - ... and ... |
2019-11-05 | Inkscape - download & installation |
2019-11-05 | Krita - download & installation |
2019-11-03 | K4A Patreon page created !!! |
2019-11-02 | Scratch blocks - backdrop number/name |
2019-10-28 | Scratch blocks - set y to ... |
2019-10-27 | Scratch blocks - y position |
2019-10-21 | Scratch blocks - next backdrop |
2019-10-21 | Scratch blocks equal less than greater than |
2019-10-21 | Scratch blocks x position |
2019-10-17 | Scratch blocks - if on edge, bounce |