Synchronising Sprites – Sequence

This quiz is all about the timing of dialogue between two sprites (characters). The code introduced comes from two separate sprites, and the aim is to work out if the conversation will appear normal.

 

Results

%3Ch4%3E%3Cstrong%3ESelf%20Review%C2%A0%3C%2Fstrong%3E%3C%2Fh4%3E%0AYour%20next%20task%20is%20to%20make%20sure%20you%20really%20understand%20what%20is%20happening.%0A%0ALook%20at%20any%20you%20are%20not%20sure%20about%20and%20try%20to%20work%20out%20why.%0A%0APerhaps%20discuss%20with%20a%20partner.%0A%0A%3Chr%20%2F%3E%0A%0A%3Ch4%3E%3Cstrong%3EGo%20to%20Scratch%3C%2Fstrong%3E%3C%2Fh4%3E%0AYou%20will%20find%20all%20the%20code%20at%20%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372136862%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372136862%2F%3C%2Fa%3E%0A%0A%3Cstrong%3ERun%3C%2Fstrong%3E%20a%20section%20of%20code%20by%20clicking%20on%20the%20top%20instruction.%0A%0AInvestigate%20how%20it%20works%2C%20by%20explaining%20to%20your%20partner.%0A%0AHave%20a%20go%20at%20modifying%20the%20algorithm%2C%20changing%20the%20timing%20and%20making%20your%20own%20sentences.%0A%0A%3Chr%20%2F%3E%0A%0A%3Cstrong%3ETask%3C%2Fstrong%3E%20-%20Add%20the%20rest%20of%20the%20code%20to%20complete%20the%20conversation%0A%0A%3Ccode%3EChallenge%3C%2Fcode%3E%20-%0A%0ACan%20you%20add%20more%20sentences%20and%20change%20the%20time%20depending%20on%20the%20number%20of%20words%20said%3F%0A%0A%3Chr%20%2F%3E%0A%0A%3Ch4%3E%3Cstrong%3EKey%20Question%3C%2Fstrong%3E%3C%2Fh4%3E%0ACan%20you%20think%20of%20ways%20to%20ensure%20the%20%3Cem%3E%3Cstrong%3Etiming%3C%2Fstrong%3E%20%3C%2Fem%3Edoes%20not%20become%20a%20problem%3F%0A%0AIs%20there%20something%20you%20should%20do%20before%20programming%20to%20make%20sure%20you%20get%20it%20right.%0A%0ADiscuss%20this%20with%20a%20partner.

%3Ch4%3E%3Cstrong%3EAsk%20an%20adult%3C%2Fstrong%3E%3C%2Fh4%3E%0AYou%20must%20make%20sure%20you%20really%20understand%20what%20is%20happening.%0A%0AAsk%20an%20adult%20to%20help%20you%20look%20at%20any%20you%20were%20not%20sure%20about.%0A%0A%3Chr%20%2F%3E%0A%0A%3Ch4%3E%3Cstrong%3EGo%20to%20Scratch%3C%2Fstrong%3E%3C%2Fh4%3E%0AYou%20will%20find%20all%20the%20code%20at%C2%A0%3Ca%20href%3D%22https%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372136862%2F%22%3Ehttps%3A%2F%2Fscratch.mit.edu%2Fprojects%2F372136862%2F%3C%2Fa%3E%0A%0A%3Cstrong%3ERun%3C%2Fstrong%3E%20a%20section%20of%20code%20by%20clicking%20on%20the%20top%20instruction.%0A%0AInvestigate%20how%20it%20works%2C%20by%20explaining%20to%20your%20partner.%0A%0AHave%20a%20go%20at%20modifying%20the%20algorithm%2C%20changing%20the%20timing%20and%20making%20your%20own%20sentences.%0A%0A%3Chr%20%2F%3E%0A%0A%3Cstrong%3ETask%3C%2Fstrong%3E%20-%20Add%20the%20rest%20of%20the%20code%20to%20complete%20the%20conversation%0A%0A%3Ccode%3EChallenge%3C%2Fcode%3E%20-%0A%0ACan%20you%20add%20more%20sentences%20and%20change%20the%20time%20depending%20on%20the%20number%20of%20words%20said%3F%0A%0A%3Chr%20%2F%3E%0A%0A%3Ch4%3E%3Cstrong%3EKey%20Question%3C%2Fstrong%3E%3C%2Fh4%3E%0ACan%20you%20think%20of%20ways%20to%20ensure%20the%20%3Cem%3E%3Cstrong%3Etiming%3C%2Fstrong%3E%20%3C%2Fem%3Edoes%20not%20become%20a%20problem%3F%0A%0AIs%20there%20something%20you%20should%20do%20before%20programming%20to%20make%20sure%20you%20get%20it%20right.%0A%0ADiscuss%20this%20with%20a%20partner.

#1. Which of these two projects will produce the best dialogue between Scratch Cat and Maple?

#2. There is a problem with the algorithm. Which sentence best describes the problem?

Two seconds for each to speak is fine.

The dog’s picture is not part of the algorithm.

To be synchronised, they must start at the same time.

 

 

#3. Is there anything wrong with this dialogue?

Just because the code for Scratch Cat is on the left does not mean he will speak first. The codes both start at the same time when the flag is pressed and because of Scratch Cat’s wait command, the first character to speak is Maple.


The code appears to show them speaking in turn, however, the number of seconds means they won’t. Maple will say both her sentences in the first 3 seconds, before Scratch Cat even speaks.

 

Previous
Score and next steps

This quiz is designed to complement curriculum resources such as