My wave system isn't working
This is my wave system . using System.Collections; using System.Collections.Generic; using UnityEngine; public class Spawner : MonoBehaviour { private int waveNumber = 0; public int enemySpawnAmount =...
View ArticleWhy is my gameObject falling so slow?
I was testing out my own pathfinding script, and it worked, but only on the x axis, whenever the enemy falls, he falls super slowly, while all the other objects fall normally, could someone tell my...
View ArticleHow to make enemy (with custom texture/material) flash when hit
Hi, I was wondering how to make an enemy flash when hit. My enemies, though, have a custom texture (an image) and I'm not sure if the solutions on the internet which use IEnumerators and coroutines and...
View ArticleHow to freeze enemy movement when Hurt/enemy Damage?
Hello. i am a newbie and have a simple question. I have a hurt animation on the enemy that is triggered when the player shoots it. Suppose the enemy is chasing the player and the player shoots it while...
View ArticleHow to make my enemies spawn at spawn point, but not randomly?
I want my enemies to spawn at my spawn points but not randomly. For example, I have 5 spawn points and I want to instantiate one enemy on each spawn point. Here is my EnemySpawner script: using...
View ArticleWhy addforce isn't adding force on click?
Hi, I have this script attached to the enemy gameobject: using System.Collections; using System.Collections.Generic; using UnityEngine; public class AIFollow2 : MonoBehaviour { /*public GameObject...
View ArticleI changed my monitor resolution and now my enemies are chasing me too fast ??
Hello everyone! I have developed a game in which there are enemies that run towards you to kill you. The enemy control system is managed by 3 different scripts: one that deals with managing what the...
View ArticleMy enemy is not moving
Even that I gave the same script to 2 other enemies and they move normally this one can't move This is the enemy script: using System.Collections; using System.Collections.Generic; using UnityEngine;...
View Articlebox Colliders
![alt text][1] [1]: /storage/temp/184455-screenshot-2021-08-06-194323.png Hello, i added two colliders to my 2D player. but when the player touch an enemy it takes 2 hearts from his life. that because...
View Articlehow to make enemy go around the other enemy to attack player,not just...
public class blueMonster : MonoBehaviour { [SerializeField] private float detect, speed, attackR, setTime; private Vector3 enemy; private Vector2 sta, end; private Animator animator; private...
View ArticleEnemy AI script collisions not working,Enemy AI script collisions not working?
ive been trying to get my enemyAi script to destroy the target character(enemy) when it collides with the player and play a particle system, currently it seems like the collisions are not working and...
View ArticleWorldToScreenPoint and enemy target issue
Hello, I have a question about Camera.WorldToScreenPoint. I actually want to draw a "target box" around the enemy. The canvas with the box image is a prefab, and the enemy has a script that...
View ArticleTransform.LookAt to a certain angle.
Hi! I am currently trying to make a creature who's head looks at the player when it is hunting. But the problem is that if the player goes behind the creature, the head snaps backwards and it looks...
View ArticleSpawning enemies keep overlapping
Hi, I am new to Unity and am making a game for fun. I have between 1 to 5 enemies falling from the screen, but sometimes they overlap and cover each other. Not sure what I am doing wrong :'( ![alt...
View ArticleIs there a way to tell which way an enemy is going?
Hi Everyone, Little question I have an Enemy in my game (3D) and I want to know if there is a way to tell which direction it is facing so i can trigger different animations? Thank You so Much;...
View ArticleClone Independient Enemies
Hi I am new in unity and I have problems making clones of my Enemy. The problem is I have a compounded Enemy with different health in each bodypart, every body part have its own script with its own...
View ArticleProgramming an enemy to shoot upwards
I am trying to program a RayCast enemy that shoots a laser. The problem with this code is that I can't get it to shoot upwards. I know it involves getting the y position of the player, but I just don't...
View ArticleI need a bit of help with a ID system!
Hello and I'm hope whoever is reading this is having a wonderful day today! So as the title says, I want to create a enemy ID system, nothing to crazy, I have this Scriptable Object using...
View ArticleHow to start multiple instances of coroutine in another script's coroutine?
Ok this may be a little bit long winded so be patient. I am trying to get a list of all my enemies on my game manager script, then on that same script start a coroutine to loop through each enemy and...
View Articlehow can i make movement like in tabs or enemy's in karlson?
so i have a game project and i want to make enemy's like in karlson(the karlson that dani is curently working on) i mean with rigid body and this kind of AI and i searched a lot on the internet but i...
View Article