Skip to content

Make it possible to edit animations #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fossegutten opened this issue Mar 13, 2021 · 4 comments
Closed

Make it possible to edit animations #25

fossegutten opened this issue Mar 13, 2021 · 4 comments
Assignees
Labels
🆕 Feature Request This is a new feature being requested. 🔶 Priority: Medium ✈ Status: In Progress This issue or pull request is currently being worked on.
Milestone

Comments

@fossegutten
Copy link

fossegutten commented Mar 13, 2021

Make it possible to edit animations, especially the IsOneShot parameter would be useful to edit.
Currently I made a workaround where I duplicate an animation like this:

if (treeAnim.Animations.TryGetValue("anim", out Animation anim))
{
    anim.IsOneShot = false;
    anim.Name = "anim2";
    treeAnim.AddAnimation(anim);
}
treeAnim.Play("anim2");

Or is there a way to set oneshot animations from aseprite that I am not aware of?

Edit: I found your solution in #20, but I think it would still be useful to edit, delete or replace animations

@VidarErmesjo
Copy link

The possibility of modulating the frame durations by some dynamic factor would also be useful.

Use case => modulate a "walk" animation by a velocity component (faster when faster).

@AristurtleDev
Copy link
Owner

With the new version of MonoGame.Aseprite it's now possible to create custom cycles for animations in the SpriteSheet, even after import of the AsepriteFile.

However, it is still not possible to add additional frames or change durations once the animation tag is created at runtime. This is something that I can look into more easily with the way the library is structured now after the update, so adding this to a feature request

@AristurtleDev AristurtleDev self-assigned this Feb 21, 2023
@AristurtleDev AristurtleDev added the 🆕 Feature Request This is a new feature being requested. label Feb 21, 2023
@AristurtleDev AristurtleDev added this to the Version 4.1.0 milestone Feb 22, 2023
@AristurtleDev AristurtleDev added 🔶 Priority: Medium ✈ Status: In Progress This issue or pull request is currently being worked on. labels Feb 27, 2023
@AristurtleDev
Copy link
Owner

@fossegutten Starting with Version 5.0.0, when using (minimum) Aserpite 1.3-rc1, tags now have a "Repeat" property which can be set to specify that the animation should only play once.

@AristurtleDev
Copy link
Owner

@VidarErmesjo Starting with Version 5.0.0, AnimatedSprite.Speed property has been added which can be used to modulate the speed of animation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🆕 Feature Request This is a new feature being requested. 🔶 Priority: Medium ✈ Status: In Progress This issue or pull request is currently being worked on.
Projects
None yet
Development

No branches or pull requests

3 participants