Elin
68 ratings
Animated Custom Sprites
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
260.004 KB
Dec 11, 2024 @ 7:50am
Feb 8 @ 5:44am
14 Change Notes ( view )

Subscribe to download
Animated Custom Sprites

In 1 collection by DK
Elin Mods by DK
12 items
Description
Animated Custom Sprites

Allows the usage of animated sprites for custom characters and items.




(padoru credit to Drakeny)

To create custom characters and items, you can use Custom Whatever Loader to simplify the process.

Animation Clip

To create a clip, simply name each frame with `id_acs_name#interval_index`.

For example, a custom character with id `boxchicken`, you should prepare the following sprites in the Texture folder:

  • `boxchicken.png`, base sprite, that gets loaded as a still image, used everywhere in the game.

  • `boxchicken_acs_idle#66_1.png`, 1st frame of clip "idle", which is used when card is idling, with an interval of 66ms.
  • repeat and follow the same convention to create frames for clip "idle".

  • `boxchicken_acs_combat#66_1.png`, 1st frame of clip "combat", which is used when card is in combat, with an interval of 66ms.
  • repeat and follow the same convention to create frames for clip "combat".

  • Note that combat clip is not required.

  • `boxchicken_acs_customClipName#66_0.png`, 1st frame of clip "customClipName", this clip needs to be played manually by using Animated Custom Sprites API.
  • repeat and follow the same convention to create frames for clip "customClipName"...



However, you can also create a horizontal spritesheet, with the index being begin-end, such as `boxchicken_acs_combat#66_0-9.png`:



API

If you don't need advanced control over clips, then simply set Animated Custom Sprites as a dependency on steam workshop and you are good.

By referencing `AnimatedCustomSprites.dll`, you gain access to the entire `ACS.API` namespace, with the following extension methods:
// clip control card.StartAcsClip(clipName) card.StartAcsClip(clipType) card.StopAcsClip() // clip access card.GetAcsClip(clipName) card.GetAcsClip(clipType) card.GetAcsClips(clipName) card.GetAcsClips(clipType) card.GetAllAcsClips() // clip creation card.CreateAcsClip(sprites[], clipName, clipType, interval) card.CreateAcsClips(sprites[])

If using API via referencing dll, please do not ship the AnimatedCustomSprites.dll with your mod.

Having a Problem?

Want to request new animation conditions without needing to mess with API? New features? Bugs? Need of assistance? Feel free to leave comments or reach my at Elona Discord @freshcloth.
sauce[github.com]
16 Comments
图帕雷松 Dec 14, 2024 @ 12:32am 
还在舞狮还在舞狮!
Noa Dec 12, 2024 @ 3:40pm 
感觉可以做恐怖游戏了:steamhappy:
DK  [author] Dec 12, 2024 @ 2:24pm 
@sweetcakes thanks for the report, whoops. Fixed
sweetcakes Dec 12, 2024 @ 1:34pm 
Reporting issue: Installing this causes tents and wagons (the ones you can get from the tinker's camp) to "float".
NukeACitrus Dec 12, 2024 @ 8:22am 
Nice!
DK  [author] Dec 12, 2024 @ 3:48am 
@Sagebeat thanks for the report, I've fixed the vanilla animation issue.
OttersHoldHands Dec 12, 2024 @ 3:07am 
ill try to do more testing to track down what mods i have that are causing the conflicts
Sagebeat Dec 12, 2024 @ 3:02am 
Certain objects that were already animated break whenever I install this mod. I look forward to it once the kinks are hammered through.

Specifically, the cauldrons and fountains in town are prime examples.
OttersHoldHands Dec 12, 2024 @ 2:21am 
Im getting some very odd issues with the textures disappearing on earth cellar and allies spawned in using the scroll of ally
布飘零半生,未逢明主。 Dec 12, 2024 @ 2:09am 
这个mod以后应该能整大活,整不出至少也能整点涩:CURIOUSSLIME: