Hi everybody
I want to do this :
var graphics = this.add.graphics();
graphics.fillGradientStyle(0xffff00, 0xffff00, 0xff0000, 0xff0000, 1);
graphics.fillRect(0, 700, game.config.width, 400);
graphics.setInteractive().on('pointerdown', function(pointer, localX, localY, event){
alert('e');
});
But even if i touch with the cursor my rectangle, prrrrrrrt, he doesn’t care…
what i miss please ?
thx guys !