button(x, y, key, callback, callbackContext, overFrame, outFrame, downFrame, upFrame, group) → {Phaser.Button}
Creates a new Button object.
Parameters
Name Type Argument Default Description x number <optional> 0 The x coordinate of the Button. The coordinate is relative to any parent container this button may be in. y number <optional> 0 The y coordinate of the Button. The coordinate is relative to any parent container this button may be in. key string <optional&g