Whenever the cat sprite gets near the dog sprite, the dog turns and runs from the cat.
Thanks to CyberParra for helping me think about this in a different way.