Skip to content
New issue

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

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

Already on GitHub? # to your account

Swapping of non-Power animations #1879

Open
dorkster opened this issue Sep 10, 2024 · 0 comments
Open

Swapping of non-Power animations #1879

dorkster opened this issue Sep 10, 2024 · 0 comments

Comments

@dorkster
Copy link
Collaborator

I think a desirable feature would be the ability to change the non-Power animations, such as run and die at will.

Use cases:

  • a different walk cycle could be used during an ability that changes the movement speed
  • various death animations based on status effects (e.g. burning)

This should probably be implemented as part of the effect system. While the effect is active, we can swap the animation like so:

setAnimation(stats.effects.getSwappedAnimation("run"));

When there are no animation swapping effects active, getSwappedAnimation() will just return what was passed to it. There'd need to be slightly different behavior for death animations, since we clear status effects on death.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant