Next enemy wave timer issue
Hi, I'm creating a tower defence game. I'm having trying to spawn a second batch of enemies (next wave) after the first batch has spawned (when enemiesSpawned >= enemiesToSpawn) after a certain...
View ArticleMelle system destroy game object not working despite no errors and declining...
so my script was working fine yesterday with no changes, when the enemy has less than health or 0 health it would be destroyed, how ever now the destroy function isn't working, health will go into...
View ArticleHow kill an enemy and respawn after die
Hello, iI'm making a 3D game and I want when enemy's life reaches 0 this disappear and respanw in the same area where started when the game starts. Here I put the script of life Thank you 1 var...
View Article2D sidescroller ranged character shooting problem.
So i have been trying to create an archer in my 2d sidescroller, who has an invisible box infront of him, and when the player enter, i want the archer to fire arrows straightfoward (Kinda like the...
View ArticleEnemyAI Script help
Hey guys I have a EnemyAI Script, but I always the error "Operator < Cannot be used with a left hand side of type "object" and a right hand side of type "float". Once And "Operator < Cannot be...
View ArticleGet Component in RaycastHit game object
Im making a game in which the player (a sphere) shoots laser beams via Raycast at enemies (cubes). I want to find the "EnemyHealth.cs" component in the object that it hits and if it has the component,...
View ArticleHow to spawn more enemies once I've killed one?
I currently have a scene where there is one enemy and if i kill him, he goes away. I want to make it so when i kill the enemy, 2 more appear and so on. **I am new to unity so i need to know where to...
View ArticleEnemy walking above ground
Hi there! So my problem is that my enemy which is a zombie is walking above the ground when he wants to chase me.. here's my script for my enemy : var target : Transform; //the enemy's target var...
View ArticleHow can the enemy jump to the player
I want to make an endless runner game. A runner game in american football style I made 5 lanes. The enemies are moving towards you. I've different power-ups and different enemies. I have a normal...
View ArticleEnemy AI makes enemies walk up walls? **SOLVED**
I have enemies with ai's that follow you around but the enemy can basically walk up any slope no matter how steep. How can I stop it from doing this? Also sometimes whenever they hit a wall or...
View ArticleBasic sword swing combat
Hello all, I am working on my first c#/unity project and am trying to implement combat into my game. The game is a side scrolling combat game. I currently have monsters which will attack the player...
View ArticleScript Wont Take away health from my player when hit by enemy bullet.
Hi all Im having a problem where my script wont take away health by my player if it is hit by the enemy bullet, the script has been placed on my character and when hit with anything with the Tag...
View ArticleTwo Enemies only one is counted for
Ok so I have two enemies they are the same objects/models and same exact script. As you can see I gave the hands a empty with a collider to use it for a hit box. So when I play the game with just one...
View ArticleMy sword pushes enemies around?
Literally just started using Unity yesterday, and I'm slapping together a little third person action game to learn the ropes and try to get a grip on C#. I currently have a player that moves around...
View ArticleEnemy Animation Help
I have the enemy animation playing so far. but I'm having trouble with transitions. I have a simple capsul object with disabled mesh renderer, I have placed the tyrant zombie on the capsul and added a...
View ArticleNeed help trying to make enemy detect player's projectiles
I'm trying to make an enemy ship to dodge the player projectile when in sight of it and continue to chase after the player. I couldn't find any proper tutorial on how to do this. When tried to get this...
View ArticleC#2d Attacking multiple enemies rather than one
Hello! I have a list of enemies currently on the map. And my player will target the one that's closest to him. Problem is, I want to make the player target more than one of the enemies if they are in...
View ArticleAI & pathfinding for 2D platformer - how to approach?
In my 2D platformer (camera from side looking at the xy plane, with some jumping and gravity, shooting, etc) I'd like to add some complex enemies. Ideally, they would be able to patrol around some...
View ArticleEnemy targeting player in different scene
Hi . How do i make enemy from another scene to target the player. My scene is like this, the player will destroy all enemy and when all enemies are destroyed the portal will open and the player will be...
View ArticleScript issues [js]
Before I tell what's going on, let me I put a video with the source code. **Video:** http://www.indiedb.com/games/johnny-onion/videos/new-score-system-mobs-respawn-with-bugissue **EnemyHealth** var...
View Article