This is a crude approximation of a tool to generate .tres animation files for Godot's AnimatedSprite.
- Create a folder "input"
- Add subfolders that signify the names of the animations, e.g.:
input/walk
,input/run
- Add the animation sprites in the subfolders in the following format: d_nnn, d being an integer that represents the orientation of the sprite and n the number of the sprite frame. E.g.:
input/deployed/0_001.png
for direction0
and frame001
. - Set up the base of the Godot path in
params.json
. The sprite will be expected to be located ingodotResPath\*animationName*\*frameName*.png
- Run an npm i
npm start
Enjoy the .tres
in your output directory :)