Animation should be redone so that the name is added to the list before the greeting is said. Also, change the sprite costume so that it's not a child younger than our students. --MF, 6/18/18
This appears is the first place where we talk about global variables; we should have a vocab box. --MF, 6/18/18
Move this to U2 in place of 2.1.4, which should be junked except for the pieces that are needed for 2.2.3. --MF, 6/18/18
On this page, you will create a greet player
script that greets users and remembers their names so that first-timers get a different greeting from return visitors.
The decision is made by if-else
.
The if
and if-else
blocks are called conditionals because they control the code based on a condition (here, whether the list of players contains this player's name).
Sequencing is the process of ordering the code (putting it in a sequence), as you do here.
ask
the player for their name.Say
"nice to see you again, player name." Say
"nice to meet you, player name," and Add
the player's name to the player list. greet player
several times to test that it works as expected. Fix any bugs.