Forum rules - please read before posting.

Feature: Let punctuation affect Chars Per Second setting in subtitles

I think it would be really cool to include the possibility to let punctuation affect the lifetime of subtitles (non-typewriter ones).
So that if a dialogue entry contained 50 characters and among these 2 full stops and 3 commas, the time-on-screen would be prolonged by a certain small amount for every full stop and comma.
Of course it should be possible to set the value for each punctuation mark.

Being able to fine-tune conversations like this would be awesome :-)

If you don't find it's worth the time to make it a full feature, maybe you could point out where in the code I should start looking if I wanted to try to make this change myself...

Comments

  • Thanks for the suggestion.

    I'm not sure the amount of use it'd get vs the complexity it would add to the interface would make it best to include officially, but certainly I should like it to be possible to add via custom script.

    It's not currently possible to alter the length of time a speech line takes once the line begins, but I'll look to see if this ability can be provided. That should then allow a custom script to hook into the OnStartSpeech custom event, work out how long to extend the display time by, and then update the speech line with that new duration.

    If you wanted to go about hacking AC in the meantime, you can affect this by updating the value of the displayDuration float value in the Speech script's InitSpeech function.

  • Making speechtime available to a custom script as you described, would be just fine. Anyone looking for this kind of control would then be able to build their own feature without too much hazzle. Thanks for considering it!

  • +1

    An alternative OnStartSpeech event that allows users to alter the display duration of the speech line can be useful in cases where we want to provide a different algorithm for calculating the line duration (e.g. based on syllables or words, excluding / including punctuation marks etc).

  • You can use the OnStartSpeech_Alt event, which passes a Speech parameter, and then set its TimeRemaining property to alter its display duration:

    void OnStartSpeech_Alt (Speech speech)
    {
        speech.TimeRemaining = 10f;
    }
    
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.