你们好,我做了三个动画 Idle / Attack / Hit 并成功导入 UE4,
我想实现如下的状态机:
Idle 受击后切换到 Hit,再次受击则循环 Hit,否则切回 Idle;
Idle 攻击时切换到 Attack,再次攻击则循环 Attack,若受击则切换到 Hit,否则切回 Idle。
只运用 Spine-ue4 现有的 AddAnimation / SetAnimation 等功能,逻辑会非常复杂;
请问是否有状态机的功能?这样我可以轻松维护上述逻辑。
如果没有,我只能把 Spine 动画导出成 png 序列,再做成 FilpBook,
并用 UE4 的 PaperZD 插件来做状态机,但这样就失去 Spine 的优势了,
还请麻烦各位解答我的疑惑,谢谢!

Related Discussions
...

Hello everyone, I made three animations Idle / Attack / Hit and successfully imported them into UE4,
I want to implement a state machine as follows:
Idle switches to Hit after being hit, and cycles to Hit when hit again, otherwise it switches back to Idle;
Idle switches to Attack when attacking, and cycles through Attack when attacking again. If hit, it switches to Hit, otherwise it switches back to Idle.
If you only use the existing AddAnimation/SetAnimation functions of Spine-ue4, the logic will be very complicated;
Is there a state machine function? This way I can easily maintain the above logic.
If not, I can only export the Spine animation into a png sequence and then make it into FilpBook.
And use UE4's PaperZD plug-in to make the state machine, but this will lose the advantages of Spine.
Please also kindly answer my doubts, thank you!

Đã hợp nhất 1 bài viết Does Spine-ue4 support state machine?.

在回答您的问题之前,请不要重复发布同一个问题。我已将后一个主题与本主题合并。

我认为可以通过简单地使用节点进行流程控制,并使用 TrackEntry 事件来决定何时播放下一个动画来实现,但这是否就是你所说的因为复杂而想要避免的逻辑?如果您有已经尝试过的逻辑,并希望加以改进,能否请您向我们展示一下,以便我们为您提供改进建议?


Before answering your question, please refrain from posting the same question twice. I have merged the later topic with this one.

I think it could be accomplished by simply using nodes for flow control and using TrackEntry events to determine when to play the next animation, but is this the logic you say you want to avoid because it is complicated? If you have a logic that you have already tried, and you would like to improve it, could you please show it to us, so that we can advise you on how to improve it?

13 ngày sau

I also want to ask this question, I hope that the official matching of the corresponding state machine function

4 tháng sau

PaperZDForSpine2D,该插件支持在 PaperZD 上运行 Spine2D 序列,必须安装这两个插件才能正常工作。heavybullets/PaperZDForSpine2D
// I find this answer in google, may be useful

  • Misaki đã thích điều này.