my explosion animation is stuck on last frame rather then getting destroyed...
so im new to game making and stuff and i am trying to make this simple space shooter game. when i fire bullet hit the target destroys it and explosion animation is played but the last frame is stuck on...
View Article[Solved] I can't call Method from Referenced Script
So, I made 2 Scripts: The 1st Script is the PLayers's Health Script, typed to mage tzhe Player's Health: using System.Collections; using System.Collections.Generic; using UnityEngine; using...
View ArticleEnemy won't damage player C#
Hey, im kinda a beginner so i dont understand to complex stuff, but im trying to make a game with enemies. Im trying to make a script so my player takes damage while in the enemys attack range, the...
View ArticleEnemy wont damage player
Hey, im kinda a beginner so i dont understand complex stuff. im trying to make a game where the enemy will damage the player when it walks inside of my box collider The enemy has a box collider set to...
View ArticleEnemy wont damage player
Hey, im kinda a beginner so i dont understand complex stuff. im trying to make a game where the enemy will damage the player when it walks inside of my box collider The enemy has a box collider set to...
View ArticlePlayer Hurts When Touching Enemy
So in my 2D Platformer I have an enemy that will fly towards you within a certain range and I have a box on my player's feet that if it contacts the enemy it will destroy it. But when I jump on it the...
View ArticleScript attached to An enemy but dosent work right if there are multiple enemies.
The main problem is that if there are multiple turrent AIs in game only one of them will shoot the projecile at the player and other ones will not and I am wondering how to fix it. public GameObject...
View Articleenemy raycast to detect player
so im making a stealth game where the enemy will patrol around, enemy can see 110 angle in front of them, and the player need to avoid them and get to the finish point, player can hide behind object...
View ArticleNavMeshAgent does not follow player
I am making a stealth game where when the enemy ai sees the player they chase the player, however when they are behind a wall or some obstacle they wont be able to see the player, the enemy vision is...
View ArticleHow can i make the ai stop at every waypoint for a few seconds?
Making an stealth game where enemy have a cone field of view, and have a set waypoint. Followed the unity doc for the waypoints for enemy, but i cant seems to figure out how to make the enemy stop for...
View Articleplay sound after destroy the enemy by tag
i'm trying to play sound after completely destroy all enemies in the game to tell the player you have won by voice, so I tried code but it is not. so, I need other code that help me to achieve my purpose.
View ArticleHow to Disable Enemy's Collider When Stomped On?
So in my 2D Platformer I have an enemy that will fly towards you within a certain range and I have a box on my player's feet that if it contacts the enemy it will destroy the enemy and the script to...
View Articlesound buzzing enemy dies
sound is buzzing when enemy dies but when pause is shortened sound is played too quick var EnemyHealth : int = 10; var soundFile : AudioClip; function DeductPoints (DamageAmount : int) { EnemyHealth -=...
View ArticleEnemy doesn't follow the player
Hi, I'm quite new to unity (1 month) but I still know the basic features, component and some of the scripting. The enemy doesn't follow the player but goes to the middle and stop. Its not the rigidbody...
View ArticleLost on rotating an enemy in tower defense,Help with another tower defense...
Hello, I have been following Brackey's how to build a tower defense game tutorial on youtube and have run into a problem with rotation. In the tutorial, he just uses a sphere as an enemy game object so...
View ArticleEnemies do damage even after dying
When shot, enemy object disappears.. But the damage is continuously going until the player dies. Here are the scripts used on the enemy. void FixedUpdate () { transform.LookAt (player.transform); if...
View ArticleOne enemy triggers all the enemies
When player get close to an enemy and the enemy starts attacking the player, all the enemies throughout the map start their attacking animation. Player's health get deducted and go to negatives. Player...
View ArticleFindObjectWithhTag return only one GameObject
I have an array of GameObjects and I wanna get them with "FindGameObjectsWithTag" method.In my BaseEnemy class on start I change tag to "Enemy" and in result I get only one GameObject(instead of 3)...
View ArticleHow do i make the enemy face the player with this code?,How do I make the...
,I have tried a few ways to do this, but none seemed to work. How do i fix this or what should i do in order to make the enemy face the player? public class Enemy : MonoBehaviour { public float speed;...
View ArticleAsset spit fire but is no longer working, but when i check the backups it...
I have an enemy that spits fire but it's not killing the player. ive checked my backups and it is working perfectly on them. I have compared the backups to the current version and everything is in the...
View Article