* change the current texture atlas region for this sprite * @see Texture.getRegion * @param {object} region - typically returned through me.Texture.getRegion() * @returns {Sprite} Reference to this object for method chaining * @example * // change the sprite to "shadedDark13.png"; * mySp
(region)
| 612 | * mySprite.setRegion(mytexture.getRegion("shadedDark13.png")); |
| 613 | */ |
| 614 | setRegion(region) { |
| 615 | this._frameAnim.setRegion(region); |
| 616 | return this; |
| 617 | } |
| 618 | |
| 619 | /** |
| 620 | * Apply the current frame's texture region to this sprite's geometry: swap |
no outgoing calls
no test coverage detected