actions-and-utilities

Apply Phaser.Actions and Phaser.Utils to batch-process Game Objects.

1|Updated May 3, 2026
One-click install
npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill actions-and-utilities-wandertheweeb
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: actions-and-utilities
Source: https://github.com/WanderTheWeeb/papas_trauma/tree/main/skills/actions-and-utilities
Command: npx skills add https://github.com/WanderTheWeeb/papas_trauma --skill actions-and-utilities-wandertheweeb

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you position, align, and transform Phaser 4 Game Objects in bulk without writing repetitive loops, by using Phaser.Actions and Phaser.Utils helpers as a consistent batch-processing toolkit.

Core Features & Use Cases

  • Batch operations with a consistent Actions pattern: apply property setters, increments, alignment, distribution, and placement to arrays of Game Objects (or group children via getChildren()).
  • Geometry-based placement and layout: arrange items on circles/ellipses/lines/rectangles using Phaser.Geom shapes (e.g., PlaceOnCircle, GridAlign, RandomRectangle).
  • Utility support for safer config handling: use Phaser.Utils.Array, Phaser.Utils.Objects, and Phaser.Utils.String for common iteration, property access (GetValue/GetFastValue), and data shaping.

Quick Start

Use this skill to batch-position and stagger a set of sprites into a grid, then spread a visual property like alpha across all of them.

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 without writing a loop?

To arrange Phaser game objects in a grid, use batch processing helpers like GridAlign on an array of objects. This applies property setters and alignment directly to the array, positioning items systematically without manual loops.

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

Placing multiple sprites on a circle in Phaser uses geometry-based batch placement. By passing a Phaser.Geom circle shape to the placement function, it distributes the sprite array evenly along the circle's perimeter.

Can I spread and smooth visual properties like alpha across a group of objects?

You can spread and smooth visual properties like alpha across a group using batch operations. The actions pattern applies property spreading and increments across the array of game objects in a single deterministic update.

Does Phaser.Actions work with plain arrays or only Group children?

Phaser.Actions works with plain arrays of game objects, typically derived from group.getChildren(). You can process any standard array of objects as long as it satisfies the action interface expectations for one-shot updates.

When should I use Phaser.Utils for my game configuration?

Use Phaser.Utils for safer config handling when preparing or transforming groups of items. It provides array, object, and string utilities for iteration and property access like GetValue, ensuring safer data shaping.

Are there limitations to using batch operations for object placement in Phaser?

Batch operations for object placement require Phaser.Geom inputs for geometry placement and operate on arrays as one-shot deterministic updates. They are designed for bulk preparation rather than continuous per-frame dynamic transformations.