actions-and-utilities

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

Updated Sep 20, 2026
One-click install
npx skills add https://github.com/AmirOssanloo/helix-game --skill actions-and-utilities-amirossanloo
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: actions-and-utilities
Source: https://github.com/AmirOssanloo/helix-game/tree/main/.claude/skills/actions-and-utilities
Command: npx skills add https://github.com/AmirOssanloo/helix-game --skill actions-and-utilities-amirossanloo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Working with groups of Phaser 4 game objects often requires repetitive per-object loops for positioning, scaling, tinting, or alignment. This Skill provides the complete Phaser.Actions namespace plus Phaser.Utils.Array, Objects, and String helpers so batch operations are applied correctly in one call. ## Core Features & Use Cases - Batch Property Operations: Set, increment, spread, or interpolate properties like x, y, alpha, scale, and rotation across entire arrays of game objects with optional per-item step values. - Geometry-Based Placement: Position objects on circles, lines, rectangles, ellipses, and triangles, or arrange them into grids with GridAlign. - 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. - 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 Use the actions-and-utilities skill to arrange my Phaser sprite group into a grid and stagger their alpha values.

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 like SetX, SetAlpha, or Rotate with group.getChildren() as the first argument. Actions operate on plain arrays, not Group instances directly, and return the same array for chaining.

Can Phaser Actions work with Phaser.GameObjects.Circle shapes?▼

Placement actions like PlaceOnCircle and RandomCircle require Phaser.Geom objects, not Game Object shapes. If you have a Phaser.GameObjects.Circle, pass its .geom property to the action instead.

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 since it skips dot-path parsing and runs faster.

Why does Phaser Spread place a single item at the midpoint?▼

Spread linearly distributes a property from min to max across all items, so with one item it lands at (min + max) / 2 rather than min. This is expected interpolation behavior, not a bug.