Jump to content

Search the Community

Showing results for tags 'Uncaught Error'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hello there, I was trying to switch states for my game with buttons. It was working for a moment and then now it throw me this error after I return Uncaught Error: Phaser.Signal: listener is a required param of add() and should be a Function. I looked into this link but it doesn't seem to fix despite try to call it differently Can anyone help me with this? RENAME_ME.MainMenu = function (game) {};var text;var counter = 0;RENAME_ME.MainMenu.prototype = {create: function () {this.game.stage.backgroundColor = '#cb191f';text = this.game.add.text(250, 16, '', {fill: '#fff'});var btn_startGame = this.game.add.button(this.game.world.centerX, this.game.world.centerY, 'cwa', this.toStartGame, this);btn_startGame.anchor.set(0.5);var btn_leaderboard = this.game.add.button(this.game.world.centerX, this.game.world.centerY + 100, 'cwa', this.toLeaderboard, this);btn_leaderboard.anchor.set(0.5);},update: function(){},toStartGame: function(){this.game.state.start("Game");},toLeaderboard: function(){this.game.state.start('Score');}};
×
×
  • Create New...