sprites-and-images

Create and manipulate Phaser 4 Sprite and Image objects with textures, positions, and visual properties.

3|Updated Apr 18, 2026
One-click install
npx skills add https://github.com/Autinhorse/levelcraft --skill sprites-and-images-autinhorse
Or copy as Structured Prompt for Agentâ–¼
Please help me install this Agent Skill.
Skill: sprites-and-images
Source: https://github.com/Autinhorse/levelcraft/tree/main/games/docs/phaser-skills/sprites-and-images
Command: npx skills add https://github.com/Autinhorse/levelcraft --skill sprites-and-images-autinhorse

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the process of creating and manipulating Sprite and Image objects in Phaser 4, enabling developers to efficiently set textures, positions, visual styles, and rendering properties.

Core Features & Use Cases

  • Object Creation: Instantiate sprites and images with specific textures and frames.
  • Visual Customization: Adjust position, scale, rotation, tint, alpha, flip, origin, and depth for game objects.
  • Animation Support: Use sprites with animation states for dynamic visuals in scenes.
  • Use Case: Develop a 2D platformer where characters, backgrounds, and items require precise positioning and visual effects.

Quick Start

Use this skill to create a sprite at position (100, 200) with the texture 'player', then set its scale to 2 and apply a red tint.

Frequently Asked Questions about sprites-and-images

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

FAQPage Schema
How do I create and customize game sprites in Phaser 4?â–¼

Use this skill to instantiate Phaser 4 Sprite and Image objects with specific textures, then customize their position, scale, rotation, tint, alpha, flip, origin, and depth for precise visual rendering.

What is the difference between Sprite and Image objects for 2D game development?â–¼

Sprite objects support animation states for dynamic visuals, while Image objects provide lightweight texture rendering. Both enable texture assignment, positioning, and visual property adjustments for 2D game development.

Can I control rendering order and depth for 2D graphics in Phaser?â–¼

Yes, Phaser 4 allows rendering order control by adjusting the depth property of Sprite and Image objects, enabling precise layering of characters, environments, and items within 2D game scenes.

Do I need familiarity with Phaser game object components to use this skill?â–¼

Yes, effective use requires familiarity with Phaser game object components to properly leverage texture assignment, visual property adjustments, and rendering order control for character and environment rendering.

How do I apply visual effects like tint and alpha to Phaser sprites?â–¼

Apply visual effects to Phaser sprites by adjusting their tint and alpha properties during or after creation. You can also modify flip, origin, scale, and rotation to achieve customized object appearances.

How to set up a 2D platformer scene with character and background sprites in Phaser?â–¼

Develop a 2D platformer by instantiating character, background, and item sprites with specific textures. Precisely position them and apply visual effects or animation states to create dynamic scene rendering.