How to blink spine when hit other object ?

I have a spine, I want to blink this spine when it hit other objects. How can I do this?

Look at this effect, is not what you need