UCC Smooth Camera transition on end of conversation

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
joshualoveridge
Posts: 19
Joined: Tue Jan 01, 2019 12:53 am

UCC Smooth Camera transition on end of conversation

Post by joshualoveridge »

Hey Tony
im using the UCC for my main character currently i have the dialogue system setup.
I am using Camera(Full); {{default}} to set the camera to look at the NPC but when the conversation finish the camera kind of jumps a little, how can i implement a smooth transition back to the normal camera view ,
Im using the thire person adventure view if you are wondering :)
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC Smooth Camera transition on end of conversation

Post by Tony Li »

Hi,

In the last dialogue entry node, use a sequencer command like this:

Code: Select all

Camera(original,,1)
This will move the camera back to its original, pre-conversation position over 1 second.
alexjet1000
Posts: 18
Joined: Thu Oct 01, 2020 11:18 am

Re: UCC Smooth Camera transition on end of conversation

Post by alexjet1000 »

Im kind of new to this. But im getting the same issue.

Im using UCC third person adventure.

If i only have 1 dialogue entry of speaker, with a sequence Camera(Closeup,,1) and only one line of text.
How can i smooth that jump to original position when the conversation finishes?

I only have Start node and that entry, with a sequence that zooms into the character, but now back into original i dont know where to place it.

I though on using messages but OnConversationEnd happens and the camera is already at original point instantly before is triggered, and i dont want to set it on @seconds, only if player ends the conversation.

I also tried adding a blank entry but it gives me empty UI text box (with the desired camera zoom out), and needs another player interaction to close, which is note desired.

Hope you can clarify me this! :D
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC Smooth Camera transition on end of conversation

Post by Tony Li »

Hi,

How does the player end the conversation?

Try adding a second node. Leave that node's Dialogue Text blank. Set its Sequence field to: Camera(original,,1)
alexjet1000
Posts: 18
Joined: Thu Oct 01, 2020 11:18 am

Re: UCC Smooth Camera transition on end of conversation

Post by alexjet1000 »

Hi,

I already tried that but it gives me an empty text UI that needs another interaction to close.

The player press a continue button, thats why i dont want to set it over time, but once the conversation is concluded.

The way back to the origin by default is kind of sharp so im trying to position de Camera(original, , 1) in the right place.
I could disable this UI via sequencer but i dont know if that would be very optimal.

any other sugerence?

thank you
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC Smooth Camera transition on end of conversation

Post by Tony Li »

You have to move the camera before the conversation ends.

Make sure the Dialogue Text and Menu Text fields are blank. If they're blank, it shouldn't show any subtitle text. However, if the subtitle panels' Visibility dropdowns are set to either of the "Always" settings, the subtitle panels themselves will stay visible. To make them disappear, too, use the SetDialoguePanel() sequencer command.

Since you're using a continue button, use the Continue() sequencer command.

Make sure your final node's text is blank, and set its Sequence to:

Code: Select all

SetDialoguePanel(false);
Camera(original,,1);
Continue()@1
alexjet1000
Posts: 18
Joined: Thu Oct 01, 2020 11:18 am

Re: UCC Smooth Camera transition on end of conversation

Post by alexjet1000 »

Tested this, tweaked it a little and got a perfect effect transition.
Thank you for the assitance!
User avatar
Tony Li
Posts: 22051
Joined: Thu Jul 18, 2013 1:27 pm

Re: UCC Smooth Camera transition on end of conversation

Post by Tony Li »

Glad to help! :-)
Post Reply