Quantcast
Channel: Questions in topic: "melee"
Browsing all 201 articles
Browse latest View live
↧

Hitting Multiple Enemies

So i got this script to target tags with enemy in them. But the problem is it only hits one enemy till it dies then goes to the next enemy with the tag enemy in it. How do i make it so that i can hit...

View Article


Best way to detect sword hit

Hi! I've been working on a fp/tp action rpg for a while now. The problem is the melee combat, the weapon is not working correctly, I'm having issues with Timing and Hit detection. what is the best way...

View Article


How to stop my sword from hitting myself

I am trying to get my player to swing his sword and hit other players in a network game. Currently my sword during idle and swinging animations collides with my character and begins to take away his...

View Article

OnTriggerStay2D only detecting trigger collisions while moving

My game has two players who spawn in facing each other when the game launches, and each player has a child object with the collision box set up to be where the sword is in the swing sprite and with "Is...

View Article

How do I make my melee script do damage.

I have a melee script but I don't know how to make it do damage to either an ai or a player here is the script so far it is in js. var target : Transform; function Update () { var dist : float =...

View Article


picking up and using animated items/weapons.

hello everbody, i am making a zombie survival game but with only melee attacks with stuff you find lying around in the environment. what i want is as follows: 1) so when i walk upto an object a tag...

View Article

How can I attach a colldier that moves with the enemies sword in an attack...

This is the current code I have on all of my enemies, it checks to see if the character is within range, and then it plays the attack animation and removes health from the player. I want to have it set...

View Article

Combat and melee techniques

I've been researching melee and combat techniques and tutorials but so far I can't really wrap my head around it. I don't mean the hack and slash style combat but more 3rd person combat. I figured it'd...

View Article


Weapon attack

I have some 2d sprites for a 3d fps((Old school style game)). I am looking to allow the player to hold click, and swing the mouse to swing the weapon like so: https://www.youtube.com/watch?v=dcL9BGgDLak

View Article


Melee Area Attack - Object reference not set to an instance of an object

Hello everyone. I'm trying to set up a combat system, but I've got stuck with a weird error. using UnityEngine; using System.Collections; public class PlayerAttack : MonoBehaviour { public float...

View Article

Measuring time between hits to apply COMBO ATTACK animations

![alt text][1] [1]: /storage/temp/60906-20151230-152648.png Hi. My simple game project is about running and breaking walls. I have PlayerCtrl script that manages player animations and WallCtrl script...

View Article

How to solve this problem ?

so i inputed a melee script ,i check the console and i saw this message .MissingMethodException: UnityEngine.Input.GeyKeyUp...

View Article

can anyone help me? CS8025

using UnityEngine; using System.Collections; var TheDamage : int = 50; var Distance : float; function Update() { If(Input.GetBottonDown("Fire1")) { var hit : RaycastHit if...

View Article


Melee combat sword system

Hi. First of all I want to say that I have a basic knowledge about C# and i want to make a combat system with sword. I know I can do it in different ways: For example I can use the OnCollisionEnter...

View Article

Help with multiplayer melee

Friend and I have been working on a game for a bit now. We've implemented melee combat and it's working just great in singleplayer. But after we've implemented multiplayer, we noticed that the weapon...

View Article


Having trouble with melee attack script

Here's the aforementioned script: public float attackDuration = 0.3F; public bool attacking; [HideInInspector] void Start() { } void Update() { if (Input.GetButtonDown("Attack")) { attacking = true; }...

View Article

Melee Script not working

Ok, followed the tutorial word for word. What did I do wrong? please help #pragma strict var Damage : int = 50; var Distance : float; function Update () { if (Input.GetButtonDown ("Fire1")) { var hit :...

View Article


hold key unequip sword

Hi, i want to know how can i make the code for unequip/equip a blade only when i press "mouse1" i mean, i press attack and the character give the sword to attack, but when i hold the key, the sword...

View Article

Why does my Melee System not work?

So i made an melee system but i cant hit my enemy? i keep getting an null error... Here is my Melee Script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class...

View Article

Animator Based Melee Branching Combo System

I am working on a melee based game that will have a combo system. I have left and right mouse buttons for light and heavy attacks, say for instance I use light>light>heavy will do one combo then...

View Article
Browsing all 201 articles
Browse latest View live


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