How to prevent user do nothing, till the sound file stops playing?

  • #1, by AkcayKaraazmakTuesday, 08. September 2015, 11:16 5 years ago
    Hello guys,

    When user speaks (playing the sound file), I want to hide the cursor so user can not do anything before the sound file finishes? Hide cursor or something like that to prevent user, not to do anything till the sound stops.

    Is this possible?

    Cheers smile

    Great Poster

    437 Posts


  • #2, by ke4Tuesday, 08. September 2015, 11:34 5 years ago
    There is article about listeners where you can catch when text starts and stops, i never used it though.

    http://www.visionaire-studio.net/wiki/article/events-managem...

    Key Killer

    810 Posts

  • #3, by afrlmeTuesday, 08. September 2015, 11:38 5 years ago
    Well you could create a hide cursor action part just before a display text & a show cursor action part after the display text action... however it may prevent the players from being able to left click skip the display text.

    Quick note: all actions listed after a display text or display narration text are automatically paused until the text has finished being displayed, unless the text is set as background text, which means the text runs in the background without pausing the action text & thus becomes unskippable.

    Imperator

    6812 Posts

  • #4, by AkcayKaraazmakTuesday, 08. September 2015, 11:43 5 years ago
    Hi guys, but I'm not using display text action. Character speaks with sound file and I show the text as png image on the screen.

    I just tried Playsound ... and then next line wait till sound finishes. I think it works now. But I need to test more smile

    Great Poster

    437 Posts

  • #5, by afrlmeTuesday, 08. September 2015, 11:46 5 years ago
    yes, if you are using play sound file & the wait until sound file action part then it will work in the same way as I mentioned above. wink

    Imperator

    6812 Posts

  • #6, by AkcayKaraazmakTuesday, 08. September 2015, 12:04 5 years ago
    Yes it worked bro, Thank you! grin

    Great Poster

    437 Posts

  • #7, by afrlmeTuesday, 08. September 2015, 12:20 5 years ago
    Quick note: there are 3 action parts that allow you to pause the action list:

    * wait until character stops speaking
    * wait until character stops walking
    * wait until sound file finishes playing

    All of the action parts listed will pause the action block associated with the action parts above until they finish.

    Imperator

    6812 Posts

  • #8, by sebastianTuesday, 08. September 2015, 13:51 5 years ago
    you were also able to use cutscenes

    Thread Captain

    2336 Posts

  • #9, by afrlmeTuesday, 08. September 2015, 13:59 5 years ago
    Yes cutscenes too, but the cutscene action part is skippable with the esc key. I'm not sure, but I don't think it would stop the current sound playing unless you added a stop sound action part after the end cutscene action part.

    Imperator

    6812 Posts

Write post