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

Kind of Lag in movement

Hello there , I have a guarding script in which enemy patrol around specific area and I have provided waypoints to the gameobject but the problem is that it movies like the game is lagging . Its...

View Article


how do i make an Enemy take damage from prefab bullet clone?

i have the code for ray casting working well but im wanting to shoot a laser thatspawns a laster object that hits an enemy and it does damage to the enemy. i have gotten destroygameobject to work but...

View Article


Create enemy with multiple waves/attacks?

Hello, I'm creating a 2D sidescroller and I'm ***extremely*** new to Unity. I'm wondering how I could make a large boss battle enemy, where it's a giant ear of corn that has multiple waves for attacks,...

View Article

Unity3D : Enemies following the player keep moving through each other

Hi, I'm trying to make enemies follow the player, but also for them to collide with each other and other objects in my game. The "following" part works (I found some help for that here already), but as...

View Article

UNITY shooting script does nothing

UNITY shooting script wont work. i asigned alll values. how can i fix it? using System.Collections; using System.Collections.Generic; using UnityEngine; public class attack : MonoBehaviour { public...

View Article


When enemy spawns it loses the script settings.

When the enemy spawns without there being a enemy already in the scene the enemy loses all preset like waypoint the player everything i clicked and dragged into the inspector before i made the enemy a...

View Article

Animations not playing correctly for FPS enemy AI

I am having trouble getting the animations specifically IdleFiring and RunForwards to play when the character is in and out of range of the enemy![alt text][1] [1]:...

View Article

Animations not playing correctly for FPS enemy AI

I am having trouble getting the animations specifically IdleFiring and RunForwards to play when the character is in and out of range of the enemy![alt text][1] [1]:...

View Article


How do I destroy all enemy game objects with a bomb?

Hello, Im new to coding so bare with me. I want to destroy all enemy game objects that are in the blast radius of a bomb. The simpler the better. Thank you so much for helping!

View Article


Problem with adding items to a list

I'm trying to make a database of enemies for my turn based fighting game. So far I tried two things and neither worked, but I feel like this way is the better approach. If you know another method to...

View Article

rotate child from parent and lock on to nearest enemy

I am attempting to replicate the gameplay style of the original metroid prime game on gamecube which I have pretty much sorted out but I am having issues with the free aim when holding down a key and...

View Article

Nav mesh agent stop to attack?

Hello! Can anyone help me on how to make my enemy walk a certain distance, then stop to attack then continue to walk an so on... Im using Nav mesh agent to make enemy move. Thank you!

View Article

Could anyone explain how to create an object(enemy in 2d game) in the Unity 5...

Hello. Could anyone explain how to create an object(enemy in 2d game) in the Unity 5 moving from left to right and disappearing after crossing the screen? Something like a bird flying over the map or a...

View Article


Need enemy to follow only active character

So i have a gameobject called "characters" which has children of all the possible characters. The character chooser script disables other characters and leaves the chosen one active but now the...

View Article

Problem with rotation of enemy

I'm makeing a 2d game. I have enemy on scene and I have a problem with it rotation. So It has a srcipt like: public float OffSet; public float Length; void Update() { transform.position = new...

View Article


How to kill enemy when the bullet hits the BoxColllider2D?

Hello! I´m currently working in a game and I´m having trouble here. My enemy has two colliders (BoxCollider2D and CircleCollider2D). I use the CircleCollider2D to trigger the enemy (if the player is...

View Article

Make an enemy follow along a wall

I have a 3d tile based map. I am trying to get an enemy to follow the wall of a room (either the wall on it's left or right consistently per enemy). ![Path for enemy][1] [1]:...

View Article


How can an enemy see the player?

I'm making a game based on resident evil 3. I'm trying to make a zombie with a camera. But I don't know how to write a code to detect the player. Please, help me!

View Article

Is there a way to make a movement pattern using AnimationCurves?

I'm making a 2D space-shooter game, and I want the enemies to have specific movement patterns, ranging from simplistic like a linear left-right loop, to more complex like a parabola left-right motion...

View Article

(Multiplayer) How can you make the client affect non player objects?

I've been using Unity for a while now, learning as I go, but this is the first real time I've struggled to find anything online to help and I'm kind of stumped. For the last few months I've been...

View Article
Browsing all 1488 articles
Browse latest View live


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