MCPcopy
hub / github.com/phaserjs/phaser / setScrollFactor

Method setScrollFactor

types/phaser.d.ts:19894–19894  ·  view source on GitHub ↗

* Sets the horizontal and vertical scroll factor of this Game Object. If only the `x` value is * provided, it is applied to both axes. This is a convenience method for setting `scrollFactorX` * and `scrollFactorY` in a single call. *

(x: number, y?: number)

Source from the content-addressed store, hash-verified

19892 * @returns This Game Object instance.
19893 */
19894 setScrollFactor(x: number, y?: number): this;
19895 }
19896
19897 /**

Callers 8

BuildGameObjectFunction · 0.80
ContainerWebGLRendererFunction · 0.80
ContainerCanvasRendererFunction · 0.80
Light.jsFile · 0.80
InputPlugin.jsFile · 0.80
createMethod · 0.80
createMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected