care.anim.system.import
Function
Imports all animations from a json/png file pair
TODO: Explain the json format!
Syntax
Arguments
| Name | Type | Description |
|---|---|---|
image_path |
string | Path to the image file that contains the frames of one or more animations. |
reg_path |
string | Path to the json file that describes the animations. |
speed |
number | Playback speed of the animations, measured in seconds per frame. |
scale |
number | (Optional) Scaling factor applied the imported animation frames. (Useful for upscaling pixel art.) Defaults to 1 (i.e. real-size). |
Returns
Nothing.