Have you ever wanted to build a chatbot? Well, you’re in luck - because now you can code with text strings in Hopscotch!
Subscribers with the beta editor turned ON can now use text as values in addition to numbers. Now, you’ll be able to switch to the letters keyboard when working with variables and conditionals. You’ll also see some brand new blocks:
- “Matches”: takes 2 numbers or texts and treats them as strings, testing whether they match
- “(Self) Text”: gets the text of your object
- “Save Input”: will prompt the user for a text input, and then save it as a variable
- “Broadcast Message”: will broadcast a message you define to the other objects in your game
- “When I Hear”: will execute when the object “hears” a broadcasted message
You’ll be able to build everything from a chatbot that can have conversations with your players to choose-your-own-adventure games!
Please note this feature is currently only available to subscribers with the beta editor turned ON.
Bug fixes in this release include:
- When you delete a variable using the “clear” or “X” buttons you’ll no longer see the word “clear” in your text field. (Cause that was pretty weird.)
- Stopped phantom images from reappearing after you’d already deleted them from your project.