Saltar navegación

Activa JavaScript para disfrutar de los vídeos de la Mediateca.

Scratch I

Ajuste de pantalla

El ajuste de pantalla se aprecia al ver el vídeo en pantalla completa. Elige la presentación que más te guste:

Subido el 19 de marzo de 2019 por Isabel L.

74 visualizaciones

Descargar la transcripción

Well, today we are going to do a project using Scratch. 00:00:00
So the first thing that we must do is go to our account on the internet or the Scratch 00:00:08
that we have online and open it, obviously. 00:00:22
The project that we are going to do can be called Apple Catcher because in it, as you 00:00:30
can see in this example, we are going to catch apple. 00:00:43
The game must be able to catch the apples which are falling all the time and each time 00:00:54
that you catch an apple you get a point. 00:01:06
So it's very easy but you must do, you must create, so you need to be creative if you 00:01:11
want. Firstly, first of all, what we must do is create a new project and choose the 00:01:21
background and also the sprites. There are a lot of backgrounds in the library 00:01:34
but if you want you can upload a photo, a picture that you can have in your 00:01:42
computer. Another thing that you can also do is change some things in the picture 00:01:51
that you have chosen. For example you can add some letters or a name or you can 00:01:59
change for example some color. You can also need to choose the sprites. At least 00:02:09
you need two the ball and the apple and you can get you can add it from the 00:02:19
library both of them are in their library but if you want you can use 00:02:28
another thing you can use other sprite that you can have in the 00:02:35
library that aren't the ball and really an apple you can use a ball you can use whatever and as 00:02:44
the same as same as in the scenery you can change its appearance indeed it goes for you to change 00:02:54
disappearance, using this tool that can change from bitmap to vectorial way. 00:03:02
As you know, bitmap is a set of pixels and vectorial is different, but both are 00:03:16
digital imaging and the difference came from the way the 00:03:30
computer can create the images in its screen. Well, other thing that is 00:03:39
important that you can choose and change if you want our sounds so you can get 00:03:49
some from the library of sounds and you can choose the sounds you want and also 00:04:02
as imagined you can change some values and change the the sounds that you have 00:04:10
get from the library so when we have we have chosen and we have customized the 00:04:19
the background the sprites and the sounds of our project we were going to 00:04:33
to add code. As we have already studied, the flowchart is the first part of the 00:04:42
design in programming. So it's very useful for you that you draw a flowchart 00:04:54
for each sprite. In this case we have two sprites which are the 00:05:01
ball and the apple. And as we have already studied in class, the first step 00:05:09
in any algorithm is the initial conditions. It's very important that you 00:05:18
choose the initial conditions, otherwise when you reinitiate your program it 00:05:26
doesn't work properly so it's very important that you you start to begin 00:05:36
initiating the position of the ball and the Apple in the in the screen to do 00:05:46
this the best thing that you can do is using the coordinates of the scratch 00:05:57
screens. Scratch screens goes from a minus 255 to 255 in a horizontal and in 00:06:08
vertical directions. So, taking this into consideration, you can know the limits of 00:06:23
the movements of the objects in your screen. And it's very, very important, as we are going to see. 00:06:34
well 00:06:43
I changed the sounds 00:06:47
well 00:06:51
so we are going to 00:08:07
initiate the 00:08:11
the 00:08:13
the sprites and to do this you go to the category events and you must choose the 00:08:15
green flag and taking the coordinates into consideration for the ball and for 00:08:27
For the apple you have the condition of the initiate programs. 00:08:36
So after that we can start with the ball. 00:08:50
Ball is going to be controlled using key arrows. 00:08:58
indeed the left and the right arrows so it's very easy think in the code 00:09:05
yes obviously when you push the right arrow you move 20 steps or whatever and when you 00:09:18
You click and push the left arrow, the same part, if you want that the sense is opposite 00:09:32
you need to put the sign ball, the symbol, the sign ball minus, the sign of the thing. 00:09:44
So now you can control the ball, it's very easy. 00:09:53
And for the apple is a little bit more difficult, not so much, but a little bit more difficult, because you want that the apple falls. It means that you need to change the coordinate, the vertical coordinate. 00:09:59
And to do this is Y, but in the down direction, so using the sign, using the minus sign. 00:10:19
And you need to do until the apple touches the floor. 00:10:39
So you can do repeating this operation. 00:10:51
And to repeat you can use repeat, the block repeat, or if you want, forever. 00:10:58
But if you have chosen FOREVER, the problem is that the apple disappears. 00:11:07
So you need to include in FOREVER a conditional. 00:11:16
That means that when it touches the edge, it returns to the initial position. 00:11:22
But if you just only go to the initial position, the horizontal position is always the same. 00:11:31
So to change the position you can use the average between 200 and minus 200. 00:11:41
And in this way you can have the ball and its movements under control and good movements 00:11:53
for the apple. 00:12:02
And this is all for today, for the next step, as you can see in this tutorial. 00:12:04
Next day we are going to add something about what happened when the apple touched the ball 00:12:15
and also how you do a counter. 00:12:28
I hope you can enjoy this project because I think it's good for your creative and for 00:12:34
you. 00:12:43
I'll see you next time 00:12:44
Idioma/s:
en
Autor/es:
Isabel Lafuente
Subido por:
Isabel L.
Licencia:
Reconocimiento - No comercial
Visualizaciones:
74
Fecha:
19 de marzo de 2019 - 18:04
Visibilidad:
Público
Centro:
IES JAIME FERRAN
Duración:
12′ 56″
Relación de aspecto:
0.61:1
Resolución:
352x576 píxeles
Tamaño:
121.19 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid