Conversant continuing to talk - how to control the fade out / fade in of each line?
Posted: Sun Nov 22, 2020 3:44 pm
Hi Tony
I finished reading the documentation, and have been customizing my UI. Just for reference, the setup I'm aiming for is very simple (compared so some of the stuff I see you guys doing haha). The player never speaks, only the NPC conversant speaks. The player occasionally gets response options. The NPC subtitle panel is really simple - a subtle black background at the bottom of the screen with the dialogue line on top. Each dialogue line would be just a sentence or two long.
I believe the only question I'm still not sure about is how to have more fine-tuned control over what happens when you press the continue button, and the NPC goes from saying one line to their next line. I'm not using the Typewriter effect, instead I would like to fade in and out each dialogue line.
What I would like to happen:
1) NPC's dialogue line fades in
2) Nothing happens until the player presses the continue button
3) Once the player hits continue, the current line of dialogue quickly fades out, and the next line fades in.
If the player presses continue while the current dialogue line is fading in, I'd like it to instantly begin fading out to go to the next line.
--
I started with the Letterbox prefab, and adjusted the look of the UI. I tried adjusting the Show and Hide animation state transition timings (set the transitions to 1 second for testing). This is what currently happens:
1) NPC dialogue line fades in
2) Nothing happens until player presses continue button (correct)
3) Once the player hits continue, the dialogue line instantly changes to the next line at full Alpha, then fades out (Hide transition) and fades back in (Show transition).
I had found this post that was soooort of similar to what I'm looking to do: https://www.pixelcrushers.com/phpbb/vie ... ade#p12987
In that post you suggested the option of having some custom code called when the Continue button is pressed. Is that necessary, or might there be a way to set up a default Sequence to achieve this fade effect? I have no problem setting up custom code, but thought it might be nicer and more self-contained if it was possible to set it up with a default Sequence.
Thanks for any help, loving the asset and what it can do!
I finished reading the documentation, and have been customizing my UI. Just for reference, the setup I'm aiming for is very simple (compared so some of the stuff I see you guys doing haha). The player never speaks, only the NPC conversant speaks. The player occasionally gets response options. The NPC subtitle panel is really simple - a subtle black background at the bottom of the screen with the dialogue line on top. Each dialogue line would be just a sentence or two long.
I believe the only question I'm still not sure about is how to have more fine-tuned control over what happens when you press the continue button, and the NPC goes from saying one line to their next line. I'm not using the Typewriter effect, instead I would like to fade in and out each dialogue line.
What I would like to happen:
1) NPC's dialogue line fades in
2) Nothing happens until the player presses the continue button
3) Once the player hits continue, the current line of dialogue quickly fades out, and the next line fades in.
If the player presses continue while the current dialogue line is fading in, I'd like it to instantly begin fading out to go to the next line.
--
I started with the Letterbox prefab, and adjusted the look of the UI. I tried adjusting the Show and Hide animation state transition timings (set the transitions to 1 second for testing). This is what currently happens:
1) NPC dialogue line fades in
2) Nothing happens until player presses continue button (correct)
3) Once the player hits continue, the dialogue line instantly changes to the next line at full Alpha, then fades out (Hide transition) and fades back in (Show transition).
I had found this post that was soooort of similar to what I'm looking to do: https://www.pixelcrushers.com/phpbb/vie ... ade#p12987
In that post you suggested the option of having some custom code called when the Continue button is pressed. Is that necessary, or might there be a way to set up a default Sequence to achieve this fade effect? I have no problem setting up custom code, but thought it might be nicer and more self-contained if it was possible to set it up with a default Sequence.
Thanks for any help, loving the asset and what it can do!