What problem does it solve?
This Skill helps you create and manipulate visual Sprite and Image objects in Phaser 4 without getting lost in the many component mixins and rendering-related APIs.
Core Features & Use Cases
- Sprite vs Image selection: Choose Image when you don’t need per-frame animation updates, and Sprite when you do.
- Texture, frames, and cropping: Switch textures/frames safely, and crop regions of the texture for focused visuals.
- Visual transformations: Control position, scale, rotation/angle, origin, depth ordering, flip, tint, and alpha in a consistent way.
- Component-mixin understanding: Use the correct method source (e.g., Alpha, Tint, Transform) to avoid confusion about where properties come from.
- Quick integration examples: Common object creation patterns using
this.add.image and this.add.sprite, including method chaining.
Quick Start
Create an Image or Sprite in your Scene and chain visual setup like texture, frame, scale, tint, alpha, origin, depth, and flip using methods supported by Phaser 4’s component mixins.