Skip to content
Snippets Groups Projects

Allow custom characters to define their own states for standard player animations

Open LJ Sonic requested to merge better-player-states into next

Custom characters can now replace individual player animations by creating states named after the following pattern: S_SKIN_<skin name>_<animation>.

Example: if state S_SKIN_BIGTHECAT_WALK exists and a player using the skin bigthecat enters its walking animation, it will switch to this state instead of S_PLAY_WALK.

A few notes:

  • player.panim takes this into account and will be set to the correct value
  • The super/NiGHTs transformation animation is an absurd mess internally and cannot currently be overriden as a consequence
  • The animation names are exactly the same as the S_PLAY_xxx states

This merge request is part of a long-term plan that aims to make sprite2 eventually completely useless by replacing it with a proper animation system.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
Please register or sign in to reply
Loading