Giter Club home page Giter Club logo

alexandria's Introduction

Godot Aseprite Wizard

Godot plugin to help importing Aseprite animations as SpriteFrames.

This plugin uses Aseprite CLI to generate the spritesheet, and then converts it to SpriteFrames, that can be used in AnimatedSprite node.

Features

  • Creates SpriteFrames with Atlas Texture to be used in AnimatedSprites.
  • Separate each Aseprite Tag as its own animation. In case no tags are defined, import everything as default animation.
  • Converts Aseprite frame duration (defined in milliseconds) to Godot's animation FPS. This way you can create your animation with the right timing in Aseprite, and it should work the same way in Godot.
  • Choose to export Aseprite file as single SpriteFrames resource, or separate each layer as its own resource.
  • Filter out layers you don't want in the final animation, using regex.
  • Supports Aseprite animation direction (forward, reverse, ping-pong)

Check this video to see the plugin in action: https://www.youtube.com/watch?v=Yeqlce685E0

How to use

After activating the plugin, you can find it on Project -> Tools -> Aseprite Spritesheet Wizard menu.

Options:

Field Description
Aseprite File Location: *.aseprite or *.ase source file containing animations.
Output folder: Folder to save the output SpriteFrames resource(s).
Output filename / prefix Defines output filename. In case layers are split in multiple files, this is used as file prefix (e.g prefix_layer_name.res). If not set, source filename is used.
Exclude layers matching pattern: Do not export layers that match the pattern defined. i.e _draft$ excludes all layers ending with _draft. Uses Godot's Regex implementation
Split layers in multiple resource: If selected, each layer will be exported as a separated resource (e.g my_layer_1.res, layer_name_2.res, ...). If not selected, all layers will be merged and exported as a single resource file with same base name as source.
Only include visible layers If selected it only includes in the image file the layers visible in Aseprite. If not selected, all layers are exported, regardless of visibility.
Trim image Removes padding from sprites/layers/cels before saving them.

Instalation and Configuration

Follow Godot installing plugins guide .

This plugin requires Aseprite. It tries to use the aseprite command from your PATH. However, if you are using a portable version, the command is not in your PATH or you are running Aseprite on Windows, you can change the aseprite executable's path clicking on the configuration button, in the wizard screen.

Limitations

Non-looping animations

Aseprite does not have the concept of Loop / single run animations, as in Godot. Because of that, all animations are imported with Loop on. To disable it, you need to open the resource in the editor and uncheck the loop toggle.

Loops are useful for running, walking and idle cycles. Single run is usefull for death, attack and engage animations.

Import overwrite previous files

Currently, import overwrite previous imported files. Any modification in the previous file will be lost.

Known Issues

Spritesheet file not showing on File Sytem dock

Changing focus from Godot to another window, and then coming back, will trigger a re-import.

SpriteFrames dock showing outdated resource

Godot is using the cached resource. Open another SpriteFrame and then re-open the affected one. You should see the newest version.

Warnings in the output related with image file being imported

Those warnings are related on how I import the image file the first time. You'll probably see them when importing the same file twice. It does not affect the process.

alexandria's People

Contributors

purplemachinery avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.