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.
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
Did your code work as you expected?
If any of these things did not happen, you will need to fix (debug) your code before you continue
Say something
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
Did your code work as you expected?
If any of these things did not happen, you will need to fix (debug) your code before you continue
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).
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!
Did your code work as you expected?
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!
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.
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
Did your code work as you expected?
If any of this did not happen, you will need to fix (debug) your code before you continue
Can you now do the broadcast in reverse?
Using the blocks below, can you do the following:
Scratch blocks
Tynker blocks