How should I trigger Dialogic? #267
Replies: 1 comment 2 replies
-
Hi and welcome to using Cogito. I haven't used Dialogic yet, but took a very quick glimpse at their docs. In terms of how to trigger your dialogue with Cogito, I'd prob recommend looking at The important part is to keep a reference to your player_interaction_component in this script, so you can read and control the player inputs (like resuming control when exiting out of the dialogue) exports / onready:
Depending on how dialogic's input work, you probably want to hook up the signal that Dialogic sends when the timeline is stopped/finished, to then call
Third, if you want your player to be able to abort your dialogue, I recommend hooking up Dialogics function to the signal that gets emitted when the player presses the menu key (ESC on Keyboard, START on gamepad): Next I'd look at the stop dialogue function:
That should be all to return to regular gameplay. To reiterate: I haven't tested this at all, but this is how I'd start testing the implementation. |
Beta Was this translation helpful? Give feedback.
-
I'm trying out a couple different addons, and I would like to be able to trigger the dialogue I create in dialogic, with the interaction system in Cogito but I'm not sure how....
I've been playing around with the Readable component since it captures player input while you're reading it but... I can read the code behind it, and understand what it's saying, but I have no idea how to adapt this, or if there's a better way?
Beta Was this translation helpful? Give feedback.
All reactions