Help page: Infecting TurtlesWe need to write a script that does the following three actions: Step 1: Change the turtle’s infected value |
![]() |
Go ahead and name your script; we called ours “Infect”. To change turtle1’s infected value from “false” to “true,” first drag out the “turtle1’s infected” variable and drop it into your new script. Then, set the Boolean value to true to make the turtle sick. Step 2: Change the turtle’s color Step 3: Increase the variable “infectedCount” Here’s what our final script looks like: |
![]() |