pausing a game with a functioning custom overlay?

This forum is currently in read-only mode.
From the Asset Store
Supports keyboard, mouse and gamepads. Supports several gamepads at once.
  • Is there any way of pausing a game and have an animating overlay on to that isn`t affected by any time adjustments?

    while a pause is OK with no animation, if you have an arcade style "CONTINUE" overlay on top of a game obviously a countdown is neeed!!

    As always thanks in advance!!

  • Try putting any logic that should pause inside of a group (or include their event sheets under a single group) then disable/enable the group when needed. Other code outside that group will still run.

    Hope that helps!

    You can also toggle the overlay code disabled during gameplay and enabled when you need it, so they don't interfere with each other.

  • wow, I had no idea you could do that, let alone disable / enable groups within the app.

    will have a play around with that.. Thanks JayJay, you`re always coming to my rescue!!!

  • After trying it out, it seems that disabling the group doesnt pause bullet movement etc.. I guess that goes for any other behaviours too.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • On further research it seems a layout object set to MODAL will pause everything, including bullets etc when you spawn it.

    if you assign the object to a layout that contains your overlay etc.. you get a paused game with animating overlay or whatever, and you can kill it again by destroying the object within its own event sheet.

    However, I read on previous mentions of this plugin that it is buggy?? is this true? anyone come across any problems with it?

  • What you could try is enabling/disabling (activate/deactivate) the behaviors as well inside of the respective groups. I would recommend not using the Layout object, but only because I have also heard it is buggy. I've not used it enough to know sadly.

    I threw a quick test and find that works for Bullet behavior at least: ... eLogic.cap

    Hope that helps! <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Thanks as always Jayjay, you rock.. will take a look ASAP!

  • Took a look, and yeah it certainly does the job, but now you've mentioned it works on the bullet object at least, I worry if it would either not affect some other behaviours or possibly even rest their behaviour instead of "halting" it as I add more..

    With that possibility in mind, in your opinion, do you think I could come up against issues like that further down the line?

    I guess I can get my programmer buddy to take a look at the layout object, maybe he can fix it, or rewrite a custom pause object based on it..

    maybe we can come up with a solution once we get past the CS source building issue I mentioned in another post!!!


  • I think you'll be safe to proceed if you only use the default behaviors that come with Construct Classic, or if the other behaviors have an action to enable/disable them.

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