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

  • #1, by AkcayKaraazmakTuesday, 08. September 2015, 11:16 9 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

    440 Posts


  • #2, by ke4Tuesday, 08. September 2015, 11:34 9 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 9 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

    7278 Posts

  • #4, by AkcayKaraazmakTuesday, 08. September 2015, 11:43 9 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

    440 Posts

  • #5, by afrlmeTuesday, 08. September 2015, 11:46 9 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

    7278 Posts

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

    Great Poster

    440 Posts

  • #7, by afrlmeTuesday, 08. September 2015, 12:20 9 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

    7278 Posts

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

    Thread Captain

    2346 Posts

  • #9, by afrlmeTuesday, 08. September 2015, 13:59 9 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

    7278 Posts