Quantcast
Channel: Questions in topic: "die"
Viewing all articles
Browse latest Browse all 115

Play animation only if its standing on the ground

$
0
0
I am creating a melee game, 1vs1 mode. When the player has <= 0 health, he gets disabled and a death animation gets played. But the problem is: If my player jumps, then gets a deadly hit, he dies floating above the ground. I tried many things, such as groundcheck or checking the rigid.velocity before playing the death animation, but all the things did not work. I hope you can help me. ![alt text][1] [1]: /storage/temp/198267-screenshot-2true.png

Viewing all articles
Browse latest Browse all 115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>