On the 'on collision' events you add a second condition 'item animation is playing' so the first one would be 'is playing animation coin' and the second one 'is playing animation emerald'.
Also remove the set animation actions from those events, you don't need it and it might interfere.