Page 2 of 2

Re: Sequence of animations with AnimatorPlay()

Posted: Mon Oct 26, 2020 6:41 am
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 !

Re: Sequence of animations with AnimatorPlay()

Posted: Mon Oct 26, 2020 9:23 am
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);

Re: Sequence of animations with AnimatorPlay()

Posted: Mon Oct 26, 2020 9:46 am
by Pendergast
It finally worked, yaay ! Thank you again, Tony ! You're the best as always !

Re: Sequence of animations with AnimatorPlay()

Posted: Mon Oct 26, 2020 9:54 am
by Tony Li
Glad to help! :-)