actions-and-utilities

Apply Phaser GridAlign, Spread, and geometry-based placement to arrays of Game Objects.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill actions-and-utilities
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: actions-and-utilities
Source: https://github.com/Raphe-dev/phaser-cozy-mmo/tree/main/skills/actions-and-utilities
Command: npx skills add https://github.com/Raphe-dev/phaser-cozy-mmo --skill actions-and-utilities

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates batch operations on groups of Phaser Game Objects, reducing repetitive code and enabling consistent transformations.

Core Features & Use Cases

  • Batch operations on arrays of Game Objects (e.g., GridAlign, Spread, IncX)
  • Easy integration with Phaser.Utils helpers and support for Groups
  • Use Case: apply a staggered position or alpha across a collection of sprites, or arrange objects in a grid
  • Works with Phaser geometry-based placement functions like PlaceOnCircle and PlaceOnLine

Quick Start

Position 20 sprites in a 5x4 grid and stagger their alpha across the collection.

Frequently Asked Questions about actions-and-utilities

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

FAQPage Schema
How do I arrange Phaser game objects in a grid layout?

Batch Phaser 4 grid alignment organizes arrays of game objects into structured rows and columns automatically, returning the modified input array for immediate rendering without manual coordinate calculations.

Can I stagger property values like alpha across multiple sprites in Phaser?

Yes, staggered value updates distribute incremental property changes like alpha or position across Phaser sprite collections automatically, ensuring smooth transitions without manual loop calculations.

What is the best way to place Phaser sprites on a circle?

PlaceOnCircle geometry-based placement distributes arrays of Phaser game objects evenly along circular paths automatically, returning the positioned input array for immediate rendering without manual trigonometric calculations.

Does this batch action approach work with Phaser Groups?

Yes, stateless one-shot actions process both Phaser Groups and raw game object arrays uniformly, returning the modified input collection for immediate rendering without state management overhead.

How do I increment the X position of an array of Phaser game objects?

IncX batch action offsets horizontal coordinates across arrays of Phaser game objects automatically, returning the repositioned input collection for immediate rendering without manual iteration loops.