У нас вы можете посмотреть бесплатно Coding | Learn Scratch Part 4 In English | Motion Block | Chasing Game | Making Things Move | или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
In this video, you will know more about motion blocks in Scratch software. Computer games are all about characters moving here and there, escaping, jumping etc. All these you can do using motion block. In the first project, you will see how to make cat sprite move from one place to another. In the second project, you will understand how to make a flying bird. The third project is about chasing game where cat follows the mouse and dog follows the cat. This is HD quality video. To view this video in HD quality, go to YouTube settings, select quality and then select 1080p as shown in the video. Let us know more about move block in this video. Also, learn how to use more than one sprite in your scratch project. Watch this chasing game. In this game, the cat follows the mouse and the dog follows the cat. In this type of games characters move from one place to another. The computer games are all about running, chasing, escaping. Characters might run, fly, walk or escape. In the block palette we have blue colour motion block where many blocks are available as you can see here. They are move, turn, go to x , y position, glide etc. Let us open a new project. Go to file and click on new. We have cat sprite here. Try to move this cat using move 10 steps block. Every time you click this block cat moves 10 steps. Drag and drop the forever block. Now the cat moves till it hits the edge of the stage. What can we do if we want the cat to return back after hitting the edge? For that there is a block called, if on edge bounce. Now let us put that block. Also create an event. Let me drag and drop when space key pressed. Now when you press the space bar key, the cat moves till it hits the edge and then moves towards left. But what are you observing? When the cat returns, it has become upside down. Let us try to rectify this problem. We have to change the cat's direction. The direction is -90 now. Click on the direction to get the window shown here. If you drag this circle as shown here, it is possible to change the cat's direction. There are three options here. This one is "all around". If you select this you can change the cat's direction from 0 to 360 degree. In this project we want the cat to move from left to write and write to left, so we have to select this middle option. This option says "left/right". After selecting this run the script. Now the cat moves from left to write and write to left. If you wish, add music. You already know how to add music to your project. You can also watch out previous videos on coding to know more about it. In the next project, we will try to make a bird fly. Open a new project. Delete the cat sprite. First, select a background and then select a sprite. The bird's size is big for this project. Reduce the size. Write the similar instructions which were written for cat. Run the code and observe the bird. The bird is upside down. So go to direction and click on left/right as shown earlier. Now run the program again and observe. The bird moves from left to right and right to left. While moving it does not flap its wings. If the wings move up and down, it will look more realistic. So let try to do that. Go to costume. The bird has 2 costumes. In the first one the wings are up and in the second costume the wings are down. Let us add next costume block to our code. Also add wait block. In our previous video we have explained the function of wait block. Watch our previous video to know more about wait block. Run the program. Change the number of steps in move block to 20 to make the bird fly faster. Create similar projects for practice. Now let us come back to chasing game. In this game the cat follows the mouse and the dog follows the cat. To create this project we will divide this into 2 parts. The first one - cat chasing the mouse. The second one - dog chasing the cat. Genrally while developing any game or trying to solve any problem, it is easier if we divide the problem into different parts and then solve. It helps us to understand the problem and find a solution. So in this case first we try to write a code for the cat to follow the mouse. Go to file and create new project. Drag and drop "point towards mouse pointer "block from the motion block. Drag and drop forever block. Run the code and see that as you move the mouse the cat sprite turns towards the mouse. Now what is the next step? #VideoGame #Scratch #Coding The cat is not moving now. To make it move add "move 10 steps" block. Also add an event block. We are adding when space key pressed event. Now when you click the space key, the cat chases the mouse. We finished the first part. For the second part we need another sprite which is the dog in our case. Select dog sprite from the sprite menu. Now dog has to follow the cat. Pick up the "point towards the mouse pointer block". The name of the cat sprite is sprite1 here. So from the drop down menu pick up sprite1.