Elin
85 个评价
Animated Custom Sprites 自定义动画
   
奖励
收藏
已收藏
取消收藏
Graphic: Sprite
System: Library
文件大小
发表于
更新日期
357.796 KB
2024 年 12 月 11 日 上午 7:50
8 月 7 日 上午 5:45
15 项改动说明 ( 查看 )

订阅以下载
Animated Custom Sprites 自定义动画

在 DK 的 1 个合集中
Elin Mods by DK
16 件物品
描述
自定义动画

允许为自定义角色和物品使用动画。





要创建 自定义 角色和物品,可以使用 Custom Whatever Loader 简化过程。

动画片段

要创建片段,只需用 `id_acs_name#interval_index` 为每一帧命名即可。

例如,如果自定义角色的id为 “boxchicken”,则应在Texture文件夹中准备以下贴图:

  • `boxchicken.png`, 基本贴图,作为静态图像加载,在游戏中默认使用。

  • `boxchicken_acs_idle#66_1.png`,“idle ”片段的第一帧,在Card空闲时使用,间隔时间为 66ms。
  • 重复并遵循相同的命名规则为片段 “idle ”创建帧...

  • “boxchicken_acs_combat#66_1.png”,“combat ”片段的第一帧,在Card处于战斗时使用,间隔时间为 66ms。
  • 重复并遵循相同的命名规则为片段 “combat ”创建帧...

  • 注意战斗片段不是必需的

  • `boxchicken_acs_customClipName#66_0.png`,片段 “customClipName ”的第一帧,此片段需要通过使用自定义动画API手动播放。
  • 重复并遵循相同的命名规则为片段 “customClipName ”创建帧...



也可以使用连续的水平spritesheet,将帧序号改为 起始-结束, 比如 `boxchicken_acs_combat#66_0-9.png`:


API

如果不需要额外的片段处理,那么只需要将Animated Custom Sprites设为必需即可。

通过引用 `AnimatedCustomSprites.dll`,您可以访问整个 `ACS.API`命名空间,并使用以下扩展方法:
// 片段控制 card.StartAcsClip(clipName) card.StartAcsClip(clipType) card.StopAcsClip() // 访问片段 card.GetAcsClip(clipName) card.GetAcsClip(clipType) card.GetAcsClips(clipName) card.GetAcsClips(clipType) card.GetAllAcsClips() // 创建片段 card.CreateAcsClip(sprites[], clipName, clipType, interval) card.CreateAcsClips(sprites[])

引用DLL使用API时,请勿将AnimatedCustomSprites.dll打包发布。

遇到问题?

需要新的动画条件,而不想使用 API?新功能?有错误?需要帮助?欢迎留言或通过 Elona Discord @freshcloth 联系我。

sauce[github.com]
26 条留言
DK  [作者] 10 月 20 日 下午 10:27 
@okin game feature
okin 10 月 20 日 下午 10:17 
In the image or gif what's the mod that displays the damage numbers?
Grosser Incompetence 8 月 31 日 下午 7:19 
get that mutha fucka
jason.vanegas927 8 月 21 日 下午 8:41 
someone please make one of the among us twerk gif
Xera 8 月 19 日 上午 12:23 
:steamthumbsup:
DK  [作者] 8 月 19 日 上午 12:05 
@Xera it will be compatible with both of them once the game gets next stable patch. I updated this mod at 7th thinking the stable patch will come soon. Who'd have thought that it has been more than 20 days and yet we still get no stable patch.
Xera 8 月 18 日 下午 9:24 
required mods section lists both stable and nightly CWL, think it'd be less confusing if you were to get rid of the stable
unless you can use nightly CWL on the stable game ver?
Xera 8 月 18 日 下午 9:10 
no problem :steamthumbsup:
DK  [作者] 8 月 18 日 下午 9:08 
@Xera sorry it wasn't stated in the description, this is updated for Nightly (there was a breaking change in recent Nightly patches)
Xera 8 月 18 日 下午 8:21 
is this meant for nightly or stable? throws an error in player.log with stable + stable CWL
"[CWL][INFO] [TypeQualifier] failed to query decltype from mod: dk.elinplugins.animatedcustomsprites, it might've failed to load or is missing (transitive) dependencies"