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

How to make an enemy ragdoll on death?

I'm having trouble figuring out how to get an enemy to ragdoll when hp drops below zero. I have a basic code that enables ragdolls when scene starts but I need it enabled after enemy is killed but...

View Article


Enemy Spawn System Glitch

@Mavina helped me out with a system of mines and created an editor script however this editor script is kind of glitchy. Some times in my game it will not automatically assign the player prefab to the...

View Article


Gameobject not moving unless starting at 0 transform

I'm making a 2d game where the enemy is assigned a array of vector3's in the editor. That way I can set it's path along a grid of units that it moves to in a blocky way. It was working well but, after...

View Article

Enemy Spawn System Glitch

Hi there, thanks for you time out of your day to help me. I am creating a game that has an enemy spawn system which spawns enemy prefabs and automatically assigns the players transform so they can...

View Article

Non-NavMesh Enemy

Dear Unity Community, I Have A Very Large Terrain, (Map), And It Takes Forever To Bake It. It Also Uses Infinite Terrain. Is Is Possible, For Enemies, To Make Them Not Fly, But Still Follow, Like Make...

View Article


Enemy Animation don't work

Hi, I've tried to get the enemy to move and receive the 2D animation, without rotation, but changing the sprites. I have a script for random moving and towards the Player, and another script for the...

View Article

NullReferenceExeption

Hey guys. I found this script in a older tutorial from 2015 and I cannot fix it. It gives me "NullReferenceExeption: Object reference not set to an instance of an object Spawner.OnEnable () (at...

View Article

How do I create a list of GameObjects & Integers?

Alright, so- first of all, I'd like to apologize because I'm not the most patient with tutorials and I'm a little rusty with Unity. The scenario is, I want to create a system where enemy "guards" will...

View Article


Values not updating before object destruction.

I'm making a *Space Invaders* style video game for a game making competition. Part of the competition required the game to have some educational value, so I put a number above each enemy so the player...

View Article


Minimap enemy icon help?

Let's say I was trying to make a minimap. For my case, my minimap is an image with a circular mask. The image is a raw image that takes in a texture that my minimap camera is rendering. I have an enemy...

View Article

How can I have the enemies die when they fall through world?

I have a script where the scene goes to the next scene when all enemies have died. using UnityEngine; using System.Collections; using UnityEngine.SceneManagement; public class Enemy : MonoBehaviour {...

View Article

Enemy Range without lights?

Hello everyone! I'm wondering how to create a good **range indicator** that would interact with the geometry of the world, so there is a **visible indicator** of where the **enemy** **can see**, so...

View Article

Dungeon Enemy Help

Hello, im in need of help with my enemy code. There are no errors but what is happening is that when there are multiple enemies surrounding the hero (thats you), once you start attacking not only is...

View Article


Something wrong with enemy tilting in space shooter extending tutorial?

Hello! I am new to working with game engines and scripting and I am very happy with Unity and am trying my hardest to utilize your program, But to the matter at hand, When I am placing the values for...

View Article

What should be the process for damage when player get in touch with an enemy...

Hi, The image shows two major components of my game. The ball is actually the player. The arrows are the enemy. What I want is when the ball get in touch with the arrows, the game will be over. It...

View Article


How would i increase the speed of my enemies? Thanks

I need to somehow make the transform of the enemy to increase over time. I was hoping someone here could help me out. Thanks so much. Here's![alt text][1] the code for my enemy. [1]:...

View Article

need enemy animation attack

sorry i have code little public bool attack = true; public bool attackRight = true; public float attackTimer ; public float attackCd = 3;

View Article


How to enemy animation attack player

hello how enemy attack player public bool attack = true; public bool attackRight = true; private Animator anim; public float attackTimer ; public float attackCd = 3; void Awake() { anim =...

View Article

How to handle entity management

I apologize in advance for the wall of text, I would add code but I don't see it relevant to the question - I can add if requested. **Condensed version of the question:** I want a list of IEnities...

View Article

Enemy line cast position is on centre, not on the corner and spin around itself

I'm making 2d game and i want my enemy to turn around when he's at the end of platform For this i was doing vector2 linecast position I dont know how to make it in the corner, not from the centre of...

View Article
Browsing all 1488 articles
Browse latest View live


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