actions-and-utilities

Applies Phaser 4 Actions and utility functions for batch operations on game object arrays.

Updated Jul 13, 2026
One-click install
npx skills add https://github.com/russellmorgan/UnderConstruction --skill actions-and-utilities-russellmorgan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: actions-and-utilities
Source: https://github.com/russellmorgan/UnderConstruction/tree/main/.claude/skills/actions-and-utilities
Command: npx skills add https://github.com/russellmorgan/UnderConstruction --skill actions-and-utilities-russellmorgan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Positioning, styling, and transforming dozens of game objects one by one in Phaser 4 is repetitive and error-prone. This Skill provides a complete reference for the Phaser.Actions namespace and Phaser.Utils helpers so you can perform batch operations on arrays of game objects in a single call. ## Core Features & Use Cases - Batch Property Operations: Set or increment x, y, alpha, scale, rotation, tint, and depth across entire arrays with optional per-item step values. - Geometry-Based Placement: Arrange objects on circles, lines, rectangles, triangles, and ellipses, or scatter them randomly within shapes, plus grid alignment via GridAlign. - Utility Namespaces: Use Phaser.Utils.Array for shuffling, sorting, and range generation, Phaser.Utils.Objects for dot-path config lookups, and Phaser.Utils.String for formatting and UUIDs. - Use Case: Spawn 20 gem sprites, arrange them into a 5x4 grid with GridAlign, fade their alpha from 0 to 1 with Spread, and stagger their x positions with IncX — all without writing loops. ## Quick Start Ask the AI to arrange a group of Phaser sprites into a grid and spread their alpha values using Phaser.Actions.

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?▼

Use Phaser.Actions.GridAlign with a config object specifying width, height, cellWidth, cellHeight, x, and y. Pass an array of game objects or group.getChildren() as the first argument, and all items are positioned into the grid in one call.

How to set properties on multiple Phaser sprites at once?▼

Use Phaser.Actions property setters like SetX, SetAlpha, SetScale, or the generic PropertyValueSet. Each takes an array of objects, a value, and an optional step that adds an incremental offset per item, and returns the same array for chaining.

Can Phaser.Actions work directly on Groups?▼

Phaser.Actions operate on plain arrays, not Group objects directly. Call group.getChildren() to obtain the array of children, then pass it to any Action such as GridAlign, Spread, or PlaceOnCircle.

Why does PlaceOnCircle fail with a Phaser GameObjects.Circle?▼

Placement actions require Phaser.Geom geometry objects, not Game Object shapes. When using a Phaser.GameObjects.Circle, pass its .geom property instead so the action receives the underlying Phaser.Geom.Circle.

What is the difference between GetValue and GetFastValue in Phaser?▼

GetValue supports dot-path lookups like 'render.screen.width' with fallback sources, while GetFastValue only reads top-level keys. Use GetFastValue in hot loops when keys contain no dots, since it skips dot-path parsing and runs faster.