Jump to content

How to fire pause event when chooseAsync() opens?


pingu
 Share

Recommended Posts

Hello,

I call `chooseAsync()` when the user clicks on the "Ready" button of my game. The only action left for the user after the "Ready" button get the car moving is tapping once again. Since `chooseAsync()` and `shareAsync()` take a little while to open (under half a second), I notice that players end up pressing again before the modal dialog from Facebook pops up. The problem here is that the car in the game would have already started moving and the dialog would pop up over it. If I could listen to an event which told me that the user doesn't have control over the game, I could pause the game until the dialog gets cleared.

I tried `onPause()` but it doesn't work with `chooseAsync()`.

Thanks

 

Link to comment
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...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...