How to play a flipbook once on collision

I want a blood splat every time my character steps on a dead body, and I’m doing a 2d sidescroller. How do I do this?