FrankenApps
Mar 24, 2019 - 09:25
I would like to call a dialogs.alert() from inside the scenes update function like this:
def update(self):
if(self.started == True):
#Do something
if(gameOver):
print('Lost ')
dialogs.alert('Game Over','You Lost.','New Game ','Exit ','Cancel ',hide_cancel_button=True)
self.started = False
Now what happens is, the console statement prints out only once, while the dialog repeats itself (a new one is shown on every update call).
It would be great if somebody could tell me if this is a bug or if I am doing something wrong?