Uncaught TypeError: Cannot read property 'add' of null phaser

Uncaught TypeError: Cannot read property 'add' of null phaser

下面是我的代码的简化版本,其中出现了菜单。当我点击播放按钮时,我一直收到 error.It 的消息:

Uncaught TypeError: Cannot read property 'add' of null

我知道那是当我检查 sprite play 是否被 bieng clicked 但无法找出问题时。

图片如下:

JsFiddle Format

  preload: function() {
                game.load.image('background', 'http://s1.postimg.org/nqynk9tkv/starfield.png')
                game.load.image('play-back', 'http://icon-park.com/imagefiles/movie_play_black.png');

            },
            create: function() {
                this.backgroundImg = this.game.add.tileSprite(0, 0, 500, 550, 'background')

                this.gameText = game.add.text(game.world.centerX-190, game.world.centerY - 150, "Space Invaders", {
            font: "60px Times New Roman",
            fill: "#ccccb3",
            fontWeight: "bold",
            stroke: "white",
            strokeThickness: 2.5
        });

 /*       // this.gameText.anchor.setTo(0.5)
        this.gameText.angle =
*/
        play = game.add.sprite(120,280,'play-back')
        play.scale.setTo(0.5);
         game.physics.arcade.enable(play);
        play.events.onInputDown.add(this.start, this);

            },
            update: function() {
                this.backgroundImg.tilePosition.y += 5;


            },
            render: function() {

            },
            start: function() {

                game.start.main('main')
            }

        };

来自移相器文档:"The Input-related events will only be dispatched if the Sprite has had inputEnabled set to true"