Hi!
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!
Sequence commands problems
Re: Sequence commands problems
Hi,
There is probably a typo in the Sequence.
Are there any errors in the Console window?
Can you please post a screenshot of the entry's Inspector view so I can see the Sequence field?
There is probably a typo in the Sequence.
Are there any errors in the Console window?
Can you please post a screenshot of the entry's Inspector view so I can see the Sequence field?
Re: Sequence commands problems
Hi Tony!
No errors in the console.
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
No errors in the console.
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 449 times
Last edited by Afello on Sun Mar 03, 2019 3:57 am, edited 1 time in total.
Re: Sequence commands problems
Weird, the screenshot of the actor object showed up when I posted but now I don't see it any longer, so just to be sure I will post it once more.
- Attachments
-
- Screenshot 2019-03-03 at 09.16.38.png (95.8 KiB) Viewed 447 times
Re: Sequence commands problems
Hi,
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.
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.
Re: Sequence commands problems
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?
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?