Fighting combo attacks
Hello Unity3D i have a question about combo attacks.See i have been researching about how to make combos but i still dont get it.What im trying to understand is how is it really done like i do i need...
View ArticleTrying to Lerp knock-back on Character Controller
Hey guys. I'm trying to Lerp and smooth out a movement for my melee weapons. Its a top-down shooter style game. Here's my melee script. public void OnTriggerEnter(Collider other) { Vector3 dir =...
View ArticleSync two animations on two different gameObjects
Hi, I have a top down game, based on grid. Similar to chess. My problem is syncing animations on two different game objects. When two figures meets on neighbouring fields they should play animations of...
View ArticleWhy wont my animations play?
I cannot get the attack animations to play at all when i click. i'm very new to unity and i have no idea if i'm even going about it the right way. It all worked when i had it all in One script... but i...
View ArticleArrow Collisions And Taking Health when it collides
Hello! I'm finishing a melee system and I'm having some problem making the arrows take damage from the player when they hit it. Right Now I have one character that attacks properly with a 2d sword and...
View ArticleMelee for 2.5D Platformer? (C#)
I'm creating (as the title suggests) a 2.5D Platformer and wanted to add the option for the player to attack enemies in melee. I am having some problems getting it to work though since I'm rather new...
View ArticleMelee-hits being recognized too often
I added a melee system to my 2.5D sidescroller, so far, the melee itself works fine, though for some reason, the enemies get instantly destroyed instead of just being damaged. My Script for hits-taken...
View ArticleArray - SendMessage to two Targets.
The situation is: I have a melee weapon script - it consists of the Physics Overlap Sphere, in which targets will get Damage, when the Player pushes Fire button. The problem is: I need it to Send...
View ArticleVector3 Distance Incompatibility
Hi! Whilst writing code for a Melee system for my game I came across an error that I can't fix. The error is as follows: "The Best overload for the method...
View ArticleWhy cant any of my functions be found in the animation?
I Have my weapons set up and my animations working with mechanim, and i want to call an attack damage function inside the animation so that my attacks will line up with damage, but, I cant find in the...
View Article2D sprite swapping/sorting layer changing during animation?
Hey Unity Community, I've been toying about with Unity for a little over a week trying to make a 2D swordfighting "prototype". I've hit a snag when it comes to animating the character though, when it...
View ArticleCollision detection for Arrows and Melee. How to properly setup...
I'm building a game that involves shooting arrows (which stick to the object hit) and swinging melee weapons like swords/axes. I've tried many different combinations of colliders trigger/non,...
View ArticleCollider.ClosestPointOnBounds Performance?
I'm working on a Melee script, which works fine in applying damage, but yet has to be tweaked to spwn a blood splat in the point closest to the weapon blade. Anyway, my sight was caught by the...
View ArticleCode don't function when
i made a script: using UnityEngine; using System.Collections; public class Dungeon : MonoBehaviour { private GameObject[] jar; public int qntjin = 1; public int objetivo; GameObject Inim; GameObject[]...
View ArticleMelee system error help!
Why wont this work i cant hit my enemy at all and theres no errors coming up put it wont hit the enemy when i click my mouse Script: #pragma strict var TheDammage : int = 50; var Distance : float; var...
View ArticleGet a game object's reference from collision?
I'm attempting to make a melee script for my player character, I have placed a trigger sphere collider in-front of the player, and was wondering if I could use this collider to get the reference of the...
View ArticleNeed help with my melee system and arrays
Hey guys, I'm still fairly new to programming and this problem has been giving me a major headache. Hopefully one of you guys can help me out. So I currently have a melee system working (using this...
View ArticleDirectional melee system
Hi guys, I have a rather simple question. Is it possible to make a directional melee system in unity by "cutting" the screen in 4 pieces so that you can detect in which part your mouse is and through...
View ArticlePlayer Attack Script. I Need Help!
I have created a player attack script in C#: public class PlayerAttack : MonoBehaviour { public GameObject target; public float attackTimer; public float coolDown; // Use this for initialization void...
View Article