sprites-and-images

Configure Phaser 4 Sprite and Image visuals with texture, frame, and component operations.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill sprites-and-images-wandertheweeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sprites-and-images
Source: https://github.com/WanderTheWeeb/papas_trauma/tree/main/skills/sprites-and-images
Command: npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill sprites-and-images-wandertheweeb

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Creating Phaser Sprite and Image visuals can be slow and error-prone when you need the right texture, frames, and common visual tweaks (position, scale, rotation, tint, flip, alpha, origin, depth) across game objects.

Core Features & Use Cases

  • Accurate Sprite vs Image selection: Use Sprite when you need animation updates, and Image when you want a lighter-weight static texture display.
  • Texture, frame, and cropping control: Switch textures and frames at runtime, and apply rectangular crops to display only parts of an atlas.
  • Common visual operations via components: Apply tint, alpha, flip, origin, depth, visibility, scroll factor, and blend mode through the component mixin system so method availability and behavior match Phaser 4 expectations.

Quick Start

Use the sprites-and-images skill to create a Sprite or Image in a Scene’s create() method and then chain visual configuration like texture/frame selection, position, scale, rotation, tint, alpha, origin, and depth for immediate on-screen results.

Frequently Asked Questions about sprites-and-images

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
When should I use a Phaser Sprite vs an Image?

Use a Phaser Sprite when you need animation updates, and use an Image for lighter-weight static texture display. Image skips animation processing, making it more efficient for static backdrops or fixed UI elements.

How do I configure Phaser 4 sprite visual properties like tint, alpha, and depth?

Configure Phaser 4 sprite visual properties by chaining component operations for Transform, Alpha, Tint, Flip, Origin, and Depth. These mixed-in components provide chaining-friendly APIs for immediate visual tuning in Scene code.

Can I switch textures and frames at runtime on a Phaser Sprite?

Yes, you can switch textures and frames at runtime on a Phaser Sprite. This skill handles texture management, allowing you to apply rectangular crops to display specific parts of an atlas during gameplay.

What is the component mixin system for rendering in Phaser 4?

The Phaser 4 component mixin system applies visual operations like tint, alpha, flip, origin, depth, and blend mode to game objects. It ensures method availability and behavior match rendering expectations.

How do I apply scroll factor and blend mode to UI elements in Phaser?

Apply scroll factor and blend mode to UI elements through the Phaser component mixin system. This integrates display ordering and visual behaviors consistently for UI elements and gameplay entities.