You use animations with invisible helper sprites as hit and hurt boxes.
Spawn and size the boxes depending on the animation frame, and on collision play the relevant resulting animation.
I'm a beginner to Construct, can you tell me more about how can I do it?