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

Method setFrame

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

* Sets the frame this Game Object will use to render with. * * If you pass a string or index then the Frame has to belong to the current Texture being used * by this Game Object. * * If you pass a Frame instance,

(frame: string | number | Phaser.Textures.Frame, updateSize?: boolean, updateOrigin?: boolean)

Source from the content-addressed store, hash-verified

20145 * @returns This Game Object instance.
20146 */
20147 setFrame(frame: string | number | Phaser.Textures.Frame, updateSize?: boolean, updateOrigin?: boolean): this;
20148 }
20149
20150 /**

Callers 6

Bob.jsFile · 0.65
TextureCrop.jsFile · 0.65
Texture.jsFile · 0.65
Bob.test.jsFile · 0.65
Texture.test.jsFile · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected