Forum rules - please read before posting.

Is there an auto-read and fast-forward feature like a regular visual novel?

Is there an auto-read and fast-forward feature like a regular visual novel?

Comments

  • Faster text-scrolling can be achieved by raising the Speech Manager's Text scroll speed value. This can be done through script based on the player's input. To get an API reference to it, right-click on the field's label:

    AC.KickStarter.speechManager.textScrollSpeed
    

    This script, for example, will alter this value when the player presses/releases an input button named "FastForward":

    using UnityEngine;
    
    public class FastForwarder : MonoBehaviour
    {
    
        public float normalTextSpeed = 50f;
        public float fastTextSpeed = 120f;
        public string fastInput = "FastForward";
    
        private void Update ()
        {
            bool doFastForward = Input.GetButton (fastInput);
            AC.KickStarter.speechManager.textScrollSpeed = doFastForward ? fastTextSpeed : normalTextSpeed;
        }
    
    }
    
  • Is there a way to disable all [wait] flags when Autoread is enabled?

  • edited January 2023

    Try this:

    using UnityEngine;
    using AC;
    
    public class FastForwarder : MonoBehaviour
    {
    
        public float normalTextSpeed = 50f;
        public float fastTextSpeed = 120f;
        public string fastInput = "FastForward";
    
        private void Start ()
        {
            KickStarter.playerInput.InputGetButtonDownDelegate = GetButtonDown;
        }
    
        private void Update ()
        {
            bool doFastForward = Input.GetButton (fastInput);
            KickStarter.speechManager.textScrollSpeed = doFastForward ? fastTextSpeed : normalTextSpeed;
        }
    
        private void GetButtonDown (string inputName)
        {
            Speech speech = KickStarter.dialog.GetLatestSpeech ();
        if (speech != null && speech.isAlive && speech.IsPaused () && inputName == "SkipSpeech" && Input.GetButton (fastInput))
        {
            return true;
        }
            try
            {
                return Input.GetButtonDown (inputName);
            }
            catch {}
            return false;
        }
    
    }
    
  • This is not working properly. All the sentences are skipped.

  • This is good for fast-forwarding

  • I've updated the above - give it a try.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.