M2L2A3 Gossip and Greet; Amelia Faison and Haley Foard

Story Board:

We will add on to our sprite conversation game by creating a new “gossip response” block. We also had the sprites greet one another using the if-else function.

Logic:

We made a command block in order to add conversational phrases such as, o what, sooo about that…, who cares, I heard, and whatever. Then we added function to make one sprite ask the name of the other sprite, and the second sprite will state their name, then followed by a “nice to meet you”. We added “When I am clicked,” so that when the player clicks the sprite, it will ask for a name.

Steps:

  1. We began by creating a command block titled “Gossip Response”
  2. We shaped it into the oval reporter block
  3.  We used the the list block and the item block.
  4. In the list block, we added phrases such as, so what, sooo about that…, who cares, I heard, and whatever,…
  5. We changed the “1” in the item to “random”.
  6. We then dragged the gossip response block into the gossip2 block
  7. We deleted the oh, but, and added our gossip response block
  8. We tested the program by clicking on the first sprite several times
  9. We then included the ask button to allow Sprite #1 to ask the name of Sprite #2
  10. Then we had the option of Hi, nice to meet you again, and Hi, nice to meet you.

Solved By:

When the random phrases were added, there was not a space in between the phrase and the rest of the comment. We fixed this by adding a space after our phrases in the command block.

We also had the issue of the block saying “error” and we fixed this by switching the command block to be located under the script of the second sprite.

 

Link

Leave a comment