Forum rules - please read before posting.

Scrolling text sound and player footsteps sounds

Hello everyone on the forums,

First of all I wanted to say that this asset is amazing and am glad to have found it :). Second I am a complete beginner with Unity as a whole and as such excuse me in advance, if the questions sound a bit too obvious and easy.

Me and a friend are making a short adventure game as a gift for someone. Wanted to add some flavour to the game by adding walking sound to the character (running will be disabled), as well as some typewriter sound FX to the scrolling text on-screen. I have the respective audio files (mp3 format) and found where those have to be added in the game editor -> speech , and added to the player prefab respectively. I also have an audio listener attached to the player. When I run the game, the music lays alright (separate audio source), but none of the walking sounds or the typewriter effect.

I browsed through both adventure creator documentation and that of Unity, but can't figure out, why the audio effects aren't playing at all...

Any help to point me out in the right direction would be highly appreciated.

Comments

  • Welcome to the community, @issashu.

    To play the typewriter sfx, you'll need to create a default sound prefab in your scene - this is a simple matter of clicking "Create" beside "Default sound" at the top of the Scene Manager.  You'll then have to ensure scrolling sound is enabled in the Speech Manager.

    To play footstep sounds, you'll have to create another Sound prefab (again, in the Scene Manager), attach it as a child of the player, and assign it as your player's "Sound child" object in the Player's inspector.  You can see an example of this on the Brain NPC prefab in /Assets/AdventureCreator/Demo/NPCs/Brain.
  • Thank you. This worked excelent for the most part. All the sound clips are now playing, but encountered a random error (as in sometimes happens, sometimes it doesn't), which might be more Unity related, so will do some research there.

    It just happens that sometimes at launching the game in the editor, it pops an error of not being able to assign a mixer to default sound. Strange thing is that it happens only sometimes, but is not consistent (after a restart of Unity, the error doesn't happen for a few launches of the game, then it happens and requires another Unity restart).

  • Strange indeed.  You'd have to post the full message that appears in the Console for me to be able to help - I'm not sure myself if it's down to AC or Unity.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.