当前位置:网站首页>07_ UE4 advanced_ MP value of firing fireball and mechanism of attacking blood deduction
07_ UE4 advanced_ MP value of firing fireball and mechanism of attacking blood deduction
2022-07-26 00:06:00 【Ruthless reading machine】
Copy progress bar

Adjust the position and anchor
Set the progress bar to blue
Create three new ones in the little white man blueprint mp The variable of
take recent and max The initial value of is set to 100
Write deduction mp event
Press z, deduction mp value
When mp Less than 20, You can't shoot fireballs

Add a node to the fireball that delays the summon explosion

Improve the explosion blueprint , After eliminating the light of explosion ,2 Seconds later , Eliminate this actor
Add a spherical collision to the explosion

Adjust the size of the collider

Turn the light and collision box into sub components of explosion .

Add an overlapping event , When the exploding collision box meets the little white man , Little white people will buckle hp

The first is to get the current little white man ( Player character ) The blueprint of , Then get the current actor.

Set the damage size , And trigger damage

test , Found that as long as the explosion collided with any object , You'll catch little white people hp.
improvement , We can make a judgment , Will collide actor With player characters actor Compare , Equal to deduct blood .

-----------------------------------------------------------------------------------------------------------------------------
Now improve the light of explosion , Let the light fade away
Add a custom event

When light intensity >=0, We have been weakening the light intensity .

Before the bright components are killed , Execute this light reduction event
Personally, I think the light intensity decreases every time 800-1000 better .
边栏推荐
- What is inode? It will help you understand inode and what help inode provides when creating and deleting files.
- 程序环境和预处理
- Song of statistics lyrics
- 痞子衡嵌入式:MCUXpresso IDE下将源码制作成Lib库方法及其与IAR,MDK差异
- 06_ue4进阶_使用地形工具设置大地图
- STM32 lighting procedure
- 牛客/洛谷——[NOIP2003 普及组]栈
- Leetcode169 detailed explanation of most elements
- 最近随感,关于牛市和DeFi 2021-05-17
- The GUI interface of yolov3 (3) -- solve the out of memory problem and add camera detection function
猜你喜欢
随机推荐
BOM 浏览器对象模型
Annotation @autowired source code analysis
Pyqt5 rapid development and actual combat.pdf sharing
STM32 timer
SIGIR‘22 推荐系统论文之图网络篇
Binary tree - 530. Minimum absolute difference of binary search tree
没错,请求DNS服务器还可以使用UDP协议
Sort fake contacts
What is parity? How to use C language?
Iterator pattern of behavioral pattern
Practical experience of pair programming
What is multithreading
二叉树——530.二叉搜索树的最小绝对差
Leetcode question brushing series -- 931. Minimum sum of descent path
GUI interface of yolov3 (2) -- beautify the page + output the name and quantity of the identified object
Stack and queue - 239. Sliding window maximum
After entering www.baidu.com in the address bar
NVIDIA cudnn learning
栈与队列——150. 逆波兰表达式求值
Demo of pointer function









