Quantcast
Channel: Questions in topic: "enemy"
Browsing all 1488 articles
Browse latest View live

Player inCombat state problem

**Hey guys!** I have problem with combat state in my game. Currently it works like this: Enemy “see player” bool return true and send message to other script which turn “isInCombat” to true. I’ve fixed...

View Article


How can i make a projectile attack travel through multiple enemies dealing...

I'm making a 2D game where a few attacks need the ability to travel through multiple enemies, but no matter how i seem to try to set up the colliders and rigid body, it always stops at the first enemy...

View Article


Unity2D Animation issues

So I have a flying enemy and to make it more lively I want it to be animated going up and down. I got the animation working but the enemy no longer follows the player. I made sure to remove the x,z...

View Article

Fist Punch Collision

Hi everyone, i'm making a first person boxing game that is a player against an enemy. So i've got a first person controller, then i add two arms with front punch animation (left arm and right arm) and...

View Article

Glitched character problem - Urgent Help Needed!

Hello, everyone. I am not that new to Unity, but, there's still some things I don't understand. I am currently developing a Slender-style horror game. I'm almost finished, but, there's only one...

View Article


How do I apply bullet projectile to enemy ai properly on unity3d

I am having a problem applying damage to my enemy ai in my scene. I believe it's a projectile issue . I am able to kill the enemy ai far away . But the problem I am having is when the enemy ai is near...

View Article

Enemy disappears on startup

I'm having this weird problem where every time I press the Play button, my enemy automatically disappears. It's even gotten to the point where I placed my enemy right in front of my player and it still...

View Article

Enemy randomly disappears on startup

Hello, everyone. I'm not that new to Unity, but there's still some things I don't understand. I'm currently making a Slender-like game and it's almost done, but, there's just one problem. In my game,...

View Article


my enemy recognizes one instance of the player entering a box collider in...

i'm working on my ai script for a game i'm working on, and i need the enemy to chase the player until it's within range of the player to launch it's attack i have 2 enemy scripts, once that controls...

View Article


I want an Enemy Indicator to be shown on an enemy airplane

I am making an Airplane shooter game, in that game i want to show the user which enemy Plane he needs to shoot. And i think it would be best to show a cross hair or draw a circle around enemy or...

View Article

How to make character carry a weapon?

I'm currently creating a survival horror video game and I want my enemy character to wield a knife. Does anyone have any advice they could give me on how to make this happen? If you do, I'd really...

View Article

hit delay does not kick in

well I have a enemy following my Player till the enemy gets close enougn. then it does a attack animation and after that my player should take 1 hit and then after the animation played again 1 hit...

View Article

Move enemy towards player if enemy is in Camera bounds.

Hey, it is my first question here and I did some research before asking, but if I missed something I am so sorry. I will get to the point : I have script that makes Enemy move towards my Player (it is...

View Article


Enemy chase player and do not stop until it reaches the target?

Hey, I will get to the point : I have script that makes Enemy move towards my Player (it is 2D platformer). Enemy move if distance between Player and object is less than max dist. but if I reach higher...

View Article

Enemy moving left towards player.

I'm very new to Unity and coding, so I appreciate your patience. I'm creating a 2D sidescroller where the character is always stationary on the left side of the screen. You have to use gesture attacks...

View Article


Make player face different enemies with the same tag

i´m trying to make my player face different enemies based on witch enemy is the closest. i´m trying to face the closest enemy using transform.lookAt and Vector3.Distance, i´m able to make the it work,...

View Article

play a death animation when a the gameobject is destroyed But Please I want...

Thats My Script and when i kiil my enemy its not playing the animation ! _______________________________________________________________________________________________ #pragma strict var Health = 100;...

View Article


My enemy attacks backwards, and i'm not sure why it does this

my enemy is supposed to launch an attack at the player whenever the player comes within range, but the attack fires from the wrong side of the enemy every time. below is the code that controls the...

View Article

My enemy runs backwards away from my player object instead of towards it.

My enemy runs backwards away from my player object instead of towards it, i really can't figure it out, i've tried flipping some of the digits in the code below and it doesn't seem to have changed...

View Article

why does my enemy attack backwards?

my enemy is supposed to launch an attack at the player whenever the player comes within range, but the attack fires from the wrong side of the enemy every time. below is the code that controls the...

View Article
Browsing all 1488 articles
Browse latest View live


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