Jump to content

how to catch the game.scale.refresh end event


kvasir
 Share

Recommended Posts

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

 Share

  • Recently Browsing   0 members

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