edit_sprite
Edit a sprite's origin coordinates, collision mask type, and bounding box dimensions in a GameMaker project.
Instructions
Edit an existing sprite's origin, collision kind, and/or bounding box -- not its frame data
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xorigin | No | New origin X coordinate in pixels (also sets the origin preset to Custom) | |
| yorigin | No | New origin Y coordinate in pixels (also sets the origin preset to Custom) | |
| bboxMode | No | New bounding box mode (0=Automatic, 1=Full Image, 2=Manual) | |
| bbox_top | No | New bounding box top edge (used when bboxMode=2) | |
| bbox_left | No | New bounding box left edge (used when bboxMode=2) | |
| bbox_right | No | New bounding box right edge (used when bboxMode=2) | |
| projectDir | Yes | Absolute path to the GameMaker project directory | |
| spriteName | Yes | Name of the existing sprite to edit | |
| bbox_bottom | No | New bounding box bottom edge (used when bboxMode=2) | |
| collisionKind | No | New collision mask kind (0=Precise, 1=Rectangle, 2=Ellipse, 3=Diamond, ...) |