Saltar navegación

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

06 pointing - Contenido educativo

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 22 de febrero de 2021 por David G.

431 visualizaciones

Descargar la transcripción

in today's video tutorial we're going to 00:00:00
be learning how to use the point 00:00:03
toward an the point in direction blocks under the 00:00:04
motion tab in the online version of 00:00:07
scratch 00:00:09
as you can see i have a 00:00:11
new project open and i have it 00:00:12
named and saved we're going to start 00:00:14
off by selecting our sprites 00:00:17
for today's tutorial i'm going to be 00:00:20
using the shark sprite and i'm also 00:00:23
going to use the fish sprite 00:00:25
the purpose of using that point towards 00:00:32
and the point in direction blocks is 00:00:35
to have one sprite point in the 00:00:37
direction of another sprite so for the 00:00:39
purpose of today's tutorial what i want 00:00:42
is for my shark to point in 00:00:44
the direction of my fish and i 00:00:46
want him to chase my fish 00:00:48
so let's begin programming that 00:00:50
i'm going to need under the events 00:00:54
tab though when clicked block i'm going 00:00:57
to need under the motion the move 00:01:00
block the point into the direction and 00:01:04
point towards block before we get started 00:01:07
with a point towards block let's take 00:01:10
a look at the 00:01:12
point in direction block 00:01:13
so as you can see when i 00:01:17
click on this my shark is moving 00:01:18
to the right 00:01:20
so we're just saying what direction we 00:01:22
want him to point in you can 00:01:24
plug in any number between zero and 00:01:25
three hundred and sixty if i plug 00:01:28
in one eighty i'm saying that i 00:01:30
want him to point in and in 00:01:33
the direction downward 00:01:34
if i put in a negative ninety 00:01:37
going be pointing to the left 00:01:40
and if i plug in zero is 00:01:44
going to be pointing upward 00:01:45
for today's tutorial i'm going to put 00:01:49
him back at ninety degrees so he 00:01:52
is facing the right 00:01:53
now we can throw this point in direction 00:01:57
block back and take a look at 00:01:59
the point towards and addition of these 00:02:01
blocks i need to go to control 00:02:04
and i need to take out the 00:02:06
wait block and also the forever block 00:02:08
i'm going to be putting in my 00:02:12
point towards block my move ten steps 00:02:13
block and my wait one second block 00:02:17
all within the forever block what i'm 00:02:19
saying is that when clicked i want 00:02:22
my shark to point toward my fish 00:02:24
the other option would be your mouse 00:02:28
pointer but for today i'm going to 00:02:30
fish and i want him to move 00:02:32
toward the fish ten steps continuously with 00:02:34
one minute or one second intervals 00:02:38
now let's program our fish 00:02:41
i'm going to need the wait 00:02:44
the forever block under control and then 00:02:47
i'm going to need that when clicked 00:02:51
block and i'm also going to need 00:02:54
the move block under motion 00:02:57
i'm going to put my wait and 00:03:05
my move blocks within the forever tab 00:03:07
and as you can see with the 00:03:10
fish i have my wait one second 00:03:11
placed above my ten steps that's because 00:03:13
when the shark is moving i want 00:03:16
my fish to wait so that the 00:03:18
timing between them 00:03:20
is put together better let's see what 00:03:21
happens with the shark when i click 00:03:25
on this 00:03:26
ok perfect that's exactly what i want 00:03:29
him to do 00:03:31
and when i click on my fish 00:03:34
perfect and now let's see when we 00:03:38
have them both going at the same 00:03:40
time if we can achieve that chase 00:03:42
perfect 00:03:50
you also have the option of course 00:03:52
to change the timing for my fish 00:03:53
i want him to go faster than 00:03:56
the shark i'm going to change the 00:03:58
timing from one second to point two 00:04:00
five and then i'm going to change 00:04:02
the timing from a shark to point 00:04:05
fifties there is a little slower than 00:04:07
my fish let's take a look 00:04:09
and that concludes our video tutorial for 00:04:17
it today 00:04:19
Idioma/s:
en
Autor/es:
David Gonzalez Arroyo
Subido por:
David G.
Licencia:
Reconocimiento - No comercial - Compartir igual
Visualizaciones:
431
Fecha:
22 de febrero de 2021 - 14:45
Visibilidad:
Público
Centro:
IES MARIE CURIE Loeches
Duración:
04′ 20″
Relación de aspecto:
1.91:1
Resolución:
1448x758 píxeles
Tamaño:
21.37 MBytes

Del mismo autor…

Ver más del mismo autor


EducaMadrid, Plataforma Educativa de la Comunidad de Madrid

Plataforma Educativa EducaMadrid