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

Enemy AI Movement Decision Making

Hi, everyone, I'm working on an enemy AI movement system for a Unity platformer game that will allow the enemy to make one of three decisions on a constant basis: idle, move to the right, or move to...

View Article


enemy doesn't follow the player

I'm using a simple enemy ai that makes the enemy follow the player, I am wanting to spawn my enemies one after the other which I have done, but for some reason the enemy only follows the player if both...

View Article


Survival Shooter Expansion

Hi guys, I'm new to all this so please excuse my ignorance! I am using a modified version of the survival shooter tutorial for my dissertation. I've successfully built the game but need to expand the...

View Article

I can't get a "victim" (can be seen as enemy) to follow the player within a...

I recently started working for an IT company and I need to develop a 2D game that allows people to practice what to do in case of a fire. Now one of the things is the player having to get a victim...

View Article

How to create a semi-intelligent trigger system?

Hello. My problem is that I have to be able to create a firing system that detects and attacks the enemy closer and when this enemy dies attack to the one that is behind and also that when an enemy is...

View Article


Wave script not working...

Hello so I just tried to make a wave scrip but I cant figure out why it is not working. I made a class called Wave to hold floats and ints of how many enemies to spawn and how often. The problem is...

View Article

How can I spawn enemies while leaving a gap for the player to advance?

I'd like to have a grid that is 5 units wide that generates rows as the player moves forward. I want my player to advance one unit at a time, whether it's forward, backwards, or side to side. I also...

View Article

Rotating enemy object to face the player when moving

Hello i have a small problem. I am trying to write my own Ai logic what I am trying to do is to make the enemy to face the player when he is moving towards him. I have tried using the transform.LookAt...

View Article


How To Duplicate Canvas To Follow Player

Recently, I've been trying to get character health and nametag to follow the enemies. This was a success. However, I am having trouble with getting the canvas that holds the health and nametag to be...

View Article


Why does my object go so high?

In the Update() of my enemy script, I have it so that the object will Translate up based on speed and time however the first object that is spawned goes beyond the limit I've set at 2.5 while the rest...

View Article

Enemy can see player throught walls problem!!

Hey guys i need help with enemy field of view!! Im using vector3 distance and angles but my enemy can see my player throught walls!! i need a litle help! Here is my script!: using System.Collections;...

View Article

Saving layout and enemy stats with Binary Formatter

So I'm using a binary formatter to save the variables of my script as well as I can. When it comes to the player, everything works perfectly. However I also have an interchanging map aswell as a list...

View Article

I am not able to make enemy ship come towards the player.

I am not able to make enemy ship come towards the player as per instructions contained in EvausiveManuever into the boundary. the script written by me is given hereunder:- using System.Collections;...

View Article


How do I limit the angle of transform.lookat function

I have searched on google and the unity answers site and still haven't found a solution that works yet. I would like the head of my enemy character to only move -+90 degrees. So like a normal person....

View Article

Spawning different random objects at the same position?

I've been trying to spawn two objects at random. But the random function generates only one random value at runtime, and so only one of the object gets spawned. I want both of them to spawn at random...

View Article


Enemies randomly appearing behind objects

Hello i'm new to unity so if i say something dumb please forgive me. I'm making a game for my class and i need to make the enemies appear randomly behind specific objects, to shoot at them. But i can't...

View Article

Get attacked by enemies when they spawn

hello! so i have this script to make the enemies spawn with a delay.. and what i need is that every time an enemy spawns, it attacks the player with a projectile. public class TimedSpawn :...

View Article


Limit spawn number

Hello! I need a little help, i have a script that makes my enemies spawn in four positions, but they keep spawning forever and i need to have, for example, ten enemies in the first level and after you...

View Article

Why does UNchecking apply root motion freeze my game objects?

So as the question states, for some reason whenever I uncheck the apply root motion box under the animator component, the enemy I am animating gets stuck in place. However, if I DO check it, it moves...

View Article

Enemy attack when it spawns

Hello! Sorry if this is a dumb question but i'm new to unity. Right now i have a script that makes the enemies spawn in four positions with a delay, but now i need the enemy to attack the player a...

View Article
Browsing all 1488 articles
Browse latest View live


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