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

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 Article


Appropriate 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 Article


Enemy'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 Article

flip 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 Article

Homing 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 Article


Enemy 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 Article

Determine 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 Article

FPS 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 Article


Advance 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 Article


C# 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 Article

Enemy 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 Article

How 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 Article

Getting 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 Article


What 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 Article

How 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 Article


i 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 Article

I 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 Article


Items 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 Article

Running 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 Article

overlap 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
Browsing all 1488 articles
Browse latest View live


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