Animated sprite sequencing problems

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
MythicBean
Posts: 9
Joined: Fri Apr 21, 2023 4:11 pm

Animated sprite sequencing problems

Post by MythicBean »

The animator on the portrait image works and will animate, but will not change with any sequencer commands. I followed a different forum post and used the Dialogue manager's default sequence to type in AnimatorPlay(Talking, speakerportrait); AnimatorPlay(Idle, speakerportrait)@{{end}} but was returning errors about not being able to switch states, but after trying to replicate it for a screenshot it returns no errors and does nothing. I then tried having it use animator triggers to switch states with AnimatorTrigger(istalking); AnimatorTrigger(stoptalking)@{{end}}
It will show that it is triggering a state change for the first one but not the second one but it won't actually change states and will only animate whichever one is the default state. I have a hard time understanding C# and regular coding so I normally use visual scripting. I just want to have the NPC animate talking at the start of each NPC dialogue node, and then switch to an idle state after each NPC dialogue node.
MythicBean
Posts: 9
Joined: Fri Apr 21, 2023 4:11 pm

Re: Animated sprite sequencing problems

Post by MythicBean »

OK so now it's working and I don't know why because it wasn't working earlier with the same commands.
I still don't entirely understand how the sequencing commands work and I can't seem to find where they are explained.

Also I realize that you guys are probably very busy very often, but it would be nice to have a video that goes deeper into how the animated sprites work and how they interact with the sequencers and how to set up the animators correctly.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated sprite sequencing problems

Post by Tony Li »

The next Dialogue System video tutorial will be on animated portraits. I'll try to have it out by the end of next week.
MythicBean
Posts: 9
Joined: Fri Apr 21, 2023 4:11 pm

Re: Animated sprite sequencing problems

Post by MythicBean »

Oh wow that's nice. Also sorry if I came across frustrated that was not my intent
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated sprite sequencing problems

Post by Tony Li »

No worries -- animated portraits are a pain point for a lot of people, which is why I'm prioritizing it as the next video.
User avatar
Tony Li
Posts: 21684
Joined: Thu Jul 18, 2013 1:27 pm

Re: Animated sprite sequencing problems

Post by Tony Li »

The video's up:

Post Reply