当前位置:网站首页>10_ue4进阶_添加倒地和施法动作
10_ue4进阶_添加倒地和施法动作
2022-07-28 10:22:00 【无情的阅读机器】
老师提供的动画的骨骼与小白人的骨骼是匹配的,所以我们直接导入就行了。

第二部分的动画也导进来了
我们将小白人蓝图里,小白人hp为0时之后的逻辑操作注释为死亡以后

当小白人死亡时,速度和转向被锁死以后,播放倒地动画,然后延迟几秒,显示ui

测试成功

-----------------------------------------------------------------------------------------------------------------
现在搞发射火球动作
小白人蓝图里添加变量IsMagicAttack(布尔类型),默认值是false,表示角色是否在释放小球。

在发射火球逻辑里面添加分支,如果该变量是false就可以发射火球 ,发射之后,该变量就变成true。

发射火球,扣除mp值,然后冷却两秒钟,将IsMagicAttack重新设为false。

添加新节点,magicattack
在节点里,拖入魔法攻击的动画

添加动画蓝图的变量IsMagicAttack

设置节点的过度条件


再添加一个相反的过度条件


现在我们写设置布尔变量的逻辑。这个逻辑是写在动画蓝图更新动画事件中。

测试:1.小白球飞出去与投掷的动作不符(投掷的动作太慢)2.施法的时候,人可以进行位移。
解决思路:投球的过程中禁止输入,投完球开启输入,在设置布尔变量为true和生成火球之间增加一个时间延迟0.5s,生成火球与设置布尔变量为false之间增加一个时间延迟0.2s。


边栏推荐
- Add new startup logo and startup / shutdown animation in mt6735
- Problem summary file
- 7. MapReduce custom sorting implementation
- Yarn报错:Could not find any valid local directory for nmPrivate/
- Implement a queue with two stacks [C language]
- Typora tutorial
- GKSpheresNoiseSource
- 【栈的应用】--- 中缀表达式转后缀表达式
- c语言进阶篇:指针(一)
- 15. Judge whether the target value exists in the two-dimensional array
猜你喜欢

8. Detailed explanation of yarn system architecture and principle

最短路专题
![Database security - create login user + configure permissions [notes]](/img/02/0c3eb542593e8e0a3a62db75c52850.png)
Database security - create login user + configure permissions [notes]

Machine learning -- handwritten English alphabet 3 -- engineering features

SDUT Round #9 2020-新春大作战

机器学习--手写英文字母1--分类流程

Machine learning -- handwritten English alphabet 1 -- classification process

QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial

数据库安全 --- 创建登录名 用户+配置权限【笔记】

AP Autosar平台设计 3架构
随机推荐
SDUT 2446 final ranking
Database security - create login user + configure permissions [notes]
Add new startup logo and startup / shutdown animation in mt6735
SQL Server 2016学习记录 --- 连接查询
Django celery redis send email asynchronously
ogg参数filter的使用问题【急】
ICML 2022 | 图表示学习的结构感知Transformer模型
QT generation Exe file and run without QT environment (enigma virtual box for green executable software packaging) graphic tutorial
Read write separation standby backup error
GKNoise
Machine learning -- handwritten English alphabet 2 -- importing and processing data
Chapter 1: cross end development of small programs of uniapp ----- create a uniapp project
SQL Server 2016学习记录 --- 单表查询
GKLinearCongruentialRandomSource
GKNoiseSource
It is said that the global semiconductor equipment giant may build a joint venture factory in Shanghai!
GKRidgedNoiseSource
GKConstantNoiseSource
集群为什么需要root权限
GKARC4RandomSource