actions-and-utilities

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

Updated Jun 10, 2026
One-click install
npx skills add https://github.com/mudman1986/quarterless --skill actions-and-utilities-mudman1986
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: actions-and-utilities
Source: https://github.com/mudman1986/quarterless/tree/main/.github/skills/actions-and-utilities
Command: npx skills add https://github.com/mudman1986/quarterless --skill actions-and-utilities-mudman1986

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Positioning, styling, and transforming dozens of Phaser game objects one by one leads to repetitive loop code and subtle bugs. This Skill provides the complete Phaser.Actions namespace plus Phaser.Utils.Array, Objects, and String helpers so batch operations on game object arrays are handled with single, well-documented calls. ## Core Features & Use Cases - Batch Property Operations: Set, increment, spread, or interpolate properties like x, y, alpha, scale, rotation, and tint across entire arrays of game objects with optional per-item step values. - Geometry-Based Placement: Arrange sprites on circles, ellipses, lines, rectangles, and triangles, or scatter them randomly within geometric bounds, plus grid alignment via GridAlign. - Utility Helpers: Use Phaser.Utils.Array for shuffling, sorting, and range generation, Phaser.Utils.Objects for dot-path config lookups with GetValue/GetFastValue, and Phaser.Utils.String for formatting and UUIDs. - Use Case: When building a wave of 20 enemy sprites, use GridAlign to lay them out in formation, Spread to fade their alpha from 0 to 1, and IncX with a step value to stagger their movement offsets. ## Quick Start Ask the AI to arrange a group of Phaser sprites into a grid layout and stagger 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 sprites in a grid layout?

Use Phaser.Actions.GridAlign with a config object specifying width, height, cellWidth, cellHeight, and x/y origin. 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 game objects 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 parameter that adds an incremental offset per item index.

Can Phaser.Actions work directly on Groups?

Actions operate on plain arrays, not Group instances. Call group.getChildren() to obtain the underlying array of game objects, then pass that array to any Action such as GridAlign, Spread, or PlaceOnCircle.

Why does PlaceOnCircle fail with a Phaser Game Objects Circle?

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

What is the difference between GetValue and GetFastValue in Phaser?

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