0 Favourites

Pause game, but not the Dialog UI

  • Lets say I have a game with an inventory dialog.

    When the player opens the inventory the game needs to be paused.

    However I also have animations and other things going on in the inventory window that requires the "time scale" to not be zero.

    How do I freeze the game, but not the dialogs?

  • scirra wanna to ctrl all of your background run/freeze/time etc

    so..i suggest you may take a snapshot for pause the game

    when click inventory button

    snapshot canvas

    when snapshot done

    go to layout(inventory)

    background image load as canvassnapshot

    add FX to background image

    show inventory

  • So if the player was right in the middle of a multi jump sequence (with the physics behavior for movement) and I use this method to pause... when the player exits the inventory will the rest of that physics jump sequence continue right where it left off?

  • So if the player was right in the middle of a multi jump sequence (with the physics behavior for movement) and I use this method to pause... when the player exits the inventory will the rest of that physics jump sequence continue right where it left off?

    IDK what your game like

    maybe you should upload capx for me

    and i edit

    and upload

  • I am not going to upload my game.

    The question is basically this:

    How can I freeze time for SOME of the game and not other parts?

    When the UI closes and I unfreeze the game ALL of the actions that were paused (frozen) need to continue right where they left off like in any professional game.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • I'm also curious about this. Maybe... keep everything in one family and set their timescale to 0? And then have the UI elements not be affected by that? I'm not sure, would also appreciate a solution

  • I'm also curious about this. Maybe... keep everything in one family and set their timescale to 0? And then have the UI elements not be affected by that? I'm not sure, would also appreciate a solution

    See this link... ( I reported a bug, that was then shown to actually work if you use the physics settings correctly)... This will allow you to pause just individual objects (and disable all the event groups for the game objects) to stop the game while in the dialog.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)