Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

Enemy hit by sword. Problem with colider and functions.

$
0
0
Hello. I have a problem with my RPG game project. I have a script with sword attack animation. And when it fall and begin to rise I want to call a function, witch will subtract HP from my enemy. I try to solve it with a trigger colider , witch will represent sword distance, and when sword begin to rise i want to make a function to check if enemy colider colide with sword colider. About what I have alredy: swordDmg in double , Hp i double , sword attack script. I write it all in C# and I prefer it , but JS will be fine to. For evry solution I will be very thankful.

Viewing all articles
Browse latest Browse all 1488

Trending Articles



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