|
I want to make a melee comblat. Now I used the OnControllerColliderHit to work between my character and enemy. But the problem before the script is counting in many time when my character is playing the attack animation. So now I but the cool down timer to prevent it. Finally is ok, but now the problem is the animation between the combo. Sometime the enemy hitted animation will play when I start the combo 2, but sometime will not. What is the problem? Is it the script or animation problem? below is the script I put
Also, if I want to work melee comblat, I use colliderhit to do or use physics.raycast to do is better? Can someone help me
(comments are locked)
|
|
See videos of Burg Zerg Arcade, it teaches the basics of this, plus a full RPG, here's the link: http://www.burgzergarcade.com/hack-slash-rpg-unity3d-game-engine-tutorial 5. Unity3d Tutorial - Melee Combat 1/36. Unity3d Tutorial - Melee Combat 2/37. Unity3d Tutorial - Melee Combat 3/3With C# scripts. -.-
Feb 05 at 04:07 PM
Lost_C4
(comments are locked)
|
|
I have read the tutorial before... but I dun know how to change it into javascript. Or make the target to be tag"enemy"... Making the tag is simple, just go to the Inspector, underneath the object name (top right) says "Untagged", just change that into "Enemy".. :)
Apr 15 '12 at 09:39 PM
FizzyBear
(comments are locked)
|
