Whenever the cat sprite gets near the dog sprite, the dog turns and runs from the cat.
Click the green flag to begin.
The cat will follow the mouse. ; - )
Notes & Credits
I used a combination of sensing and broadcast control blocks to accomplish this task.