Jump to content

input works on desktop browser but crashes mobile browser


playh5
 Share

Recommended Posts

Hi I have this code that works on desktop browser but is crashing the mobile browsers

create:function(){   this.game.input.addPointer();   this.playBtn = this.game.add.sprite(this.game.world.centerX,400,'playBtn');   this.playBtn.anchor.setTo(0.5,0.5);   this.playBtn.inputEnabled = true;   this.playBtn.events.onInputDown.add(this.gotoGame,this);		},gotoGame:function(gotoGame,pointer){   console.log('go to game');   this.game.state.start('game');}

please point my mistakes. Thanks in advance.

Link to comment
Share on other sites

  • 3 weeks later...
 Share

  • Recently Browsing   0 members

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