actions-and-utilities

Applies Phaser.Actions batch operations and Phaser.Utils helpers to arrays of game objects.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Positioning, transforming, and querying dozens of game objects one by one in Phaser is repetitive and error-prone. This Skill provides the complete Phaser.Actions namespace plus Phaser.Utils.Array, Objects, and String helpers so batch operations on game object arrays are done correctly in one call. ## Core Features & Use Cases - Batch Property Operations: Set, increment, spread, or interpolate x, y, alpha, scale, rotation, tint, and depth across entire arrays of game objects with optional per-item step values. - Geometry Placement and Layout: Place objects on circles, lines, rectangles, and triangles, scatter them randomly, or arrange them with GridAlign and AlignTo. - Utility Functions: 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 enemy sprites, arrange them in a 5x4 grid with GridAlign, fade their alpha from 0 to 1 with Spread, and keep them wrapped inside the play area with WrapInRectangle. ## Quick Start Ask the AI to arrange a group of Phaser sprites into a grid 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, 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 apply the same property change to all objects in a Phaser group?

Call a Phaser.Actions function such as SetAlpha, SetScale, or IncX with group.getChildren() as the first argument. Actions operate on plain arrays, not Group instances directly, and return the same array for chaining.

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 reads top-level keys. Use GetFastValue in hot loops since it skips dot-path parsing and runs faster.

Why does PlaceOnCircle fail with a Phaser GameObjects Circle?

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

Does Phaser.Actions Shuffle modify the original array?

Yes, both Phaser.Actions.Shuffle and Phaser.Utils.Array.Shuffle perform an in-place Fisher-Yates shuffle and return the same array. Clone the array first if you need to preserve the original order.