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

How to have multiple enemies (currently having to kill them in order)

I'm making a 2D platformer and I made an enemy that shoots the player when it is in a certain range, turns when player is on the other side and has an amount of health. But when I add a second enemy (I...

View Article


How to make enemys do damage and you dying etc

So I have a zombie arcade game in 3d, zombies can die, i do dmage, they fallow me, alls good. I Besides I need the zeds to be able to kill me as in 4 hits to me ends the game and switches to a GAME...

View Article


Make circular moving object stay within a specific area

Hello, Currently I have successfully implemented an enemy that can moving in a circular motion, however, when I begin the game the enemy goes off to a completely random area of the level. How would I...

View Article

Enemy formation getting stuck on play space instead of bouncing back to the...

Please help me guys, So this is whats going on. I'm on the Udemy course for learn to code. Im working on the Laser Defender game and im horrible stuck. I have enemies in a formation, and they need to...

View Article

Help with a health bar

Hi there. I am working on a 2.5D platformer in Unity 5.5.1. I have a script for an auto-healing health bar, but I want it to work so that the player character will take damage when attacked by an...

View Article


How do i make chaser in 2D enless runner?

Hello there, I'm new at programming and C# .This is my first project, so i ran into some problems. I wanted to make my spider chase the player, but what ever script i write, it either runs past the...

View Article

More advanced Top down enemy AI

So I have a top down shooter i am working on, its free roam on the x and y axis. I currently have a simple enemy AI script so that the enemy points in the direction of the player and adds thrust. It...

View Article

Top down space AI pathing?

So I have a top down shooter i am working on, its free roam on the x and y axis. I currently have a simple enemy AI script so that the enemy points in the direction of the player and adds thrust. It...

View Article


navmeshagent and rigidbody question

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; namespace Player { public class GrenadeExplosion : MonoBehaviour { private Collider[] hitColliders;...

View Article


Create Field of vision

Hello devs, I'm trying to make a field of vision for a basic Artificial Intelligence. I'm just having trouble with the rotation part. I used "[DrawWireDisc][1]" to get a debug. viewRadius=5;...

View Article

HOW TO MAKE 2D Enemy Wait on the Place? please help

I'm making 2d game with enemy who must to wait on the corner of the platform and then go again I made edgeCheck so he can detect edges and than flip https://www.youtube.com/watch?v=7wN5XAF4lPI How can...

View Article

PLEASE Help with 2d Enemy AI system, How to make him wait?

I want to make my ai of enemy to wait on the edge of the platform for 3 seconds How can i do this? I want to use IEnumarator method but i think i done it wrong PLEASE HELP Me in this! using...

View Article

getting error "Operator '

I am using this script as Zombie AI but it gives error......." Operator '<' cannot be used with a left hand side of type 'Object' and a right hand side of type 'float'." var Distance; var Target :...

View Article


OnCollisionEnter2D not working, Again!

Hey guys, I ran into an issue today regarding OnCollisionEnter2D. My objective was to have an enemy ship receive damage and die when an oncoming bullet hit them. I have both the bullet and the enemy...

View Article

How to immediately CHANGE SPEED from spotted position to another?)

*I'm creating 2d game where is the enemy moving with usual speed 2,5 and switching to speed 4 when spotted a character* What I need to change in my script to **switching between 2 speed type...

View Article


2D platformer enemy collider used as range to detect causing my player to not...

-I am making a 2D platform shooter, still a beginner so can't understand much about unity engine. I wanted to know how enemy range works to detect players. -I have created a player, which has a...

View Article

Enemy collider used as range to detect player causes player to not go into...

I am making a 2D platform shooter. Got a player that can jump, run and shoot. All animations working. Basic coding also done for it. Have an enemy, not completed the coding part for it, animation is...

View Article


How do I calculate a Vector3 from the transform of a GameObject?

I am trying to get an enemy to walk towards the player. However, I need the Vector3 for the player to use NavMeshAgent.SetDestination ();. How do I reset a Vector3 to the player's position in Update?

View Article

Nothing is happening with these scripts, why?

With these scripts: using System.Collections; using System.Collections.Generic; using UnityEngine; public class PunchingStuff : MonoBehaviour { Vector3 vect = Vector3.zero; float move; Transform...

View Article

How do I destroy a game object (The enemy Goblin Game Object) upon entering a...

I have been trying to destroy a "Goblin" item that I have placed into my game, and my hopes are to have it be destroyed only when the player (which is named FPSController) is inside of the collision...

View Article
Browsing all 1488 articles
Browse latest View live


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