With this addon you simply add a LPC spritesheet to a character and it automaticly generates the animations for the Godot4 sprites
To install this plugin, go to Releases and download the latest version.
Extract the zip file inside it your Godot Project folder.
You now have access to a new Node called LPCAnimatedSprite2D
, which you can use
Add it to the scene tree
Then add your spritesheet with the names:
On the parent node you can call the animations:
extends Node2D
@onready var player = $LPCAnimatedSprite2D as LPCAnimatedSprite2D
func _ready():
player.play(LPCAnimatedSprite2D.LPCAnimation.WALK_UP)
Just select the appropriate Sprite Type
If using component sprites rather than a a pre-built spritesheet, pay attention to the order in which they are configured as it will influence visibility.
I choose this type of version to match the Godot version plus the release version number of the plugin:
4.0.3.1 -> Godot version 4.0.3 + Release version 1
Contributions are very welcome.
Distributed under the terms of the MIT license, "LPCAnimatedSprite" is free and open source software