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

2D Platformer AI Jump?

Hello, I have a problem with creating a 2D platformer game (in C#). The platformer game is a game where you have to jump from platforms up to another platform to get higher and higher. Now I need an AI...

View Article


Reset a timer?

I have a timer which counts down to 0 before an explosion happens. What im basically using it for is to keep the enemy on screen for a short amount of time and then get rid of them. I have this working...

View Article


GUI follow enemy object

The above says it all. I am looking to have a GUI above a enemy object, so that my character camera can see enemies from far away. I am relatively new to working with the GUI functions so could someone...

View Article

Galaga Enemy Patterns and Loops

Hey I have a simple question that needs answering. I'm currently going through and trying to clone old school classic arcade games to get the feel with Unity and also learn a thing or two. What I'm...

View Article

List Other elements problems

using UnityEngine; using System.Collections; [System.Serializable] public class pl { public string name; public int hp,maxhp; public int attack; } using UnityEngine; using System.Collections; using...

View Article


Make an object visible after entering into a trigger

Hello. I'm making an horror game, and i want that when the player enter inside a trigger an object (The enemy, away from the player by X distance) become visible but when the player isn't inside the...

View Article

How do you make random 2-digit numbers float above the enemies?

Hello I am new to unity and i need to make random 2 digit numbers float above the enemies' heads. My game is supposed to be a fps math game where you shoot the enemies with the answers floating above...

View Article

sniper piercing shot

i am trying to make a sniper rifle that shoot piercing bullet. by piercing bullet i mean that the bullet will pass through x number of enemies before stopping. i already made most of the gun script but...

View Article


Help AI going through walls

i need some help i made this AI but the enemy goes through walls this is my code (please write down the code so i can just copy it): using UnityEngine; using System.Collections; public class EneMyAI :...

View Article


Enemy Spawning in Infinite Runner

I am trying to develop a system of randomly spawning enemies in an infinite runner. So, here is the process in which I am going to spawn the enemies. I am going to choose a time interval at which the...

View Article

Enemyhealth component problem

Hey guys I'm writing a script that creates an array of all enemies then draws a ray from the player character, when the ray hits one it becomes the targeted enemy. But once I kill that enemy all the...

View Article

Projectile Collision with Enemy not working :(

Hello Devs, I've a projectile with rigidbody and sphere collider and an enemy with collider (is triger Checked) and with tag "enemy".. what I want is when the projectile collides with enemy .. enemy...

View Article

Animation not playing correctly on enemy AI

I have created some code for my unity game. When my player reaches a certain distance to my enemy the enemy goes from idle to run and then when it gets within a closer distance it switches to the...

View Article


how do I edit enemy stats

So I am new to unity, I searched the Forums and haven't found an answer to my question. Basically, I want to have different sized monsters with different healths, attack, etc. The closest thing I could...

View Article

Keep Enemies from moving on top of each other? (Like on shoulders)

Hello! I'm having an issue where enemies end up walking on top of each other, as the screenshot shows, like world war z![alt text][1]. any idea how to keep this from happening? Thanks! [1]:...

View Article


Scripting an animation for an NPC?

I've got my enemy AI script set up and it works great. When I get closer to my enemy, the enemy gets angry, chases and attacks me. The next step is to get the walking/running animation for my NPC. I...

View Article

Photon Spawn on server, not client

Hello, I'm making a photon FPS and i'm trying to add a survival gamemode. I have AI that can target a player, but the AI is client-side. Not everyone can see the same AI. Is there a way to manage this?...

View Article


Animation not following character?

The running animation i have attached to my enemy model is not following with the model when the enemy chases me. The enemy turns around to look at me, and then the running animation plays as it is...

View Article

c# Enemy's spawning over time, problem

I'm trying to get infinite enemy's to spawn more frequently over time. atm the "numberOfEnemy" (3) will spawn but no more after that. what am i doing wrong or if there is a better way to do this that...

View Article

c# enemy's not spawning

Only the first 2 enemy's will spawn but none after that, also if spawnRate is higher the 0 then they don't spawn at all? using UnityEngine; using System.Collections; public class enemySpawn :...

View Article
Browsing all 1488 articles
Browse latest View live


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