erikwittern

How to use the new pauseUpdate function of Phaser 2.0.4 to resume games?

Recommended Posts

Hi *,

 

I am very excited about the new pauseUpdate function, which runs while game.paused = true. However, I am unsure how to use it. While it constantly runs once the game is paused, it does not allow to react to input on priorly defined sprites (i.e., pause menu elements that I defined before pausing the game). For example, checks for menuTextButton.input.isDown stop to work in pauseUpdate once the game is paused.

 

So, how do I use pauseUpdate to react to user input, for example, to resume the game?

Share this post


Link to post
Share on other sites

Hi *,

 

I am very excited about the new pauseUpdate function, which runs while game.paused = true. However, I am unsure how to use it. While it constantly runs once the game is paused, it does not allow to react to input on priorly defined sprites (i.e., pause menu elements that I defined before pausing the game). For example, checks for menuTextButton.input.isDown stop to work in pauseUpdate once the game is paused.

 

So, how do I use pauseUpdate to react to user input, for example, to resume the game?

 

I too am trying to work this out.

 

While looking through the code of Phaser itself it seems like there's a lot of things on hold while things are paused, so I think it might not be ready to be used for, say, a pause menu in game.

 

I'll get back to you if I find anything out!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.