You can use Flash behavior - add it to the sprite and then add an event "Sprite on collision with bullet: Sprite start flashing".
If you are asking how to change the color of the sprite, you either need to add different animation frames with different colors, or use an effect like "Set color".