Talking animation loop (Mecanim)

Announcements, support questions, and discussion for the Dialogue System.
harumin
Posts: 29
Joined: Fri Dec 30, 2016 10:43 am

Re: Talking animation loop (Mecanim)

Post by harumin »

Thanks Tony :)
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Talking animation loop (Mecanim)

Post by Tony Li »

You're welcome! :)
harumin
Posts: 29
Joined: Fri Dec 30, 2016 10:43 am

Re: Talking animation loop (Mecanim)

Post 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.
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Talking animation loop (Mecanim)

Post 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.
harumin
Posts: 29
Joined: Fri Dec 30, 2016 10:43 am

Re: Talking animation loop (Mecanim)

Post 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?
User avatar
Tony Li
Posts: 22062
Joined: Thu Jul 18, 2013 1:27 pm

Re: Talking animation loop (Mecanim)

Post by Tony Li »

I'm afraid it's the same thing. You still use Persistent Active Data.
Post Reply