Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

Animated Shape 2D

An asset by Goutte
The page banner background of a mountain and forest
Animated Shape 2D thumbnail image
Animated Shape 2D thumbnail image
Animated Shape 2D hero image

Quick Information

0 ratings
Animated Shape 2D icon image
Goutte
Animated Shape 2D

The AnimatedShape2D node can customize a CollisionShape2D for each frame of each animation of an AnimatedSprite2D.It is especially useful to make custom hitboxes, hurtboxes, and hardboxes for each pose of your character, if you animated it using AnimatedSprite2D.It comes with an Editor GUI to preview and edit your shapes, in the fashion of the SpriteFrames bottom panel.It supports copy & pasting (deep or shallow), frame shifting, and undo & redo.As usual, come over on the software forge to report issues and discuss features you'd like.

Supported Engine Version
4.2
Version String
1.5.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Animated Shape 2D Addon for Godot

README MIT README Release README FeedStarvingDev

A Godot ^4.2 addon that adds an AnimatedShape2D node that can customize a CollisionShape2D for each frame of each animation of an AnimatedSprite2D.

It is useful to make custom hitboxes, hurtboxes, and hardboxes for each pose of your character, if you animated it using AnimatedSprite2D.

It comes with an Editor GUI to preview your shapes, in the fashion of the SpriteFrames bottom panel.

You can also use it to "tag" specific animation frames with custom metadata.

Features

  • customize a shape for each frame of your animations
  • store metadata for each frame of your animations
  • configurable fallbacks
  • editor GUI, updated in real time
  • copy & pasting, with either shallow of deep copies
  • supports undo & redo where it matters
  • dogfed
  • extensible

Install

The installation is as usual, through the Assets Library within Godot, look for AnimatedShape2D. You can also simply copy the files of this project into yours, it should work.

Then, enable the plugin in Scene > Project Settings > Plugins.

Usage

  1. Add a AnimatedShape2D anywhere in your scene and inspect it.
  2. Target a AnimatedSprite2D to read frames from.
  3. Target a CollisionShape2D to write to.
  4. Make a new empty ShapeFrames2D to store the customization data into.
  5. Add shape customizations to specific frames using the bottom panel.
  6. Star this repository if you are happy ; share the love!

You can only target one CollisionShape2D per AnimatedShape2D. Make one AnimatedShape2D per type of box you want to customize. (hitbox, hurtbox, etc.)

How it Works

AnimatedShape2D stores enough data in a ShapeFrames2D resource to fully configure a CollisionShape2D for each frame of each animation of an AnimatedSprite2D.

It listens to the AnimatedSprite2D frame|animation changes, and updates its target CollisionShape2D accordingly.

That's it.


🦊 Feedback and contributions are welcome! https://github.com/Goutte/godot-addon-animated-shape-2d

The AnimatedShape2D node can customize a CollisionShape2D for each frame of each animation of an AnimatedSprite2D.

It is especially useful to make custom hitboxes, hurtboxes, and hardboxes for each pose of your character, if you animated it using AnimatedSprite2D.

It comes with an Editor GUI to preview and edit your shapes, in the fashion of the SpriteFrames bottom panel.

It supports copy & pasting (deep or shallow), frame shifting, and undo & redo.

As usual, come over on the software forge to report issues and discuss features you'd like.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Animated Shape 2D icon image
Goutte
Animated Shape 2D

The AnimatedShape2D node can customize a CollisionShape2D for each frame of each animation of an AnimatedSprite2D.It is especially useful to make custom hitboxes, hurtboxes, and hardboxes for each pose of your character, if you animated it using AnimatedSprite2D.It comes with an Editor GUI to preview and edit your shapes, in the fashion of the SpriteFrames bottom panel.It supports copy & pasting (deep or shallow), frame shifting, and undo & redo.As usual, come over on the software forge to report issues and discuss features you'd like.

Supported Engine Version
4.2
Version String
1.5.0
License Version
MIT
Support Level
community
Modified Date
1 year ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers