What problem does it solve?
Grid movement in tile-based games can be error-prone without strict grid snapping, input locking during moves, and pre-move collision checks. This Skill provides a pattern to keep entities aligned to tile boundaries, block movement while an animation plays, and verify destination tiles before stepping.
Core Features & Use Cases
- Grid snapping: keep entities aligned to a fixed tile grid to ensure consistent movement.
- One-tile steps with input lock: a single directional input moves the entity by one tile, then playback completes before accepting new input.
- Pre-move collision checks: validate target tiles against a collision map to prevent moving into blocked tiles.
Quick Start
Implement grid-based movement by snapping spawn positions to the tile grid, processing directional input to compute a target tile, validating the target tile, then performing a tween to that tile and snapping precisely on completion.