Meet Thirsty: String Operator inScratch
In this post, we will learn to use the string and the list features in Scratch. In thespirit of Shall We Learn, I will show you in a project. This project is called
. We will create a stick figure sprite as our main sprite; we will also a drinksprite. You can help this poor thirsty guy by moving the drink sprite to him with yourmouse. Then we will create many drink sprite based on the first drink sprite.First, create a new project and create a new sprite. If you don’t know how to do this,I recommend reading at least the first four lessons of Scratch Programmingavailable on this site.Name this sprite
. Here is mine. To demonstrate how to use the new
features in Scratch, let’s create avariable to hold the result string of adding all the names of the drinks he hasconsumed.Click the orange Variables button at the left panel and click
Make a variable
button. Enter “drink list” as the list name and keep this list visible for all sprites. Then click OK.