Button#getBounds()
  • References/Game Development/Phaser/Display/Button

getBounds(matrix) → {Rectangle} Returns the bounds of the Sprite as a rectangle.The bounds

2025-01-10 15:47:30
Button#destroy()
  • References/Game Development/Phaser/Display/Button

destroy(destroyChildren, destroyTexture) Destroys the Game Object. This

2025-01-10 15:47:30
Button#setSounds()
  • References/Game Development/Phaser/Display/Button

setSounds(overSound, overMarker, downSound, downMarker

2025-01-10 15:47:30
Button#left
  • References/Game Development/Phaser/Display/Button

left : number The left coordinate of the Game Object.This is the same as x - offsetX.

2025-01-10 15:47:30
Button#right
  • References/Game Development/Phaser/Display/Button

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX.

2025-01-10 15:47:30
Button#setOutSound()
  • References/Game Development/Phaser/Display/Button

setOutSound(sound, marker) The Sound to be played when a Pointer moves out of this Button.

2025-01-10 15:47:30
Button#Button
  • References/Game Development/Phaser/Display/Button

new Button(game, x, y, key, callback,

2025-01-10 15:47:30
Button#onOverMouseOnly
  • References/Game Development/Phaser/Display/Button

onOverMouseOnly : boolean If true then onOver events (such as onOverSound) will only be triggered if the Pointer object causing

2025-01-10 15:47:30
Button#data
  • References/Game Development/Phaser/Display/Button

data : Object An empty Object that belongs to this Game Object.This value isn't ever used internally by Phaser, but may be

2025-01-10 15:47:30
Button#onUpSoundMarker
  • References/Game Development/Phaser/Display/Button

[readonly] onUpSoundMarker : string The Sound Marker used in conjunction with the onUpSound

2025-01-10 15:47:30