Problems with pausing game

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So I have issues with pausing the game. The relevant clickcode is
    Please login to see this picture.

    The thing is that it looks like Upon pressing a key doesn't behave like it should and when trying to pause, it instantly unpauses. I've tried to limit condition to only one action when event loops, but that only made me unable to unpause.

    There are no impossible things, there is only lack of skill needed to complete the task.

  • Try something like the below and see if this works. It may still register the key being pressed down when the unpause code is fired, but this is how I'd start.

    1) Add a counter to your frame and name it something like "Pause Delay"
    2) When pressing "P" to pause the game, set counter to something like 10.
    3) Add a condition that when "Pause Delay" counter is >1, subtract 1 from counter.
    4) Add a condition to the unpause code that the "Pause Delay" counter must be =0 in order to work.

    Please login to see this link.

  • Don't know if this helps:

    You've grouped the events I suppose, having something like a Game Group and a Pause Group. What I've done is create an event outside the groups that toggles a flag and limited the condition to one action if the event loops. Then, in the Game Group I've made an event: Is flag on? (Deactivate Game Group and Activate Pause Group). And then in the Pause group, I've added the event is Flag off? (End Pause Group and Activate Game Group).

    That does the trick for me.

    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!