[Phaser] 5. Button

Add a button

game.add.button(x,y,imageKey,clickFunction,this,over_frame,normal_frame,down_frame)

Sprite click

this.char1.events.onInputUp.add(this.clickHandler,scope);

##

Enable a sprite for input

this.spriteName.inputEnabled=true;

Canvas click

game.input.onUp.add(functionName, this);