Now, change the script so that the sprites don't repeat their movements forever, but repeat until
they touch each other and then stop.
forever
block with a repeat until
block.repeat until
block, and set it to repeat until it is touching Sprite.touching Sprite(2)
.Right now, when the sprites meet, they just stop. Make them have a conversation when they stop. You can do that by adding code like this to Sprite(2)'s script. Make up your own conversation. You can use any language you can type.
tell
block isn't installed automatically. Click on the File tell
block will appear toward the end of the Control palette. You'll need to import tools once into each new snap project where you need tell
.
If you like, you can personalize this project in lots of ways...