actions-and-utilities

Batch-apply Phaser Actions to arrays of Game Objects for layout and property updates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Batch-apply common Phaser Actions and utility functions to arrays of Game Objects to streamline management of positions, properties, and layouts.

Core Features & Use Cases

  • Batch position and alignment with GridAlign, IncX, IncY, SetXY, and related actions
  • Apply property updates such as x, y, alpha, rotation, tint, and visibility across object arrays
  • Work with Groups via getChildren() to batch-update multiple children

Quick Start

Use Phaser.Actions.GridAlign to arrange a collection of sprites in a grid, then apply a global alpha fade with Phaser.Actions.Spread.

Frequently Asked Questions about actions-and-utilities

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I batch update properties across multiple Phaser game objects?

Batch update Phaser game objects by applying actions to an array of objects to manipulate attributes like alpha, rotation, tint, and visibility. The process returns the input array and remains stateless.

Can I use Phaser Actions to arrange sprites in a grid layout?

Yes, you can use Phaser.Actions.GridAlign to arrange a collection of sprites in a grid layout. This batch action aligns multiple game objects into structured rows and columns quickly.

How do I apply batch actions to a Phaser Group?

Apply batch actions to a Phaser Group by passing its getChildren() array to the action function. This allows you to manipulate positions and properties across all children in the group simultaneously.

Does the batch action utility work with Phaser 4?

Yes, this batch action utility works with Phaser 4. It follows the Phaser Actions pattern to apply bulk property updates and layout manipulation to arrays of game objects.

What is the best way to fade alpha across multiple sprites in Phaser?

The best way to fade alpha across multiple sprites is to use Phaser.Actions.Spread. It batch-applies a global alpha fade across an array of game objects after you arrange them.

Why does my batch position update not affect the Phaser game objects?

Batch position updates using SetXY or IncX require a valid array of Phaser game objects. Ensure you pass the object array directly so the stateless action can manipulate and return it.