Activa JavaScript para disfrutar de los vídeos de la Mediateca.
03 costumes - 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:
today we're going to be learning how
00:00:00
to change the costumes of a sprite
00:00:01
using the online version of scratch first
00:00:04
i'll go to a new project and
00:00:07
i'm going to name my new project
00:00:09
sprite costumes
00:00:11
then i'm going to go to file
00:00:17
and save now
00:00:18
as you can see i have my
00:00:20
sprite it's a cat and now we're
00:00:21
going to see what his costumes are
00:00:24
i click on this costumes tab in
00:00:27
the upper left hand corner and in
00:00:28
this panel on the left i can
00:00:31
see the two costumes that are currently
00:00:32
assigned to this sprite so costume one
00:00:34
and then costume to the costumes are
00:00:37
essentially just different actions or movements that
00:00:40
you want your sprite to perform in
00:00:42
the case of my cat sprite i
00:00:45
want him
00:00:46
to perform more than two actions so
00:00:47
i need to add some more costumes
00:00:50
i'm going to add more costumes by
00:00:53
clicking on this tab right here this
00:00:54
button that says choose a costume and
00:00:56
i'm going to scroll down until i
00:00:59
find my cat sprite
00:01:00
so i already have a and b
00:01:04
next i want to add these flying
00:01:06
options so when he's about to take
00:01:08
off and then when he's in flight
00:01:09
like this one and then i want
00:01:12
to add one more costume
00:01:14
and that's going to be the cat
00:01:17
in flight costume so now i have
00:01:18
four different costumes and you can go
00:01:21
ahead and click on them all and
00:01:24
view it to be the changes in
00:01:26
the stage
00:01:28
okay for the purpose of my
00:01:33
sprite costumes i'm actually going to add
00:01:36
a modification i'm going to draw a
00:01:38
cape
00:01:41
on the third sprite or right before
00:01:42
he's about to take off into flight
00:01:46
this is just to give you an
00:01:49
idea of what customizations you can perform
00:01:51
to your spray if you want to
00:01:53
have your own personal touch
00:01:55
okay
00:02:03
going back to costume one can see
00:02:05
the different costumes going to go back
00:02:09
to costume one and then we're going
00:02:13
to get ready to actually program the
00:02:15
sprite so i'm going to click on
00:02:17
code in the upper left hand corner
00:02:19
today we'll be using the looks of
00:02:21
the events and they contain
00:02:23
troll tabs i always like to start
00:02:24
off with events and throw over my
00:02:27
when clicked next i'm going to go
00:02:29
to looks and am going define the
00:02:31
switch to costume box i'm going to
00:02:34
pull a poll four of those over
00:02:37
because we have four costumes and i'm
00:02:39
going to put them in the order
00:02:41
that i want them so one
00:02:42
two and then it's going to be
00:02:44
cat flying a and cat flying b
00:02:47
if you want to make sure that
00:02:52
you have the right names in order
00:02:53
you can go back to costumes and
00:02:54
check them out so yes they need
00:02:57
b and then a
00:02:58
b and a
00:03:03
okay
00:03:06
i'm going ahead and drag it up
00:03:08
there and i'm going to click so
00:03:10
as you can see we went straight
00:03:12
from costume one to costume four that's
00:03:14
because we have to add some wait
00:03:17
time in there we're going to go
00:03:19
to control and we're going to pull
00:03:21
four of these wait options over
00:03:24
i'm going to go ahead and leave
00:03:30
them at one second each
00:03:31
and then i'm going to go back
00:03:35
to control and am going to take
00:03:36
the forever button and we're going to
00:03:39
put these in a loop so now
00:03:42
when i click on this work what
00:03:45
happens
00:03:47
there we go there is an easier
00:03:53
option that option would be to stop
00:03:55
that saying that option would be to
00:03:59
go to events you choose when clicked
00:04:01
go to looks and instead at the
00:04:05
same switch costume we're just going to
00:04:07
left next costume we're going to go
00:04:09
back to control we're going to put
00:04:12
a weight of one second in there
00:04:13
and then i'm going to select this
00:04:15
forever button and put it in a
00:04:17
loop now look when i click on
00:04:19
this
00:04:22
so same result but a lot shorter
00:04:26
code
00:04:29
- Idioma/s:
- Autor/es:
- David Gonzalez Arroyo
- Subido por:
- David G.
- Licencia:
- Reconocimiento - No comercial - Compartir igual
- Visualizaciones:
- 302
- Fecha:
- 22 de febrero de 2021 - 14:09
- Visibilidad:
- Público
- Centro:
- IES MARIE CURIE Loeches
- Duración:
- 04′ 31″
- Relación de aspecto:
- 1.83:1
- Resolución:
- 1370x750 píxeles
- Tamaño:
- 24.19 MBytes