I’m building a proof of concept that implements Convai in PlayCanvas.
I need some control on the Narrative Design but have become stuck.
Are there any tips or tutorials for working with the Narrative Design in PlayCanvas?
You will recieve bt response in response callback with an id. You can match that to invoke an animation/action etc.
You can add triggers and sections from playground. After setting up these you just need to manage animations based on bt response. The narrative will be taken care of from the backend.
You can use narrative template keys for subsituting or adding values like current time etc:
I’m assuming this is code is listening for the specific trigger that’s fired, is that correct?
Also, for example, with the Unity plugin I’m able to use the OnSectionStart() and OnSectionEnd() to invoke functions. Is there something similar in PlayCanvas?
These are Unity Events in the Unity Plugin. You can also do the same thing manually. When you change section, you can call the OnSectionEnd event for the current Section, then call the OnSectionStart event for the new section.