lpbr Posted March 14, 2018 Share Posted March 14, 2018 Maybe it's a silly question. I am applying alpha to an image and in the line immediately after I alert a message on screen. The problem is that the alpha is being shown up only after the alert popup be closed. There is a method that I can invoke to force screen to update BEFORE the alert? Thanks! Link to comment Share on other sites More sharing options...
samme Posted March 15, 2018 Share Posted March 15, 2018 It's because alert is run immediately but render runs only after update is finished. You can do something like game.time.events.add(1, function () { alert(/*…*/); }); Link to comment Share on other sites More sharing options...
Recommended Posts