4. Some key features you may wish to use to set a “starting state” for your sprites include:
a. Use the Switch Backdrop To () block to set your starting backdrop and use the Switch Costume To () block
to set the starting costume for your sprite, if appropriate (more on this below).
b. Go To X () Y () will allow you to set a static position for your sprite. This can be used at the start of a line of
code in order to set a “starting position”
c. The Show and Hide blocks can be used intermittently throughout your code in order to have sprites appear
on screen or become “invisible” until a later time.
d. If you plan on having a sprite rotate at any point in your code, you will also want to set a starting direction
for your sprites using the Point In Direction () block.
Please note that Scratch does not automatically “reset” your sprites when you replay your code, so setting a starting
position, direction, and state of show/hide is often necessary.
5. To make your story more interactive, you may wish to use some of the following features:
a. The Say () For () Seconds block will allow you to create a “speech bubble” above a sprite for a certain
amount of time.
b. You can record your own sounds or choose from the ready made sound files in Scratch using the Sound
Editor. Use the Play Sound () Until Done block to play the desired sound clip in full.
c. The Glide () Secs To X () Y () block will allow you to have your sprite glide across the screen to a certain
coordinate. The longer the number of seconds, the slower it will move. This helps create the effect of more
realistic movements.
6. If you are using Scratch’s pre-designed sprites, you can use Costumes to create a more interesting, animated effect
on your characters. If you have designed your own sprites, you will need to create your own costumes using the
Paint Editor.
a. You can use a loop to rotate through all of the sprite costumes. Use a Repeat () block or a Forever block
and, inside of the loop, add a Wait () Seconds block. Set it to anywhere between 0.25 and 0.5 seconds (i.e.,
the shorter the time, the faster the animation will run). A setting of 0.5 seconds makes the animation fairly
realistic, without being too fast.
b. Still inside of the loop, add the Next Costume block. This will ensure that each time the loop cycles through,
it moves on to the next costume in the series. If you have used a Repeat () block, then you will need to use
the number of costumes available for the sprite to calculate how many times the loop should repeat (i.e.,
if there are four costumes available for your sprite, setting the loop to 4 will be one full rotation through
all the costumes).
7. Using the Broadcast () block paired with the When I Receive () block can allow you to trigger certain events to create
a more interesting story. Be sure to use short and clear names for your messages to keep track of them. See the
sample code for more detail on how this block can be used.
8. If students wish to create multiple backdrops for their project, they will need to use the Switch Backdrop To () block
to rotate between backdrops. They may also wish to use the When Backdrop Switches To () block in order to trigger
certain events upon the changing of a backdrop. See the sample code for more detail on how this block can be used.
9. To make your story more interactive, use the Ask () And Wait block to request input from the user. To actually use
the response provided to influence your code, follow the steps below:
a. Use an If () Then or If () Then, Else block to create a condition to evaluate what response was given.
b. In the blank space of the block, add a () = () from the green Operators menu.
c. In the first blank space of the () = () block, add the Answer block from the blue Sensing menu. This variable
will store whatever response the user provided in the most recent Ask () and Wait section. In the second
blank space of the () = () block, add the desired response.
d. In the open space of the If () Then or the first open space of the If () Then, Else block, add the code that
you wish to run if the user enters the desired information (i.e. correct)
e. In the second open space of the If () Then, Else block, add the code that you wish to run if the user enters
anything other than the desired information (i.e. incorrect).
f. You can use the Join () () block combined with the Answer block to use whatever the user entered and
combine it with more text (e.g. “[user’s response] is not correct. Good guess!”)