Animation – Count Controlled Loops

Before attempting this quiz you should:-

  • Know how to synchronise Scratch blocks on two sprites
  • Know how to add or edit costumes for Sprites
  • Be shown how to set and change costumes
  • Be taught about loops

This unit uses the following code blocks

Answer the following questions


 

Results

%3Cstrong%3ESelf%20Review%3C%2Fstrong%3E%0A%0AYour%20next%20task%20is%20to%20make%20sure%20you%20really%20understand%20what%20is%20happening.%0ALook%20at%20any%20you%20got%20wrong%20and%20try%20to%20work%20out%20why.%20Perhaps%20discuss%20with%20your%20partner.%0A%0A%3Cstrong%3EGo%20to%20Scratch%3C%2Fstrong%3E%0A%0AYou%20will%20find%20all%20the%20code%20at%C2%A0%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372373088%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372373088%2F%3C%2Fa%3E%0A%0A%3Cstrong%3ERun%3C%2Fstrong%3E%20a%20single%20section%20of%20code%20by%20clicking%20to%20the%20top%20instruction.%20Investigate%20how%20it%20works.%0A%0ARun%20the%20whole%20code%20by%20pressing%20the%20Green%20Flag%20symbol.%0A%0AThen%20have%20a%20go%20at%20modifying%20the%20timings%20so%20that%20all%20sentences%20are%20said%20for%203%20seconds.%0A%0AThen%20try%20making%20your%20own%20animation.%0A%0A%3Cstrong%3EKey%20Question%3C%2Fstrong%3E%0A%0AThink%20about%20what%20advantages%20there%20are%20using%20%3Cstrong%3ERepetition%3C%2Fstrong%3E%20in%20the%20code.%20Discuss%20with%20a%20partner.

%3Cstrong%3EReview%20with%20an%20adult%3C%2Fstrong%3E%0A%0AYou%20must%20make%20sure%20you%20really%20understand%20what%20is%20happening.%0AAsk%20a%20teacher%20to%20help%20you%20look%20at%20any%20you%20got%20wrong%20and%20help%20you%20work%20out%20why.%20Perhaps%20discuss%20with%20a%20partner%20as%20well.%0A%0A%3Cstrong%3EGo%20to%20Scratch%3C%2Fstrong%3E%0A%0AYou%20will%20find%20all%20the%20code%20at%C2%A0%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372373088%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372373088%2F%3C%2Fa%3E%0A%0A%3Cstrong%3ERun%3C%2Fstrong%3E%20a%20single%20section%20of%20code%20by%20clicking%20to%20the%20top%20instruction.%20Investigate%20how%20it%20works.%0A%0ARun%20the%20whole%20code%20by%20pressing%20the%20Green%20Flag%20symbol.%0A%0AThen%20have%20a%20go%20at%20modifying%20the%20timings%20so%20that%20all%20sentences%20are%20said%20for%203%20seconds.%0A%0AThen%20try%20making%20your%20own%20animation.%0A%0A%3Cstrong%3EKey%20Question%3C%2Fstrong%3E%0A%0AThink%20about%20what%20advantages%20there%20are%20using%20%3Cstrong%3ERepetition%3C%2Fstrong%3E%20in%20the%20code.%20Discuss%20with%20a%20partner.

#1. Which best descibes what will happen to Scratch Cat when the Flag is clicked?

He will change costume so that means he will move.

Scratch cat will start in a walking position, but be still for 5 seconds

Scratch cat will then plead.

#2. Which code from the right hand section will run as Scratch Cat changes to the next costume?

The block ‘next costume’ occurs 5 seconds after the start.

In the other code snippet during those 5 seconds, it will make the cat :

  • say ‘Will you help me find my friends’ for 3 seconds
  • wait for 2 seconds

So the next costume block will be run at the same time as the other code is running

  • say ‘Yes please’ for 2 seconds

#3. The dog costumes make it nod it’s head. For how many seconds will it nod?

It will wait for 7 seconds doing nothing.

The nodding will occur as the dog changes costume 20 times each after 0.1 seconds

20 x 0.1 seconds = 2 seconds.

So the dog will nod for 2 seconds

#4. Which command is happening when the dog nods its head?

There are 7 seconds before the dog starts to nod.

This is taken up with:

  • 3 seconds of waiting
  • 2 seconds saying ‘You want me to help?’
  • 2 seconds of waiting

So as the dog nods its head, it will be saying ‘Of course I will!’

Previous
Score and next steps