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

Random Object Movement

Sort of like random paths around them.. I want them to be walking within somewhere near them so they dont walk all over the map just little steps yunno... THANK YOU so much for future help hhaha using...

View Article


How do I use particles to make blood spurt from an enemy when you shoot it?

Hi fellow game developers... I've been trying to figure this out for a while now. How do I make blood spurt from an enemy using particles when it collides with your bullet? Here's the script I have,...

View Article


Can anybody help me fix this wave spawning script please?

I have this script here for spawning enemies in waves but when you play it, it only lays the number of enemies you enter and then stops, it doesn't start a new wave after that, so if anybody could...

View Article

The enemy don´t lose health, but why???

#pragma strict var TheDammage : int = 50; var Distance : float; var MaxDistance : float = 1.5; var TheSystem : Transform; function Update () { if (Input.GetButtonDown("Fire1")) {...

View Article

I use this script, but the enemy lose health if i don´t target him.

Can you sai me what can y add that makes that my script works well? There is my script var health2 : Texture2D; var health1 : Texture2D; var texturewidth : int; var textureheight : int; function...

View Article


how to make an enemy fly across.

Hello. I just want to ask how to make an enemy fly across you. (Like the final jumpscare in barrels) I got the models, stage, flashlight etc. But I'm just lost. I am also currently searching for ways...

View Article

How do i spawn a cube using Javascript?

Hey! Im creating a really simple enemy script where the enemy(cube) takes damage and when health reaches zero, the cube disappears! I found out you could use Destroy (gameObject), so i tried using that...

View Article

Making AI attack (My Script Attached)

Hello I'm trying to make my AI attack me and take damage off me. My script is below. Where would I begin in making this happen. EnemyAtk.js var giveUpThreshold = 20; // distance beyond which AI gives...

View Article


Enemy Spawn Script Spawning Infinite Enemies [Help]

I'm trying to test my enemy spawn script (c#), and I thought I had it pretty well figured out. For the meantime it's all attached to my enemy prefab, but eventually I will attach it to the player. This...

View Article


Apply Damage To Player On Collison With Specific Game Object

Yes I do realize this question has been asked many time before. but i have never found one that fits my needs, and yes i am new and i am taking this project 1 step at a time 1. Enemy Object name =...

View Article

I need some health with my health/enemy script

Hi! This was my first attempt making a sinple health/enemy script where everytime the player clicks the left mouse button, the cube loses health and then disappear when health reaches zero. Everything...

View Article

Destroy object when not looking

How do i make it so that when a player rotates their view a certain amount (possibly rotation view like 180) an object will be destroyed. basically im making an enemy chase a player, and if the player...

View Article

Targeting script not finding a target 2D Mode

Hello, I am trying to get it so that when you click on a enemy sprite component with the tag "Enemy" it selects it as a target. I have tried several different methods, but I dont have the coding...

View Article


Enemy Patrol

is there any code I can place on my enemies to make them roam around in near distance to their current position?? Anything simple would work!

View Article

Enemy Patrol - Random Walk

I have my AI script already and its fairly simple, I wanted to add a code where the enemy can look at its own position and every couple seconds walk a little bit in a random direction.. I just dont...

View Article


C# Floating Health Bar

I had this working but I messed up and now im very frustrated.. so any help please.. I need a script working in C# to have a GUITexture float above a gameobject! Please and thank you!!

View Article

Script freezing Unity

Hey guys I wrote an AI script that was supposed to make the enemy rotate towards the player once he enters it's trigger collider but everytime I run it unity freezes. Here's the code: using...

View Article


Respawn Enemy Prefab after its destroyed

Ive added a script onto my enimes that makes it once they are destroyed they will respawn the rigidbody placed in "respawn" and at the spot "respawnpoint" my problem is that once respawned they are...

View Article

Gameobject Respawn

I was attempting to make my enemies disapeer and come back in say. 60 seconds. I tried to use transform.active = false; inside of a waitforseconds Coroutine but the object never came back.. so all Im...

View Article

Enemy Respawn Bug

When my enimes hit below 0 health I want them to be set inactive for a couple seconds then active again, I can not for the life of me get this to work.. I need help (IN C##) Heres the simple code I...

View Article
Browsing all 1488 articles
Browse latest View live


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