Skip to next line without delay
Posted: Mon Mar 06, 2023 2:47 pm
Hi Tony,
I use this script, which is working well. Its purpose is to not show the player typewriter effect.
What I need is for the next line of dialogue to show immeidately after the player selects theirs. As it is, with this above code, the manager waits for the duration that the typewriter would have taken to display the text. In other words, a long player repsonse will mean a long wait for the next line of dialogue to show.
Many thanks for the help.
I use this script, which is working well. Its purpose is to not show the player typewriter effect.
Code: Select all
using UnityEngine;
using PixelCrushers.DialogueSystem;
public class SkipTypewriterForPlayer : MonoBehaviour
{
void OnConversationLine(Subtitle subtitle)
{
if (subtitle.speakerInfo.isPlayer)
{
subtitle.formattedText.text = @"\^" + subtitle.formattedText.text;
}
}
}
Many thanks for the help.