Skip to content

feature: Direction offset in animation editor and preview on sprite #2039

@pandinocoder

Description

@pandinocoder

We want to set animation sprites per direction, based on the direction the player is facing, using the following mockup:

image

Green outline: where the user can manage these offsets. The list is auto-populated with the directions a player can look in (4 or 8 directions, depending on the server settings)

Red outline: the original Revert Changes button which is now made smaller. Add a tooltip that says: Revert changes

  • The dropdown should be grouped and then sorted using the current culture (not invariant or ordinal):
    1. Names that contain the original animation name will be grouped first (e.g. fireball_up contains fireball, but fire is contained by fireball)
      • Names in this group should be additionally subgrouped by the difference in number of underscores from the original animation name (e.g. fireball_up is sorted before fireball_down_right because fireball_up has 1 underscore and is considered "more similar" to the original name fireball)
    2. Names that are contained by the original animation name will be grouped second
      • Names should be additionally subgrouped by their IndexOf() value in the original name (e.g. fire is sorted before ball because fire is at index 0 in fireball while ball is at index 4, and reball would be sorted before ball as well because its index would be 2).
    3. All other names, sorted solely according to the current culture, no subgroups

Partial text from the original suggestion posted by da-rulez November 4, 2023:
Right now the animation system works perfectly fine for animations that play directly on the player, but making animations for spells that need to rotate and aren't centered is often very hard, and sometimes impossible.

I propose that we make this easier, and at the same time make troubleshooting any animation easier as well:

New option to display an entity in the animation preview box, so you can see how it will look like on that entity (obviously this would need to render in the same way as it does ingame) -> Preview Sprite button is where you can set a graphic.

This selection works similar to setting an event graphic, you can select any frame from any entity animation:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestNew and valid feature requesthelp wantedIssues/features that are available to be worked on by anyone

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions