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

How to detect wether an object is headed towards the top or bottom of an object?

Im working on enemy AI for my game and I have a problem. The enemy has a collider on it and I want it to check for another objects distance (projectile). If the projectile is aimed towards the top of...

View Article


Problem with enemy shooting script

Hey guys' i have a problem right here, hope you can help me... i did some simple script for enemy UI : public Transform player; public float playerDistance; public float MoveSpeed; void Start () { }...

View Article


Problem using boids algorithm for chasing enemies.

Hello, I'm making a 2D game where I want the enemies to chase the player (think geometry wars). I don't want them to overlap and stack though. So they need to move away from eachother and chase the...

View Article

Item name UI/GUI text over item/enemy in 3d

I have items that will drop from enemies and I want their names to appear over the top of them but i want them to be on the Gui or rather a canvas that is set to screen space overlay while the item...

View Article

Enemy/Partner AI without rotation

I have tried a ton of AI scripts around here for my game, and they all have one thing in common. They all rotate the object it's attached to. I'm trying to make a Paper Mario game, and if anyone has...

View Article


[illustrated] predicting enemy's postion

Hello, dear community! ---------------------- I would like to create a script for a bot to be able to shoot not at enemy's current position, but at the position where it will be in a second or two. I...

View Article

Problem with enemy shooting

Hey guys, I can`t make my enemy shoot with delay and to do it when it`s near my player... Nothing works. No errors, just nothing happens... Please help me... public Rigidbody projectile; public...

View Article

Instantiate Explosion Position

I have a problem with Explosions of the enemy... When the enemy is destroyed, I want to instantiate particles as a prefab, and everything works fine, but it explodes far away from the enemy :\ That`s...

View Article


2d raycast enemy detection problem.

So i've been trying to solve this problem for about 2-3 days now and no matter how many guides i look at i cant seem to solve it... i am making a 2D game and am trying to use raycasting as the enemy's...

View Article


Basic Enemy follow script for Unity five, desperately needed!

Hi. I'm trying to figure out how to make dinosaurs follow me in my game and need an answer really soon.... Basically, they need to look at me and walk towards me... If you know how to do that, please...

View Article

Make enemy move away from player when hit.

For the past day+ Ive been working on attacking an enemy that does 1 damage. On swing a trigger is created and when the enemy touches the trigger it takes 1 damage. Problem is the enemy keeps moving...

View Article

enemy detect player then attack - c#

Hi, In my game I want it so when the player enters the enemy raycast it goes towards him and attacks. However I'm getting Error CS1503, the console says Assets/scripts/EnemyScript.cs(20,23): error...

View Article

My goal is to have multiple enemy prefabs with the same script and call their...

Sorry if this is confusing but I want to be able to have the same enemy with the same script and no change except when collided with by the bullet they will all die the same way without having do...

View Article


Enemy Damage to Player

Hi Everyone! I'm new in scripting, and I have this problem, I set my enemy's damage to 10 and when the enemy attack the player it reduce the players health to 10 but the problem here is when I...

View Article

Removing (Clone) from player

So I made an enemy with the AI to target the GameObject "Player" but the Network Manager spawns in a GameObject named Player(Clone), how do I remove (Clone)?

View Article


Image may be NSFW.
Clik here to view.

OverslapSphere dont detect enemyhealth

Hello Can someone help me with a codeing problema plz? i am trying to modify the baby's shotting tutorial to use bombs, and im having problem with the overlapSphere Enemyhealth detection, i can see...

View Article

Enemy character disappears as soon as i hit play

I am making an FPS beginner level game, problem is that whenever i hit the play button, my enemy disappears (is killed automatically) after 1-2 seconds? i think it has something to do with the coding....

View Article


NavMesh giving jerky like motion

I instantiate Gameobjects that have a NavMeshAgent attached to them. Their destination is the player that can move around a map, that has a baked NavMesh on the map. The problem I'm having is that...

View Article

Enemy fall apart on projectile impact

I am wanting to write a script that would identify what part of a humanoid model (made simply out of unity Game objects) is hit by a projectile. At which point the 'body part' will fall apart or fly...

View Article

Nav Mesh is invalid for some reason

So I'm trying to make a simple enemy navigational system, and I wrote a script for it but it needs a nav mesh agent to go on the enemy, so I put the nav mesh agent on the enemy and it is still saying...

View Article
Browsing all 1488 articles
Browse latest View live


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