License from €75
DE EN FR ES IT CZ

Behaviour when the Visionaire Player loses focus

This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials

  1. · 8 years ago
    Hi, I am trying to use VS to create the introduction scenes of my game...

    So this is largely based on specific timings to sync the music, speech, sound effects, movement of objects, and scrolling of scenes. However I am experiencing issues related to how VS behaves when it loses focus. (Alt-Tab to another application)

    It seems that some comands will continue to run in the backgound, while others will wait in the same place until regaining focus.

    For example, pause, moving objects, and non-audio dialogue will continue to run in the backgound, while background music, dialogue with audio, and scene scrolling will wait at the same place until the focus is regained.

    How can you ensure the sequence of events if commands are not consistent to eachother and the focus is lost?
  2. Working on a game?

    The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.

    Get 15 % off Try it for free
  3. · 8 years ago
    Try inserting this inside of an execute a script action part in the game launch actions section...
    system.pauseOnFocusLost = true
    I found it in Simon's Luadocs, but there's no description or example on how to use it. Let me know if it works.
  4. · 8 years ago
    Unfortunately, it doesn't seem to make any difference.
  5. · 8 years ago
    system.pauseOnFocusLost = false

    is what you're looking for.
  6. · 8 years ago
    Thanks, everything now runs together in the background. 
    Panic over :-)
  7. · 8 years ago
    system.pauseOnFocusLost = false

    is what you're looking for.

    Sorry. true seemed to make more sense to me as I thought you wanted to pause when focus was lost. oh well, at least you have sorted it out now. wink
  8. · 8 years ago
    Everything pausing when losing focus would have been better, but that doesn't seem to happen when set to true... But setting to false makes everything run in the background which is the next best thing. As long as it all does the same thing... Thanks

This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.

New thread

Really delete this post?