Jump to content

onTap not firing in phaser.min.js? (Phaser 2.4.6)


Recommended Posts

I ran into a strange problem: when using phaser.min.js, onTap doesn't seem to fire. It works with phaser.js though.  I'm using a very minimal example to test it:

var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { create: create });

function create() {
    game.input.onTap.add(function onTap(pointer) { console.log("tap")} , this);

I'm using the developer tools in Firefox and Chrome to see what's written to the console. When using paser.js I get all "tap" message, when using phaser.min.js I get nothing. Is this a bug or am I missing someting?

Link to comment
Share on other sites

  • 3 weeks later...

  • Recently Browsing   0 members

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