Component.InCamera#InCamera

new InCamera() The InCamera component checks if the Game Object intersects with the Game Camera. Source code: gameobjects/components/InCamera.js (Line 12)

Component.Health#setHealth

setHealth Sets the health property of the Game Object to the given amount.Will never exceed the maxHealth value. Source code: gameobjects/components/Health.js (Line 70)

Component.Health#maxHealth

maxHealth : number The Game Objects maximum health value. This works in combination with the heal method to ensurethe health value never exceeds the maximum. Default Value 100 Source code: gameobjects/components/Health.js (Line 35)

Component.Health#Health

new Health() The Health component provides the ability for Game Objects to have a health propertythat can be damaged and reset through game code.Requires the LifeSpan component. Source code: gameobjects/components/Health.js (Line 14)

Component.Health#heal

heal Heal the Game Object. This adds the given amount of health to the health property. Source code: gameobjects/components/Health.js (Line 90)

Component.Health#damage

damage Damages the Game Object. This removes the given amount of health from the health property. If health is taken below or is equal to zero then the kill method is called. Source code: gameobjects/components/Health.js (Line 46)

Component.FixedToCamera.postUpdate()

<static> postUpdate() The FixedToCamera component postUpdate handler.Called automatically by the Game Object. Source code: gameobjects/components/FixedToCamera.js (Line 21)

Component.FixedToCamera#FixedToCamera

new FixedToCamera() The FixedToCamera component enables a Game Object to be rendered relative to the game camera coordinates, regardlessof where in the world the camera is. This is used for things like sticking game UI to the camera that scrolls as it moves around the world. Source code: gameobjects/components/FixedToCamera.js (Line 13)

Component.FixedToCamera#cameraOffset

cameraOffset : Phaser.Point The x/y coordinate offset applied to the top-left of the camera that this Game Object will be drawn at if fixedToCamera is true. The values are relative to the top-left of the camera view and in addition to any parent of the Game Object on the display list. Source code: gameobjects/components/FixedToCamera.js (Line 86)

Component.Destroy#destroyPhase

[readonly] destroyPhase : boolean As a Game Object runs through its destroy method this flag is set to true,and can be checked in any sub-systems or plugins it is being destroyed from. Source code: gameobjects/components/Destroy.js (Line 22)