Hi Tony,
When the player selects a dialogue choice, I want the player to move to another position in the scene before black screen fades out. Are there sequences for those?
Move the player to another position in the current scene
- DearDeerDee
- Posts: 30
- Joined: Mon Mar 22, 2021 10:00 am
Re: Move the player to another position in the current scene
Hi,
Yes. You can use the MoveTo() and Fade() sequencer commands. For example, to fade to black, then move the speaker to the position of a GameObject named BlockingMark2, then fade in, use this Sequence:DearDeerDee wrote: ↑Thu Aug 12, 2021 9:17 pmWhen the player selects a dialogue choice, I want the player to move to another position in the scene before black screen fades out. Are there sequences for those?
Code: Select all
Fade(stay, 1); // Fade out to black over 1 second and stay faded out.
MoveTo(BlockingMark2, speaker)@1; // At the 1-second mark, move speaker to BlockingMark2.
Fade(in,1)@1.5; // At the 1.5-second mark, fade in.
- DearDeerDee
- Posts: 30
- Joined: Mon Mar 22, 2021 10:00 am
Re: Move the player to another position in the current scene
Thank you Tony!
- DearDeerDee
- Posts: 30
- Joined: Mon Mar 22, 2021 10:00 am
Re: Move the player to another position in the current scene
Hi Tony I was checking the MoveTo() doc, and noticed this:
subject: (Optional) The object to move. Can be speaker, listener, or the name of a game object in the scene. Default: speaker.
Yet in the dialogue editor, there is only Actor, Conversant. So speaker actually refers to Actor?
subject: (Optional) The object to move. Can be speaker, listener, or the name of a game object in the scene. Default: speaker.
Yet in the dialogue editor, there is only Actor, Conversant. So speaker actually refers to Actor?
Re: Move the player to another position in the current scene
Yes, the speaker is the dialogue entry node's Actor, and the listener is the dialogue entry node's Conversant.
Note that it's possible to use a different GameObject for the conversation's main actor and conversant if you need to. For more info on this, see Character GameObject Assignments.
Note that it's possible to use a different GameObject for the conversation's main actor and conversant if you need to. For more info on this, see Character GameObject Assignments.
- DearDeerDee
- Posts: 30
- Joined: Mon Mar 22, 2021 10:00 am
Re: Move the player to another position in the current scene
Gotcha. Thanks!