Update stops when Dialog is sent to AndEngine

When a dialog box ever appears in rendering mode, the update method stops if the dialog is not rejected. All I want to do is that whenever the dialog appears, the update method should not be stopped, it should work as usual. Please provide a solution for this.

+4
source share
1 answer

When a dialog box is displayed, onPause () is called on the action. You can try calling onResume () in your game activity when creating a dialog.

In version GLES1 (and possibly also somewhere in GLES2) AndEngine actively prevents the game from resuming if you have no focus. Perhaps you can create your own version of BaseGameActivity that does not verify this condition.

+4
source

Source: https://habr.com/ru/post/1400332/


All Articles