Skip to content

Swapping of non-Power animations #1879

@dorkster

Description

@dorkster

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions