Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

playing multiple audio clips during animation sequence

Discussion in 'Getting Started' started by Foggy-Noggin, Mar 21, 2016.

  1. Foggy-Noggin

    Foggy-Noggin

    Joined:
    Mar 6, 2016
    Posts:
    51
    I have an animation of 8 frames that play at ~5 fps. On frame 2,4, and 6 I want to play a unique clip (of 3 different clips). What is the proper way to do this?

    Also, my player character can have two different personas. Each using a different sprite sheet. How do I handle the above animation using one of the two?
     
  2. Farelle

    Farelle

    Joined:
    Feb 20, 2015
    Posts:
    504
    i think animation event is the term you are looking for
     
  3. Foggy-Noggin

    Foggy-Noggin

    Joined:
    Mar 6, 2016
    Posts:
    51
    Yeah, there is an explanation in the Unity/Answers on this, but it is unclear to me how to use. It says add a function, but does not say where it should be and how to set up. Adding three different sounds and two different sprite sets to the mix adds to the confusion I'm already having on this. I haven't found a useful example for this in my internet searches. I'm probably going to make two separate animations, one for each character persona, just to simplify this.
     
  4. Foggy-Noggin

    Foggy-Noggin

    Joined:
    Mar 6, 2016
    Posts:
    51
    Ok, I think I figured it out. I haven't done it yet though, so we'll see. I jumped onto my next todo item and I'm making progress with that. I don't want to disrupt my focus to work it out now. Not sure how I'm going to handle the second sprite set and switching between the two, but I haven't worked that out in the other animation sequences yet either.