I have scripts that includes audio. This one is attached to an enemy and would follow the player. I want to play audio at the same time, but there are too many audios playing at the same time, so the noise is sharp and unclear.
This is my script:
void FollowPlayer()
{
closestplayer = GameObject.FindGameObjectWithTag(PlayerTag);
gameObject.transform.position = Vector2.MoveTowards(transform.position, GameObject.FindGameObjectWithTag(PlayerTag).transform.position, EnemySpeed * Time.deltaTime);
AudioSource.PlayClipAtPoint(MoveClip, transform.position);
}
The MoveClip is a clip that plays when moving(Foot steps).
**
What is wrong in my script?
Here are some Images:
**
This is what happens when I start the game:
**
Can anyone help me please?! Thank you!