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

3d Buzz 2D tutorial - CharacterController2D - Enemies.

---------- If anyone has done this tutorial, I only have the one issue to resolve, on applying the CharacterController2D to the enemy (which I previously used with the player and works fine) The Enemy...

View Article


Endless/infinite runner random enemy spawning multi lane

I am trying to make a endless runner with 4 lanes that the player can move in. The problem I am having is I want to randomly spawn enemies within the different lanes, but make sure that all 4 lanes are...

View Article


JS to C# converting issues..

Hello all, I am creating a level in unity for a uni assignment; I followed this 3part tutorial a few months back: http://www.youtube.com/watch?v=1C9zbTRCWoM and got it working. The problem was when I...

View Article

Enemy is not moving to player with A* pathfinding

I have my player moving perfectly the way I want to but I must be missing some component on my enemy. My enemy is not a seeker like the player and the script for the enemy movement is basic movement....

View Article

Spawn game objects on a timer

I have this script that spawns enemies, but they only spawn once. So what I was wondering is if there is a way to add a timer or something into this script to make it so they will keep spawing. Here is...

View Article


Enemy Attack Order List.

I've programmed a Melee AI system where the enemy moves towards the target and attacks every so often. But I want to make it so when there is more than one enemy they take turns attacking instead of...

View Article

Player not getting destroyed when touched by enemies

Hello! I'm trying to develop my first 2D shooter. I have 3 types of enemies and 3 types of spells which destroys one of the enemies, but if it hits a wrong enemy type just the projectile gets...

View Article

Debug.log not working with raycast

Hi guys, its my first time here! I want an enemy that uses raycasts to detect me, the player. Im setting up the raycast and a test debug log to see if it works, but it does not. On my enemy I put a...

View Article


Enemy health not decreasing

Okay so I have a melee system and a enemy health system, they both work and let me play in game, however the enemy's health just does not decrease for some reason? **Here are both scripts** ENEMY...

View Article


how to make the enemy patrol, see and shoot

I wonder do with the enemy of my game ships patrolled stay and then when a certain proximity of my player he shoots towards my player

View Article

Need Help About Health,Damage

Hi I need some simple help as a newbie . I am developing my first game and i need help that My player is a ball(like roll-a-ball tutorial player) and i want to assign that ball health . and i also have...

View Article

2D/Top Down Enemy Follow

Hi there! I am trying to make my Enemies follow the player in a simple top down 2D fighting game. At the moment, the following script seems is not working for 2D, as the enemies "Flip" to face the...

View Article

Raycast moving and if null statements

So i'm fiddling around with a simple Boss AI for my 2D game, and i want the boss to first strafe around left and right, which works fine. Then after a certain amount of time i want it to move up if...

View Article


Enemy Color Change Help!

Hi! I am making a game but i have a problem... How can i for example if i have one cube that collides with the other cube (the enemy), how can i make the enemy turn color to red for a second then it...

View Article

how do i handle such an error?

UnityException: Tag: Ball is not defined! Enemy.FixedUpdate () (at Assets/Enemy.cs:22) how do i handle such error in a pong game

View Article


Attacking enemy only hits one at a time instead of all that have been hit

I am trying to kill a mob of enemies that are coming at me at once. I summon a skill which hits all enemies around it. The skill and scripts work just fine except that the skill only hits one enemy at...

View Article

Floating enemy objects?

void Patrol() { RaycastHit rayHit; if (Physics.Raycast (transform.position, Vector3.back, out rayHit, 10.0f)) { if(rayHit.collider.tag == "Player") { playerSpotted = true; } } moveDist = speed *...

View Article


Unexpected token: position?

Hey Guys, Im new and am confused why im getting this message in unity "Unexpected token: position". Any help is appreciated! Thank you~ #pragma strict var nextLevel : boolean; function Update() {...

View Article

How can I make my player only target objects from a certain distance?

Right now I have some scripts that allow the Enemy to die, and when he dies you get XP, and I tried adding some more Enemies, and implemented a targeting system, but you can be any distance. You can be...

View Article

Homing missle with raycast

hi i have been learning scripting and decide to try to make a lock on missile so Ive been looking and all the tutorials have a script that just look for the closest obj with the tag enemy and etc but...

View Article
Browsing all 1488 articles
Browse latest View live


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