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

Player attack deals damage to all of the enemies.

At the moment I am trying to write a script that uses raycast to attack the enemy in front of my player. What happens presently is that the player detects the enemy that is in front of him and deals...

View Article


Make an enemy follow a player through network

Hi I'm making a networking game, I can't get my enemy's to follow other player than the first player that is spawn in when the server starts. Here is my code : using UnityEngine; using...

View Article


I really need help with this.

Good day all, i have used alot of time by figuring this out. And it will simply not work. Hope someone in here can help :) The problem: I want my enemy gameObject to loose Health when i click on it and...

View Article

I need help with the enemey!

Hello, I work on a FPS game and all works but I can´t find in the Internet a enemy script for the version 5.2 .

View Article

How to Add a Detection Range to enemies

I am trying to make an rpg and I was wondering if there was a way to make Enemies have a range so that if a player were in that range, the enemy would attack them. Please Help me as soon as possible. -SK

View Article


How can I do an Enemy while He's walking his HEAD always see the Target?

When I'll do with LookAt(target) the Head doesn't work, because in the Enemy GameObject He has an animator where the head move with his walk animation, if I deactive it the head works.... Enemy Class...

View Article

wave spawner difficulty increase

there's the script using UnityEngine; using System.Collections; using System.Collections.Generic; public class WaveSpawner : MonoBehaviour { public enum SpawnState { Spawning, waiting, counting};...

View Article

Geting error: CS1525 Unexpected symbol `private' lines (34/15)

Hello guys, I started learning Unity today with help of the book: **Unity in Action** by *Joshep Hocking*. The book concentrates on making an FPS game, so when I get to the part were I have to code the...

View Article


Help - My A.I wont avoid walls or other objects

Hello. I am very new to Unity and programming. I am seeking help for a 2D A.I script that allows objects to avoid other objects while advancing to player (kind of like zombie). The code is required for...

View Article


How to make an enemy 2d chasing and attacking player?

I 'm doing a 2d platform game , I need to make enemies but do not know how. The enemy has to chase and attack the player . sorry if I have not written correctly but i'm Italian. Thank you in advance....

View Article

Adding a parabole to a player when enemy hits it.

Hi am trying to add a parabole velocity to a player when a enemy hits it. Simple code: void OnCollisionEnter2D(Collision2D player) { if (player.transform.tag.Equals("Player")) {...

View Article

Wrong prefab is changing

I have spent several days on this issue and could really use some help! In my game, I have a working enemy health system. It has been tested extensively and is working flawlessly. To go with the health...

View Article

How to make an enemy 2d chasing and attacking player?

I 'm doing a 2d platform game , I need to make enemies but do not know how. The enemy has to chase and attack the player . i'd need a script because i am noob in c#. Sorry if I have not written...

View Article


Cant seem to hurt the 2D enemy

I have tried various ways to inflict damage and nothing seems to work.... this is my latest attempt: using UnityEngine; using System.Collections; using System; public class FireBlast : MonoBehaviour {...

View Article

How to make an enemy 2d chasing player?

I 'm doing a 2d platform game , I need to make enemies but do not know how. the enemy shall patrol and chase the player only when the player enters in the trigger of the enemy. i'd need a script...

View Article


Spawning with LayerMake

I am trying to figure out how to spawn enemies using the LayerMask. I am using a procedural map generator and want to spawn enemies on the "Floor" layer tiles at random areas. This is what I have thus...

View Article

How to make the enemy follow 2 players

Hi, I'm making a 3d minigame where I want to make the enemy follow two players, I have a spawn and the two players, but the enemy focus in one and dont change, what I want is that the enemy changes the...

View Article


Best way to handle melle attacks in a fast paced 2D game

Hello, im working on my melle attacks in my game and ive noticed a few issues, first il point out the basics of how it all works though first off my player dies in one hit, if it collides with an...

View Article

How do i make an enemy always face player

so i have a turret that i want to always face the player if the player goes within the invisible trigger i have on the turret. look at is only for cameras right? i just want it to rotate to always face...

View Article

How to make an enemy 2d chasing player?

I 'm doing a 2d platform game , I need to make enemies but do not know how. the enemy shall patrol and chase the player only when the player enters in the trigger of the enemy. i'd need a script...

View Article
Browsing all 1488 articles
Browse latest View live


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