License from €75 Log in
DE EN FR ES IT CZ

Suspend or Freeze the game?

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

  1. · 13 years ago
    When the player selects "exit game" from my dropdown menu, I would like to freeze everything in the game while the confirmation interface is displayed, keeping the player from moving around and NPC's from doing their routines until the player selects the "yes" or "no" button. I first tried adding "pause" commands to everything, but they seem limited to times, which would be fine for pausing for a 999 minutes if there was an "unpause" command, which there is not. Any ideas?
    • Image in post
  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.

    See licenses Try it for free
  3. · 13 years ago
    Yes but all methods will require a load of hassle like you described.

    1. create a condition.
    2. inside of each of your on mouse over/out & actions wrap all actions with an if query checking if condition you created above is true or false.
    3. use lua to create a table of all currently active animations & force it to lock each animation to currently active frame.

    4. to unpause you would toggle condition & restore active animation frames back to 1 & max frame value.

    This is completely theoretical & I have no clue if what I have just said is valid.

    The faster way to pause the game is to change to a menu scene. It automatically pauses all animations/stored action until you go back to the scene afterwards,
  4. · 13 years ago
    Seems like this would be an action, as pausing a game is a feature in almost every game...
  5. · 13 years ago
    What about create a screenshot everytime when you would click on "exit game" button and set this screen as background behind your menu in menu scene and everytime you would create new screenshot it would set the same name and replace the old screen, or is this just stupid? grin
  6. · 13 years ago
    Well it's an idea but not sure if it's possible though, well not without testing & even then I'm not sure if you can overwrite image files inside of compiled games.

    I was going to say maybe it was possible to change sprite path for objects but the data structure says it's not scriptable & also quick note: openGL shader effects are not included in screenshots taken by vs screenshot function.
  7. · 13 years ago
    I tested and it works. It everytime overwrite the older picture. And in menu i set in properties background.png as backgroud.
    createScreenshot("screens/backgroud. png")
    Show menu "menu"
    


    The only problem is that it takes for three seconds in my case...

  8. · 13 years ago
    you mean to take the screenshot? I know it freezes the engine for a little while during screenshot capture which doesn't usually last more than a couple of seconds or so.

    You have tested this in an exported/compiled game?
  9. · 13 years ago
    Just tested, it doen't work in compiled game...

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?