I am trying to get the sequence commands play talking animations but I keep running into the same problem again and again.
So I've made this simple dialog:
All plays well and the engine goes through each node like it is supposed to (10 sub chars per second, min sub of 2 seconds). But when I put this command on the entry node:
AnimatorPlay(Monk_Talking);
Delay(2)
The conversation instantly skips the entry node and plays the second conversation node. I also tried to end with Delay({{end}}) or tried the AnimatorPlayWait command but it keeps resolving in the same issue and it is driving me bonkers. I am just a simple visual artist and game designer without any coding knowledge so I am pretty sure I am doing something wrong but I just can't find what. Could maybe someone here help me? Thanks!
I attached two screenshots. One of the dialog editor, inspector (with node selected) and animator combined, and one screenshot of the non-player actor where I selected the game object that contains the animator and the Dialogue Actor script. Hope you can find something!
Thanks
Attachments
Screenshot 2019-03-03 at 09.16.58.png (184.23 KiB) Viewed 781 times
Last edited by Afello on Sun Mar 03, 2019 3:57 am, edited 1 time in total.
Sorry about the attachment issue. phpBB (the forum software we use) sometimes has a problem handling more than one image attachment in a post.
This is a puzzler. I don't see anything wrong with that sequence. Would you please try retyping only "Delay(2)" (without quotes) in the Sequence field? In other words, re-enter the sequence, and omit the animator command for the time being.
Please also feel free to send a copy of your project to tony (at) pixelcrushers.com if you like. I'll be happy to take a look at it directly.
It seems to go right with the delay and I also started toying around with camera angles which seems to work properly. I am uploading the project as we speak and will be sending you a download link in a short while.
My big question right now is how the dialog engine would know where to find the correct animator to play. It's not related to the actor script cause I got the animation to play before I attached that script to the character. Is it just searching among all animators within the scene for the one with the correct animation to play?