Page 1 of 1
Question on Sequences
Posted: Mon Mar 30, 2020 5:07 pm
by JeffG
How do I get a sequence to run after a response has been chosen?
What I am trying to do is:
For player when doing response..
Set camera to closeup
player enters response
Sequence to play Salsa audio
Switchs to conversant
Camera to close up. Plays Audio...waits for it to end
goes to next node
I have the following
Default Sequence
Camera(Closeup,listener);
Default player sequence
Camera(Closeup,listener);SALSA(Player_1_5,listener)->Message(ALLDONE)
Just missing how to get my player to "talk" after a choice is made.
Re: Question on Sequences
Posted: Mon Mar 30, 2020 5:40 pm
by Tony Li
Hi,
On player nodes (blue), the speaker is the player. Change this sequence:
Code: Select all
Camera(Closeup,listener);SALSA(Player_1_5,listener)->Message(ALLDONE)
to this:
Code: Select all
Camera(Closeup,speaker);SALSA(Player_1_5,speaker)->Message(ALLDONE)
However, the Default Player Sequence probably isn't the best place for that sequence.
Leave the Default Player Sequence blank. Instead, inspect the player response node. Set its Sequence field to something like:
Code: Select all
Camera(Closeup,speaker);
SALSA(Player_1_5, speaker)->Message(PLAYER_SPOKE);
Camera(Closeup,listener)@Message(PLAYER_SPOKE)
SALSA(NPC_1_6, listener)@Message(PLAYER_SPOKE)
If you don't want to have to type that for every player response node, consider using
entrytags. (The
Cutscene Sequences tutorials go into more detail about entrytags.) Then you
can use the Default Player Sequence, setting it to something like:
Code: Select all
Camera(Closeup,speaker);
SALSA(entrytag, speaker)->Message(PLAYER_SPOKE);
Camera(Closeup,listener)@Message(PLAYER_SPOKE)
BTW, if every line (NPC and player) is voice acted, you can typically leave the Default Player Sequence blank, and set the Default Sequence to:
(I omitted the 'speaker' keyword because it's implied if it's not provided.)
Re: Question on Sequences
Posted: Mon Mar 30, 2020 7:09 pm
by JeffG
Thank you
I actually understand it now.
Yes...I do intend to use entrytags. I just hardcode 2 audioclips till I could debug it.
I ended up with
Default
Camera(Closeup,speaker);
SALSA(entrytag speaker)->Message(PLAYER_SPOKE);
Camera(Closeup,listener)@Message(PLAYER_SPOKE);
Default Player
SALSA(entrytag)->Message(ALLDONE);
One minor issue. I tried to add a delay, it doesn't seem to have an impact. Tried it before and after the @Message
Re: Question on Sequences
Posted: Mon Mar 30, 2020 8:56 pm
by Tony Li
Where do you want the delay to occur? If you want to delay for 2 seconds after the player speaks, you could change the Default Player Sequence to:
Code: Select all
SALSA(entrytag)->Message(SPOKE);
Delay(2)@Message(SPOKE)
If you want to delay for 2 seconds in the player's sequence but before the player speaks:
Re: Question on Sequences
Posted: Mon Mar 30, 2020 11:12 pm
by JeffG
Perfect
Thanks
Re: Question on Sequences
Posted: Tue Mar 31, 2020 8:19 am
by Tony Li
Happy to help!