Component.ScaleMinMax#setScaleMinMax()

setScaleMinMax(minX, minY, maxX, maxY) Sets the scaleMin and scaleMax values. These values are used to limit how far this Game Object will scale based on its parent. For example if this Game Object has a minScale value of 1 and its parent has a scale value of 0.5, the 0.5 will be ignoredand the scale value of 1 will be used, as the parents scale is lower than the minimum scale this Game Object should adhere to. By setting these values you can carefully control how Game Objects deal with respo

Component.ScaleMinMax#ScaleMinMax

new ScaleMinMax() The ScaleMinMax component allows a Game Object to limit how far it can be scaled by its parent. Source code: gameobjects/components/ScaleMinMax.js (Line 12)

Component.ScaleMinMax#scaleMin

scaleMin : Phaser.Point The minimum scale this Game Object will scale down to. It allows you to prevent a parent from scaling this Game Object lower than the given value. Set it to null to remove the limit. Source code: gameobjects/components/ScaleMinMax.js (Line 36)

Component.ScaleMinMax#scaleMax

scaleMax : Phaser.Point The maximum scale this Game Object will scale up to. It allows you to prevent a parent from scaling this Game Object higher than the given value. Set it to null to remove the limit. Source code: gameobjects/components/ScaleMinMax.js (Line 46)

Component.Reset#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

Component.PhysicsBody.preUpdate()

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

Component.PhysicsBody.postUpdate()

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

Component.PhysicsBody#y

y : number The position of the Game Object on the y axis relative to the local coordinates of the parent. Source code: gameobjects/components/PhysicsBody.js (Line 124)

Component.PhysicsBody#x

x : number The position of the Game Object on the x axis relative to the local coordinates of the parent. Source code: gameobjects/components/PhysicsBody.js (Line 98)

Component.PhysicsBody#PhysicsBody

new PhysicsBody() The PhysicsBody component manages the Game Objects physics body and physics enabling.It also overrides the x and y properties, ensuring that any manual adjustment of them is reflected in the physics body itself. Source code: gameobjects/components/PhysicsBody.js (Line 13)