Page 3 of 3

Re: Talking animation loop (Mecanim)

Posted: Fri Mar 24, 2017 8:52 pm
by harumin
Thanks Tony :)

Re: Talking animation loop (Mecanim)

Posted: Fri Mar 24, 2017 9:16 pm
by Tony Li
You're welcome! :)

Re: Talking animation loop (Mecanim)

Posted: Sat Mar 25, 2017 9:09 am
by harumin
So I used the method you've shown me. It works fine but when I save and load the point where the background image changes it doesn't load and rather it would load the previous picture. How do I fix it? I am using the Visual Novel Framework.

Re: Talking animation loop (Mecanim)

Posted: Sat Mar 25, 2017 3:16 pm
by Tony Li
Hi,

Always the previous picture? Is it possible that the variable isn't set to the correct value?

When you load a game, the Console will show output like this:

Code: Select all

Dialogue System: Lua(Variable["Alert"]=""; Variable["Actor"]="Player"; Variable["Conversant"]="Girl"; Variable["CurrentConversationID"]=1; Variable["CurrentEntryID"]=4; Variable["CurrentConversationActor"]="Player"; Variable["CurrentConversationConversant"]=""; ...
Do you see an entry for your variable (e.g., "BackgroundImage")? If so, is the value correct?

Please feel free to send your project to tony (at) pixelcrushers.com. I'll be happy to take a look and provide a solution.

Re: Talking animation loop (Mecanim)

Posted: Sat Mar 25, 2017 10:10 pm
by harumin
I have an Idea and it might just work, how about I have 2 cameras with different backgrounds each and use SwitchCamera(). How do I save the active camera?

Re: Talking animation loop (Mecanim)

Posted: Sat Mar 25, 2017 10:23 pm
by Tony Li
I'm afraid it's the same thing. You still use Persistent Active Data.