Adding delay with scripting

  • #1, by daniel-lowesSunday, 09. August 2020, 23:36 3 years ago
    Is it possible to add delay tags like "p250ms" to text in the textStarted event? I want to add a global 250ms delay between audio lines.

    I gave it a try and it didn't seem to work. I can make it pause indefinitely by setting TimeToWait to -1, but I can't make it only start pausing after the audio has played.

    Newbie

    9 Posts


  • #2, by afrlmeTuesday, 11. August 2020, 13:48 3 years ago
    I'm sorry, but I don't think it's possible to get the audio duration value belonging to display texts. I had a go last night & it just ended up printing -1 & waiting... into the messages.log file.

    I too like to have pauses between display texts. Out of habit I already create pause action parts at the begin of interaction actions & between display texts. If you haven't done much on your game yet, you should probably make a start on creating pause action parts manually between the display text action parts.

    Imperator

    7278 Posts

  • #3, by daniel-lowesWednesday, 19. August 2020, 21:33 3 years ago
    Hm, is there a way to generate action parts dynamically? And add them in between text as it plays?

    Newbie

    9 Posts