Page 1 of 1

Animated sprite sequencing problems

Posted: Sat May 06, 2023 3:20 pm
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.

Re: Animated sprite sequencing problems

Posted: Sat May 06, 2023 3:27 pm
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.

Re: Animated sprite sequencing problems

Posted: Sat May 06, 2023 7:16 pm
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.

Re: Animated sprite sequencing problems

Posted: Sun May 07, 2023 12:12 am
by MythicBean
Oh wow that's nice. Also sorry if I came across frustrated that was not my intent

Re: Animated sprite sequencing problems

Posted: Sun May 07, 2023 8:25 am
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.

Re: Animated sprite sequencing problems

Posted: Sun May 07, 2023 11:11 pm
by Tony Li
The video's up: