kvasir Posted January 17, 2018 Share Posted January 17, 2018 I did a function resize to resize the game follow the size of the screen and at the end of this function I do : game.scale.refresh(); But I would like to catch the event of this function like this : var scaleRefresh = game.scale.refresh(); scaleRefresh.onComplete.add(function(){ //DO stuff }); But it's not work how can I do this? Link to comment Share on other sites More sharing options...
samme Posted January 18, 2018 Share Posted January 18, 2018 https://photonstorm.github.io/phaser-ce/Phaser.ScaleManager.html#onSizeChange Link to comment Share on other sites More sharing options...
Recommended Posts