Text#right

right : number The right coordinate of the Game Object.This is the same as x + width - offsetX. Inherited From Phaser.Component.Bounds#right Source code: gameobjects/components/Bounds.js (Line 124)

Text#revive()

revive(health) → {PIXI.DisplayObject} Brings a 'dead' Game Object back to life, optionally resetting its health value in the process. A resurrected Game Object has its alive, exists and visible properties all set to true. It will dispatch the onRevived event. Listen to events.onRevived for the signal. Parameters Name Type Argument Default Description health number <optional> 100 The health to give the Game Object. Only set if the GameObject has the Health component. Returns PI

Text#resolution

resolution : integer The resolution of the canvas the text is rendered to.This defaults to match the resolution of the renderer, but can be changed on a per Text object basis. Source code: gameobjects/Text.js (Line 1895)

Text#resizeFrame()

resizeFrame(parent, width, height) Resizes the Frame dimensions that the Game Object uses for rendering. You shouldn't normally need to ever call this, but in the case of special texture types such as Video or BitmapDatait can be useful to adjust the dimensions directly in this way. Parameters Name Type Description parent object The parent texture object that caused the resize, i.e. a Phaser.Video object. width integer The new width of the texture. height integer The new height of the

Text#resetFrame()

resetFrame() Resets the texture frame dimensions that the Game Object uses for rendering. Inherited From Phaser.Component.LoadTexture#resetFrame Source code: gameobjects/components/LoadTexture.js (Line 232)

Text#reset()

reset(x, y, health) → {PIXI.DisplayObject} Resets the Game Object. This moves the Game Object to the given x/y world coordinates and sets fresh, exists,visible and renderable to true. If this Game Object has the LifeSpan component it will also set alive to true and health to the given value. If this Game Object has a Physics Body it will reset the Body. Parameters Name Type Argument Default Description x number The x coordinate (in world space) to position the Game Object at. y number

Text#renderOrderID

[readonly] renderOrderID : number The render order ID is used internally by the renderer and Input Manager and should not be modified.This property is mostly used internally by the renderers, but is exposed for the use of plugins. Inherited From Phaser.Component.Core#renderOrderID Source code: gameobjects/components/Core.js (Line 240)

Text#removeChildren()

removeChildren(beginIndex, endIndex) Removes all children from this container that are within the begin and end indexes. Parameters Name Type Description beginIndex Number The beginning position. Default value is 0. endIndex Number The ending position. Default value is size of the container. Inherited From PIXI.DisplayObjectContainer#removeChildren Source code: pixi/display/DisplayObjectContainer.js (Line 213)

Text#removeChildAt()

removeChildAt(index) → {DisplayObject} Removes a child from the specified index position. Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 191)

Text#removeChild()

removeChild(child) → {DisplayObject} Removes a child from the container. Parameters Name Type Description child DisplayObject The DisplayObject to remove Returns DisplayObject - The child that was removed. Inherited From PIXI.DisplayObjectContainer#removeChild Source code: pixi/display/DisplayObjectContainer.js (Line 171)