Often times, weβll want to be able to write some code that happens when two sprites touch each other. This could be things like:
In Scratch, this is really easy!
For example, letβs say we want a character to say βExcuse me!β when she walks past another character, like this:
We can have the first character walk across the screen as usual, but use anΒ if/elseΒ block to check if sheβs touching the other character.
Watch this video to create a simple sprite interaction. Once you’ve done that, can you do the same thing with other sprites?