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

Enemy AI problem

i have a problem with enemy AI, basically i've set the Navmesh system so they can avoid obstacles and when you enter a certain distance they stop moving and they shoot, but the problem is here, if they...

View Article


Using Vector3.distance without the y axis

So I'm using Vector3.distance to work out whenever the player is within a certain range of the enemy so the enemy can start chasing them and it works the way i want it. But the problem is I have some...

View Article


Player takes damage through collider tag

Hello All ! im trying to get this script to work and to no avail. basically what i am trying to do is to make my player loose health when a collider (attached to a bullet) hits the player. ill put...

View Article

Damage indicator representing incoming damage direction with arrow in UI

I've been banging my head over this. I'm terrible with rotations, especially when it comes to translating them from and to 2D space. So what I have is a 96px square sprite that has it's pivot set to...

View Article

Boss AI help

I've only just started to try and create a boss fight and so far I'm very confused on how to do it. What I want is a boss which will change state after a certain amount of time so for example it will...

View Article


AirStrike Scripting Help

I'm wanting to create not a normal air strike but something that when a enemy shoots a bullet that is going to be firing up above the player, when that bullet gets above the player, it will rotate down...

View Article

Enemies cannot kill Player.

Going to make this one simple and too the point. I have this on enemy that is not set trigger or the moment the enemy is present it destroys everything it comes in contact with. using UnityEngine;...

View Article

How to make an enemy 2d chasing player?

I 'm doing a 2d platform game , I need to make enemies but do not know how. the enemy shall patrol and chase the player only when the player enters in the trigger of the enemy. i'd need a script...

View Article


Ennemy don't lose life [C#]

Hello Everybody ! I'm creating a little game where ennemies goes to a castle and you are a tower who defend the castle. But I have a problem... When my ennemy is touching the castle, the castle lose 1...

View Article


Find nearest enemy in radius

Hi all, I am trying to create RTS. What is the best and cheap way to find nearest enemy object in some radius. Physics.OverlapSphere ?

View Article

Enemy throwing projectiles in an arc

Hi everyone. I'm pretty new to Unity and C# so I would be extremely grateful if you could help me with something. I'm trying to have an enemy shoot projectiles up in the air in an arc in 2D repeatedly....

View Article

Enemy projectile direction setting

Hey everyone. I've run into an issue with using "Turret-type" enemies in a simple 2D game, programmed to fire a projectile based on the direction and rotation it's currently in. The problem is that...

View Article

Enemy 2D Sentry Turret

I want to know how to make a sentry turret, that will look at the player (then fire), if the player enters its field of vision. When it doesn't see the player, I want it to rotate around in a circle,...

View Article


How to make an enemy move randomly in the environment in Unity5?

So, I have this droid hovering in my scene and I want it to move randomly while always looking at me and shoot lasers. I have already got the "always looking at me" part now I have to finish up with...

View Article

clones dying at the same time. why?

i dont know why but all of my clones die at the same time and same thing is happening with the animations; all clones are playing animation at the same time. I have made a prototype project in which i...

View Article


Show Enemy Indicator on Horizon

So I have this little game where I walk across a planet and shoot things (of course). The red triangles on the side are off-screen enemy indicators, showing me enemies that are near my back. I used...

View Article

Move a object along a vector

Hello! I am trying to give the enemy movement in the direction of the player using this: transform.position += playerPos.normalized * 10 * Time.deltaTime; Its not working quite well though, the enemy...

View Article


make enemy cars spawn faster over time!

hi i got this script that spawns 5 cars every 0.8 seconds but i want them to spawn faster and faster after time so maybe after every 20 seconds the the 5 cars spawn every 0.7 seconds and i want it to...

View Article

Score counter not working properly.

Heya, I am new to Unity and c# ... I am just making a simple vertical shooter and am now up to keeping score! I just want to score 1 point each time an enemy is destroyed (all it takes is one shot from...

View Article

Error : BCE0018 Enemy ai

I'm to trigger the attack animation on my enemy ai . I made a few changes and got some errors here and their . I am down to one error. Can any please help me ? I don't understand this error. Here is my...

View Article
Browsing all 1488 articles
Browse latest View live


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