Creating a short "blinking" effect on the player when he is hit

Also check out timelines, you could probably create this effect into a single timeline to make it cleaner and more usable.