add_sprite_from_images
Import PNG frames from a folder to create a new sprite and register it in a GameMaker project.
Instructions
Import frames from a directory into a new sprite and register it in the project
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"projectDir": "<projectDir>",
"spriteName": "<spriteName>",
"framesDir": "<framesDir>"
},
"name": "add_sprite_from_images"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| framesDir | Yes | Directory containing PNG frames | |
| projectDir | Yes | Absolute path to the GameMaker project directory | |
| spriteName | Yes | Name of the sprite to create |