我创建了一个状态机,管理敌人在遇到玩家时的精灵和行为,其中默认状态是行走,准备状态切换精灵,冲刺使其冲向玩家。目前我遇到的困难是让精灵改变。使用调试时,状态技术上确实改变了,正如他们所期望的那样,但行走的精灵保持不变。我希望得到帮助!
感谢!
https://preview.redd.it/l9ynra6pucbh1.png?width=1984&format=png&auto=webp&s=1dae81ca6216c66785e4398b46f1a8b464cc9844
https://preview.redd.it/cc49an9sucbh1.png?width=1077&format=png&auto=webp&s=a10ef0067e5b6b108e3438070569aa4209621048
https://preview.redd.it/wspsya7uucbh1.png?width=940&format=png&auto=webp&s=64a5ed069a90d2f4f05125b87ae0e28b94c608b5
https://preview.redd.it/0tpd055wucbh1.png?width=765&format=png&auto=webp&s=346d457b842370f818c1d3b1adb6312270c2d8ef
https://preview.redd.it/unypvo5xucbh1.png?width=945&format=png&auto=webp&s=ab5d2eb0e6fda4342a4c90ea785771735f911b13
https://preview.redd.it/7h1np2zxucbh1.png?width=696&format=png&auto=webp&s=3a36c8cc122f8c429961ae95bfbc1d8a304ae287
https://preview.redd.it/gw2aeowyucbh1.png?width=784&format=png&auto=webp&s=c58d286b49ccee8d03e719462075ab0155d7d468
评论 (0)