Alerts like metal gear?

Announcements, support questions, and discussion for the Dialogue System.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

Pretty much in this order,
1. Incoming transmission 5 seconds on screen.
(Fades out)
2. Dioulouge ui begins
3.Conversation ends
4.End of sequence.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post by Tony Li »

Here's what I recommend:

Instead of setting the IncomingTransmission GameObject active and inactive, use an Animator to fade it in and out.

Here's an updated example scene:

Corgi_IncomingTransmissionExample_2018-07-09.unitypackage

I did this to set it up:

1. Activated IncomingTransmission.

2. Added an Animator Controller with two animator states: Hidden (the starting state) and ShowAndFade (shows for 5 seconds, fades out, and transitions to Hidden state).

4. Changed the Dialogue System Trigger's Sequence to:

Code: Select all

AnimatorPlay(ShowAndFade,IncomingTransmission);
SendMessage(OnUse,,TRIGGER)@5
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

I'll give it a shot when I get home, I really appreciate all the help Tony!
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

Getting really close!The Incoming transmission does show up during the sequence but the main dialogue comes way to soon.
1. Incoming transmission (5 seconds)

2. Conversation starts

3. Conversation ends.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

What if I where to add a system trigger on SF Unity UI Dialogue UI with Portraits for 5 seconds after the Incoming Transmission?
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post by Tony Li »

I don't think you need to do that. Why not just send the OnUse message after a longer delay? For example, this delays 3 additional seconds:

Code: Select all

AnimatorPlay(ShowAndFade,IncomingTransmission);
SendMessage(OnUse,,TRIGGER)@8
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

So this pretty much happens: https://giphy.com/gifs/82UKOef1jF8khHI7cu

I did change it to what you recommended, when the play system is on use the message doesn't appear the SF Unity UI Dialogue UI. But if I set it onStart the Incoming transmission does appear and fade out after 12 seconds but the SF Unity UI Dialogue UI starts at the same time.
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post by Tony Li »

Hi,

The catch there is that both Dialogue System Triggers are on the same GameObject, and they both respond to OnUse.

When you use the TRIGGER GameObject, it sends OnUse to both Dialogue System Triggers, so they both run right away.

If you want the whole thing to happen when the player enters a trigger collider, set the first one to OnTriggerEnter. (In this case, TRIGGER must have a collider whose Is Trigger checkbox is ticked.) After 12 seconds, it will send OnUse to itself, which the second Dialogue System Trigger will respond to.

Otherwise, if you want the whole thing to happen when the player uses something, put them on separate GameObjects. Don't make one a child GameObject of the other; OnUse is sent to children, too.
Tykan
Posts: 24
Joined: Sun Jul 08, 2018 3:00 pm

Re: Alerts like metal gear?

Post by Tykan »

Alright so I changed it to the way you recommended it, sadly the results are the same. Both appear at the same time, Should I make a separate trigger game object to correspond with the incoming transmission?
This is the result I am would like to mimic: https://giphy.com/gifs/1wrln8gbZtqfzmHoqJ
Attachments
Capture.PNG
Capture.PNG (68.92 KiB) Viewed 450 times
User avatar
Tony Li
Posts: 22057
Joined: Thu Jul 18, 2013 1:27 pm

Re: Alerts like metal gear?

Post by Tony Li »

We're almost there. Let's just take one step back first. What gameplay event should cause this whole thing to happen?
Post Reply