Sequence of animations with AnimatorPlay()

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Sequence of animations with AnimatorPlay()

Post by Pendergast »

Hi,

Don't worry, i speak a very bad english it's my fault haha !

Using the command SendMessage() isn't playing any audio at all (tho i don't have any errors) :o

The Audio() command isn't stopping the previous Audio() played when i tried it so it's not what i need. Thank you anyway !
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence of animations with AnimatorPlay()

Post by Tony Li »

Hi,

Please try my second suggestion:

1. Create a GameObject named 'Music'. You can make it a child of the Dialogue Manager if you want it to survive scene changes.

2. Add an Audio Source component to Music.

3. Create a folder named 'Assets'. Put your music files in this folder.

4. Use this command to play the Taverne file:

Code: Select all

Audio(Taverne, Music);
5. Use this command to change to the romance file:

Code: Select all

Audio(romance, Music);
User avatar
Pendergast
Posts: 38
Joined: Sun Oct 18, 2020 1:48 pm

Re: Sequence of animations with AnimatorPlay()

Post by Pendergast »

It finally worked, yaay ! Thank you again, Tony ! You're the best as always !
PENDERGAST / NyxNikita
Artist & Writer
Caroline I. Letuppe
🌿 Instagram: https://instagram.com/nyxnikita
🌿 Site officiel: https://nyxnikita.com
🌿 Boutique: https://shop.nyxnikita.com
🌿 Tous mes liens: https://nyxnikita.carrd.co/
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequence of animations with AnimatorPlay()

Post by Tony Li »

Glad to help! :-)
Post Reply