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

too much enemy in game and slow speed

in my game , There is 2000 or 3000 enemy. each enemy is Sphere and 1 script; code in update function is var move : Vector3; var sp :float= 0.08f;...

View Article


Switch() problem [C#]

Hey everybody ! I'm making a game with an enemy spawner and a GameManager who work with a Switch statement. I would like to disable my player and my enemy spawner in "case 2:" but my spawner and my...

View Article


SetDestination function error

Hi, I was creating game by this tutorial: https://www.youtube.com/watch?v=xUl-Agx2cLc and I got stucked when script from them doesn't work as it should. I get error "SetDestination" can only be called...

View Article

Why is this script not working?

the script is meant to take away Enemy health and eventually destroy the enemy, however it does not work, and instead, I would be randomly shhoting an enemy, (NOT where the Target is,) and it would...

View Article

how to make enemy follow rotation player ??

i want to make enemy look at player with the rotation. But when my player closer, the enemy always bow. this my script : using UnityEngine; using System.Collections; public class EnemyMovement :...

View Article


"IndexOutOfRangeException" randomly spawning enemy events

Here is the full script: http://pastebin.com/m4EA10ee Here is a smaller version that does the exact same thing: http://pastebin.com/A56wHVq7 Error line 44 and every line that has "GameObject enemy =...

View Article

Enemy Can't Take Damage!!!

HI I'm starting my first real RPG and I made a script for the battle system but enemies can't take any damage! Here's my script: using UnityEngine; using System.Collections; public class Player :...

View Article

how to make an enemy into a second player

i just began useing unity and i made a pong game in the game there is one player and one enemy ai, and i want to know how to make the enemy ai into a second player so it can be a 2 player game. here...

View Article


Enemy animation gets weird when going to set position

I have an enemy AI and works great until the player is gone and the enemy wants to search at the last known location of the player. Please take a minuet to watch the video to really know what the...

View Article


How to keep track of multiple NPC's / Enemies

Hi there, I am making a defence game, where the player places soldiers which can be moved along the walls/buildings etc Each soldier has a light of sight in the form of an arc, if an enemy enters the...

View Article

AI stops following player.

I've made an AI in my game to follow the player but for some reason, after reaching the first waypoint the AI's path isn't update and it just stops. Please help me. Here is the AI. using UnityEngine;...

View Article

How do I only clone 1 enemy instead of infinity enemies??

I made a script, and when the timer reaches 0 I want it to only spawn 1 enemy but it keeps spawning. What do I add to the script pls help. var timer : float = 10.0; var enemy : Rigidbody; var sound :...

View Article

Load Scene and keep Enemy and Puzzles dead/done

Hi everyone. I'm developing a game 2D, and I use many scenes to do 1 level. In each scene, there are puzzles and enemys. If I die, I just reload this scene, and move my character to the begin of the...

View Article


Enemy Spawner

Im working on a game and i just cant figure out how to fix my enemy spawner. Im aiming for a certain behavior which is spawning easy enemies x20( or any no.) then medium enemies and after that a...

View Article

spawn enemies depending on Audio bursts

I'm Trying to create a spawn system were enemies spawn depending on the music bursts. for example when a soft music is playing enemies spawn slowly and when a action part comes up enemies stars to...

View Article


Increasing Enemy Speed

I have enemy script that includes the speed. I can get the original script to work, but I wanted to add some difficulty to my game. I tried to increase the speed based on the user's score, but now the...

View Article

add ui ingame?

I'm making a fps game, I have 2 question. first: The enemy Ai (zombies) are getting caught on eachother and I was wondering what I could do to make them go through eachother but not any other objects....

View Article


Attack timer stops after killing enemy (when attack script loose target)

**Hey guys!** I have a problem, I have attack script with cooldown and stuff in it, I've created basic combat system, everything works until I kill enemy, it destroys it as intended but then my attack...

View Article

'Enemies' Dissapearing whenever I get closec

Hi, Firstly, I want to note that it is a 3D game. Secondly, I was following a tutorial when I did it, and he was using the same version. Heres my script: var Distance; var Target : Transform; var...

View Article

Save enemy data whether he is dead or not ?

I have two enemies"Cubes" in my scene and player"Hero". What i'm trying to do is make a checkpoint. if i saved my game and then killed one enemy, this enemy should return when l load my save AND this...

View Article
Browsing all 1488 articles
Browse latest View live


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