You can also program your chatbot to change its location!
Can you program your chatbot to ask “Do you want to go to the moon”, and then change the backdrop when the answer is “yes”?
Now you need to make sure that your chatbot starts in the right location when you click on it to talk to it. Add this block to the top of your chatbot code:
Test your program, and answer “yes” when the chatbot asks if you want to go to the moon. You should see that the chatbot’s location changes.
You can also add the following code inside the new if
block to make the chatbot jump up and down four times if you answer “yes”: