nklbdev / godot-4-aseprite-importers

The addon for Godot 4 that adds several plugins for importing images and animations from Aseprite
https://godotengine.org/asset-library/asset/1880
MIT License
73 stars 3 forks source link
animation aseprite aseprite-export godot godot-addon godot-engine godot-plugin godot4 godotengine

Godot 4 Aseprite Importers

en ru

This is a plugin for the Godot 4.x game engine that adds several import plugins for the Aseprite 1.3+ graphics pixel art editor files.

I highly recommend that you use the Importality plugin instead of this plugin. It is a rethinking and continuation of the initiatives I made in this repository.

Please read the documentation for importing files from Aseprite. And I highly recommend using RAM Drive for intermediate temporary files during the import process.

https://user-images.githubusercontent.com/7024016/236665418-fe8036b9-7de5-4608-a247-b35a7f97891b.mp4

💽 Installation

Simply download it from Godot Asset Library.

Alternatively download or clone this repository and copy the contents of the addons folder to your own project's addons folder.

Then:

👷‍♀️ How to use

After installing the plugin, the project will support .ase- and .aseprite-files.

  1. Place the Aseprite graphics files in the project
  2. Select one or more Aseprite graphics files in the project file system tree
  3. Select one of the import plugins in the import panel
  4. Set import preferences
  5. Optionally set a customized settings configuration for the selected import plugin as default
  6. Click the Reimport button

🛠 Import settings

🧱 Types of Imported Resources

🖼️ Texture

You can import your *.aseprite or *.ase files as regular textures from image files. Unfortunately you can not select layers or frames to render. It renders all visible layers from first animation frame.

🎞 SpriteFrames-based animations

📽 AnimationPlayer-based animations

Creates a PackedScene resources with an AnimationPlayer child node that animates it's owner. You can see AnimationPlayer node in the parent node if you check the Editable Children box in the context menu.

Animation strategies with AnimationPlayer:

For grid-based spritesheet layout:
For packed spritesheet layout:

🤖 In plans for the future:

Handle import error messages in the console

Some errors may appear in the console during the import process. Most of them are internal bugs in the Godot engine version 4.x, while it has not yet been fixed all the shortcomings.

If there will be error messages related directly to the import script - please create a ticket with their description and reproduction algorithm.

Add import settings