Activa JavaScript para disfrutar de los vídeos de la Mediateca.
08 repeat blocks - Contenido educativo
Ajuste de pantallaEl ajuste de pantalla se aprecia al ver el vídeo en pantalla completa. Elige la presentación que más te guste:
in today's video tutorial we're going to
00:00:00
be learning about the three repeat options
00:00:02
that we have using the online version
00:00:05
of scratch we'll also be introducing a
00:00:07
new block called the touching block that
00:00:10
can be found under the sensing tab
00:00:13
so as you can see i have
00:00:15
a new project open i have it
00:00:17
named and it
00:00:19
saved let's go ahead and navigate down
00:00:20
to the control tab and select those
00:00:23
three repeat block options that we have
00:00:25
the three options are repeat a certain
00:00:28
number of times repeat forever which would
00:00:32
also be repeat continuously so nonstop and
00:00:36
then re
00:00:39
repeat until the repeat until a block
00:00:40
is a little bit more interesting with
00:00:43
this block what we're saying is that
00:00:45
we want an action to be performed
00:00:46
such as moving ten steps until
00:00:49
another action happens so we'll get into
00:00:54
this one in a minute i'm going
00:00:57
to go up to this first block
00:00:58
here
00:01:00
the repeat ten times block so the
00:01:00
action that i want repeated is ten
00:01:04
steps by using this repeat a certain
00:01:06
number of times a block i am
00:01:09
saying that i want this cat sprite
00:01:11
to move ten steps ten times so
00:01:13
around ten
00:01:16
there we go simple and of course
00:01:19
i can change this number if i
00:01:21
desire
00:01:23
next let's take a look at the
00:01:27
forever block again forever as i said
00:01:29
just a moment ago as nonstop so
00:01:32
when i plug this in the cat's
00:01:34
going to move nonstop until he is
00:01:36
right off the screen
00:01:38
now let's go ahead and look at
00:01:43
this last one
00:01:45
so with the repeat until block what
00:01:48
i want is for this cat to
00:01:50
move ten steps and tell another action
00:01:52
is performed and that's an action that
00:01:55
you're going after program for two days
00:01:58
example we're going to go down to
00:02:01
the sensing tab and we're going to
00:02:03
select the touching block to use
00:02:05
this i need to drop it right
00:02:07
here in this hexagon shape that's lit
00:02:09
up and then i have to figure
00:02:10
out what i want the action to
00:02:13
be or in this case what i
00:02:14
want the cat to touch
00:02:16
for today i want the cat to
00:02:18
touch another sprite so the cat will
00:02:20
move ten steps until it touches a
00:02:23
second sprite let's go down here to
00:02:25
this panel and choose our second sprite
00:02:28
how about the jellyfish
00:02:32
i need a place the jellyfish directly
00:02:37
in front of the cat otherwise he
00:02:39
won't stop when he's supposed to
00:02:41
so now that i have the jellyfish
00:02:46
fish placed directly in front and gleaned
00:02:47
a click back on the cat sprite
00:02:49
so i have my code and then
00:02:51
i have to go to this touching
00:02:53
block and i have to select jellyfish
00:02:55
so when i click on this i
00:02:57
want the cat to move ten steps
00:02:59
until he touches the jellyfish
00:03:01
and there we go simple and that
00:03:05
concludes today's video tutorial
00:03:07
- Idioma/s:
- Autor/es:
- David Gonzalez Arroyo
- Subido por:
- David G.
- Licencia:
- Reconocimiento - Compartir igual
- Visualizaciones:
- 298
- Fecha:
- 22 de febrero de 2021 - 14:47
- Visibilidad:
- Público
- Centro:
- IES MARIE CURIE Loeches
- Duración:
- 03′ 10″
- Relación de aspecto:
- 17:9 Es más ancho pero igual de alto que 16:9 (1.77:1). Se utiliza en algunas resoluciones, como por ejemplo: 2K, 4K y 8K.
- Resolución:
- 1440x758 píxeles
- Tamaño:
- 14.34 MBytes