my enemy is broken
so i have an enemy with this code: using UnityEngine; using System.Collections; public class enemy : MonoBehaviour { [SerializeField] private float CrabSpeed; [SerializeField] private GameObject...
View ArticleAppropriate Method for Animating Enemy Damage via Raycast - C#
Sorry for the simple question... I have an FPS that has a Raycast method set to detect a tagged enemy which removes health and eventually destroys the object. Now, using C#, I would like to play an...
View ArticleEnemy's NavMesh not working
Hey guys. I'm new in Unity and I don't know why my code doesn't work. When range is under 15, enemy should chase player, but instead of this it stops. Also, it is a little lagged when arrives at each...
View Articleflip enemy
ive been looking all day but cant find the right answer... i want to my enemy flip based on where is walking, this is my script i hope can help me thx using UnityEngine; using System.Collections;...
View ArticleHoming Missile targetting the nearest Enemy
Hello, I made a script, with a Homing Missile in Unity2D. Game is a Sidescrolling Platformer Contrastyle. The missile, which is fired from a gun muzzle is doing it´s job. However.. It doesn´t...
View ArticleEnemy follow player
Hi all im making a 2D platform game, i have this script where the enemy follow the player at certain distance, but i realise that the enemy can cross the walls,c an some helpme ? void Update () { if...
View ArticleDetermine type of enemy and change points scored
I am a beginner in Unity and I am currently following the tutorials of survival shooter to develop a shooter game. I want to make small modifications in the game where I have three levels of...
View ArticleFPS Problems with Killing the enemy!
Im making an FPS tutorial, and I have everything set up, I just need to destroy a target. I want to make it so that when I shoot it, it catches fire (Done.) and after 10 seconds of being on fire, it...
View ArticleAdvance AI ( League of Legends )
I want to optimize the way the player dodge monsters. I use 1 raycast to determine blocked! then turned the corner and moved up one another, but how to move in the direction affected. To better...
View ArticleC# AI move on Sight
im trying to put my AI to move and attack the player when the player enter its field of view but i cant i just dont know what code to use im very new to unity and my code is a little weak so can...
View ArticleEnemy Animation Play
Hi Everone I have a enemy ai script and it works fine. But when I tried to add the animation code to it, so show me two Error. (01). Enemy.js(49,26): BCE0019: 'animation' is not a member of...
View ArticleHow to stop enemies from shooting each other
Okay so I'm making a 2D video game in the style of Space Invaders, but I'm having an issue where the enemies on the top row shoot those on the lower rows. I honestly don't know how to stop them from...
View ArticleGetting Enemies to walk,run,attack,etc.,etc.
Its me Richard Haley just asking how do i get enemies to walk,run,attack and so forth?
View ArticleWhat is meaning of 'ZombieRig' AnimationEvent has no function names specified...
Hi it's me Richard just letting you know that I got this message that says 'ZombieRig' AnimationEvent has no function name specified! and 'ZombieRig' AnimationEvent has no function name specified! What...
View ArticleHow do I make multiple enemies?
I'm making a RTS strategy game and I need to make multiple "enemies" and multiple "allies"...probably just prefabs. I need to keep separate track of their stats for things like strength, health,...
View Articlei try make enemy health slider or any uI just show the health of Enemy Over head
please i want make that quickly can you help me please that is my code i work with UFPS `,, public float MaxHealth = 1.0f; public float CurrentHealth = 0.0f; public Slider Healthh; protected virtual...
View ArticleI want to attack me enemy and decrease their health, but t won't work, what...
For some time, I have been looking up tutorials to write a script in which my player can use a weapon and that weapon will damage the enemy and take away their health. Now, I have a script that the...
View ArticleItems are remaining after ending play with OnDisable,When OnDisable is...
Hi, creating a 2D Platformer with enemies you can destroy and they'll drop powerups. I have a 50% drop for an health up, and a 50% for a mana up. That's working fine. However, if I haven't killed the...
View ArticleRunning into enemies moves them; how to stop this?
I'm creating a 2D Platformer with enemies. I want to make it so when you run into an enemy they don't move. At the moment, if the player is willing to take collision damage, they can just push enemies...
View Articleoverlap half sphere?
Hello, I have player that has 3 attacks. The first is based on the selected target (done). The third is an AOE (overlapsphere - done). The middle one is the one I am having trouble with, Its basically...
View Article