Jump to content

Phaser + CocoonJs Android Back Button


mown
 Share

Recommended Posts

Hello Everybody

 

am trying to write my own code on Android back button , but am facing a problem

here is my code :

 
create: function () {
        Cocoon.App.exitCallback(function () {
            alert('hello');
            game.state.start('intro');
            return false;
        });
}
 
the alert is showing but after that i receive the following error
post-11072-0-77874100-1418609664_thumb.p
 
 
thanks a lot guys.
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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