To make the sound effects less annoying, I randomise the pitch like this:
enemy_hit_sound.pitch_scale = randf_range(0.7, 1.3)
Just checking is this the only way to do this? Thinking what’s the best way to do in for larger projects, I guess I’ll create a function that randomises before it plays. I’m interested in a better way to do this!