Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add footstep sound when walking or running #41

Merged
merged 12 commits into from
Apr 4, 2023

Conversation

nucleartide
Copy link
Owner

@nucleartide nucleartide commented Apr 4, 2023

Pipeline

  1. Find a sound effect from freesound.org.
  2. Check the sound's license to ensure that I can use it.
  3. Import sound into Sounds/ folder.
  4. Update Sounds/Attribution.md doc.
  5. Expose new reference in the AllTheSounds ScriptableObject, and hook up the AudioClip. Alternatively, if you want to play the sound as its own AudioSource, then create the AudioSource and hook up the AudioClip.
  6. Add test methods to SoundManager (or a separate script) that play the sound. If the audio clip is split into many sections, identify sections within the audio clip to play with the AudioClipSection class, then use AudioSourceHelpers.PlaySoundInterval.
  7. Expose game event for when you want the sound to be played. For example, the PlayerAnimationEvents script exposes player animation events to C#.
  8. Make SoundManager (or your separate script) listen to the new game event, and call the corresponding play-sound method when the event occurs.
  9. Update readme with pull request link.

@nucleartide nucleartide changed the title Add footstep sound Add footstep sound when walking or running Apr 4, 2023
@nucleartide nucleartide marked this pull request as ready for review April 4, 2023 15:24
@nucleartide nucleartide merged commit 04cde90 into master Apr 4, 2023
@nucleartide nucleartide deleted the jason/add-footstep-sound branch April 4, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant