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.
godot_aseprite_importers_preview.mp4
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:
- Go to Project Settings
- Switch to the Plugins tab
- Enable the plugin
- Switch to the General tab
- Turn on Advanced Settings toggle
- Scroll down the settings tree and select Aseprite Importers section
- Specify the path to Aseprite executable file
After installing the plugin, the project will support .ase
- and .aseprite
-files.
- Place the Aseprite graphics files in the project
- Select one or more Aseprite graphics files in the project file system tree
- Select one of the import plugins in the import panel
- Set import preferences
- Optionally set a customized settings configuration for the selected import plugin as default
- Click the
Reimport
button
Spritesheet
- spritesheet import settings groupEmbed Image
(not implemented yet) - include the resulting image in a resource or place it next to the source fileLayout
- spritesheet layout typePacked
all the sprites trimmed and compactly arranged in the spritesheetBy Rows
(with theFixed Columns Count
parameter) - all the sprites have similar size and layed out by rows with fixed lengthBy Columns
(with theFixed Columns Count
parameter) - all the sprites have similar size and layed out by columns with fixed height
Border Type
- the type of the border around each spriteNone
- does not create border around spritesTransparent
- creates a 1 pixel wide transparent border around each spriteExtruded
- creates a 1 pixel wide border, duplicating the colors of adjacent sprite pixels, around each sprite
Trim
- (only for grid-based layouts) - reduces all sprite cells equally so that the animation fits into the new cell sizeIgnore Empty
- does not include sprites in the spritesheet image, on which all pixels are transparentMerge Duplicates
- merges the same sprites into the same areas on the spritesheet image
Animation
- animation settings groupDefault
- settings for the default animation (if there are no tags available in the Aseprite graphics file)Name
- the name for the default animationDirection
- default animation directionForward
- animation plays from the first to the last frameReverse
- animation plays from the first to the last framePing-pong
- the animation plays from the first to the last frame, and then back to the first, without duplicating the last framePing-pong reverse
- the animation plays from the last to the first frame, and then back to the last, without duplicating the first frame
Repeat Count
- number of repetitions. Edge frames are not duplicated when animation changes direction
Autoplay
- the name of the animation that will be marked as starting automaticallyStrategy...
(only for animations based onAnimationPlayer
) - set of node properties that the AnimationPlayer will use to animate
Layers
(not implemented yet) - Aseprite layers settings groupInclude Reg Ex
(not implemented yet) - Regular expression for white list of included layersExclude Reg Ex
(not implemented yet) - Regular expression for blacklist of included layers
Tags
(not implemented yet) - Aseprite tags settings groupInclude Reg Ex
(not implemented yet) - Regular expression for white list of included tagsExclude Reg Ex
(not implemented yet) - Regular expression for blacklist of included tags
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
- creates aSpriteFrames
resource for further use in animated spritesAnimatedSprite2D
- creates ready-to-use animated sprite for 2D scenesAnimatedSprite3D
- creates ready-to-use animated sprite for 3D scenes
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.
Sprite2D
- creates aPackedScene
resource withSprite2D
node and childAnimationPlayer
nodeSprite3D
- creates aPackedScene
resource withSprite3D
node and childAnimationPlayer
nodeTextureRect
- creates aPackedScene
resource withTextureRect
node and childAnimationPlayer
node
Animate sprite's region
- animates theregion
property of the spriteAnimate sprite's frame index
- animates theframe
property of the spriteAnimate sprite's frame coords
- animates theframe_coords
property of the spriteAnimate single atlas texture's region
- animates theregion
property of the atlas texture of the spriteAnimate multiple atlas texture instances
- instantiates anAtlasTexture
per unique frame and animates thetexture
property of the sprite
Animate sprite's region and offset
- animates theregion
andoffset
properties of the spriteAnimate single atlas texture's region and margin
- animates theregion
andmargin
properties of theAtlasTexture
in thetexture
property of the spriteAnimate multiple atlas texture instances
- instantiates anAtlasTexture
per unique frame and animates thetexture
property of the sprite
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.
- Checkbox to embed image in resource
Spritesheet/Embed Image: bool
- Regular expressions for
Layers/Include
,Layers/Exclude
,Tags/Exclude
andTags/Exclude
- Import regular texture resources (
TileSetAtlasSource
,ImageTexture
,CompressedTexture
,PortableCompressedTexture
andAtlasTexture
) - Regular sprites (
Sprite2D
andSprite3D
without animation) - Import resource type
TileSetAtlasSource
- Import resource type
NinePatchRect
- And something else, if there are interesting proposals from you)))