1 of 10

You are going to use Tynker to re-tell a traditional tale of your choice. You can either make the retelling a “game” or make it work as an animation, the choice is yours. But before you make a start there are some coding skills that you need to learn. The following slides have some tasks on them for you to learn. The tasks you are learning can be used to help you to create your traditional tale.

2 of 10

Your first task is to make an actor move across the stage, automatically, then say something

Say something!

Scratch blocks

Tynker blocks

Start here

End here

3 of 10

Did your code work as you expected?

  1. Did your actor travel across the stage as expected? You might have to change the x and y values in the glide block.
  2. Did your actor’s speech bubble appear?

If any of these things did not happen, you will need to fix (debug) your code before you continue

Say something

4 of 10

Now we need to make the background switch, this can be done in several ways, but we are just going to add one block to your existing code. First make sure you have two backdrops!

Scratch blocks

Tynker blocks

Backdrop 1

Backdrop 2

5 of 10

Did your code work as you expected?

  • Did your background change?
  • Did your actor first travel across the stage, speak and then the background changed?

If any of these things did not happen, you will need to fix (debug) your code before you continue

6 of 10

Now you are going to add more actors to your stage! When you add them and then run your existing program, what happens? That is right, the new actors are just sitting on the stage, getting in the way. We need to make sure they are hidden until we need them (when background 2 appears).

  1. Make actors disappear at the start of the game

Add these blocks to your actors that you want to hide and test the code

Scratch blocks

Tynker blocks

I am here, but you can’t see me!

7 of 10

Did your code work as you expected?

  • Did your actors that you do not want to see at the start of your code, hide?

If any of this did not happen, you will need to fix (debug) your code before you continue

I am here, but you can’t see me!

8 of 10

Now you are going to make your hidden actors appear and to do that we need to add a new block to your first block of code and some new code to your actors to make them appear. You are going to use a “broadcast” block, its job is to shout a message to all actors and when they hear that message, they then know it is time to do something.

  • After your change background block, add a broadcast message, you will need to think of something to say, mine will be “porridge”
  • The hidden actors that need to appear (porridge bowls for me) will need to use the “when I receive ... “ block to appear.

Scratch blocks

Tynker blocks

Add this to your first actor’s code

Add this to the actors you want to appear on the second backdrop

9 of 10

Did your code work as you expected?

  • Did your new actors only appear, when the second backdrop appeared?

If any of this did not happen, you will need to fix (debug) your code before you continue

10 of 10

Can you now do the broadcast in reverse?

  1. Create a new text actor like this and make it appear on the first backdrop

Using the blocks below, can you do the following:

  • Make this text block disappear when the backdrop changes to backdrop 2?
  • Make this block appear again on backdrop 1 when the game/story starts again?
  • Can you update your code for each backdrop to change using the broadcast block?

Scratch blocks

Tynker blocks