Quantcast
Browsing all 1488 articles
Browse latest View live

FPS Problem Help!

I have this FPS shooter and an AI script ive added im trying to make it work with my Health script and it does but the problem is sometimes without the npc even being on the screen it shows blood...

View Article


JS Enemy Angle Rotation Follow

Hi all. I'm making a 2d game, and trying to get an enemy to look at the player constantly. The catch, is that my 2d game is not a platformer, but an overhead shooter where everything lies on the x,y...

View Article


Different Enemy Lives JavaScript

Currently I'm designing a game with 3 types of enemies 1 - Pink, 1 - Blue, 1 - Red. I have my player character shooting at the enemies and they are supposed to be destroyed if they are hit by the...

View Article

Instantiate Prefab Error

In my game I have a simple trip wire which is activated when my player enters the trigger area. As to test my tripwire because I'm only in Alpha, I wanted it to spawn my basic enemy AI prefab but it...

View Article

I have a character with a knife and he walks up to you according to his torso...

My character will walk up to you according to his torso because that is the middle point of the object. But I want him to walk up to you according to the knife in his hand so he can do the stab...

View Article


Enemy AI problem

Guys, I need help with enemy AI script that will follow Player, and will shoot Player, when locked on on him. I've got this enemy script: #pragma strict var target : Transform; //the enemy's target var...

View Article

Best way to find appropriate script for random enemy?

Okay, so I'm making a card game-- and the way that it's set up, currently, is that when I want to create a card, the call goes to the card manager with an id-- this id being the specific card in...

View Article

Clones of enemies will not shoot

Currently in my game I'm creating clones of enemies and they are supposed to be shooting with specific time variables. I am currently calling the specific name of their object and I'm telling the game...

View Article


Detect collision and destroy one object

Right now in my game, I'm effectively destroying objects that are a clone of another. However, when the game spawns enemies and spawns multiple clones, if I destroy an enemy that is a similar clone...

View Article


Only one cloned enemy shoots

Currently I have 3 enemies spawning on the screen and I'm trying to get only my blue and red enemies to shoot and right now, the code works and finds a spawned enemy and allows only one to shoot. What...

View Article

copy enemy prefabs

I created an Enemy with various components and 1 children i make it a prefab, and a want to use it several times around the scene, but when there are more than 1, only 1 work correctly. this script its...

View Article

How do I make my player re-spawn in its original place on collision of enemy?

How do I make my player re-spawn in its original place on collision of enemy? I have set this piece of code on to the enemy but my player is not respawning? Thanks in advance, Dil #pragma strict var...

View Article

How to see an enemy from certain distance and change texture

I need my character to be able to spot an enemy and when he is within 15 units of radius he will change texture. I have tried many different ways but they either do not work because of other scripts...

View Article


Enemy wont deal damage

The player deals damage perfectly to an eanmy but the eanmy dont deal damage just says NullReferenceExeption: objact referance not set to an instance of an objact enemy script`using UnityEngine; using...

View Article

I am trying to get my Boss character to shoot a laser when the player enters...

I am trying to get my Boss character to shoot a laser when the player enters a trigger that is attached to the boss. Right now when I enter this trigger it does nothing and I am not sure why. This is...

View Article


I have a problem with my enemy AI script

Hey guys. How can I change the script, when the player is near to the enemy(without a collider, because I have a SendDamageCollider script on the enemy) then should the enemy start to follow the...

View Article

Checking enemy death and adding score issue Javascript

I have two separate scripts for my Player and my Enemies...how can I call to the enemy script within the player script and check to see if a specific enemy has been destroyed in order to add to the...

View Article


How can I set my cube moving left and right with custom switch?

Hello. I have been trying to write a script that can make the cube(an enemy)in my platform game to start moving from left and right. The script is in JavaScript. I only manage to make the cube move...

View Article

Damaging Enemy strangely not working.

I am trying to set up collision detection with the bullet prefab and the enemy. oddly when I shoot the enemy "Sometimes" the bullet will be deleted, other times it just goes right through (This is...

View Article

Unity2D, How do i check which way a sprite is facing?

In the game im creating, the enemies can only move forward and apply torque to turn(i know how to do this). What i need to do is find out which way the sprite is facing so i can add logic to decide...

View Article
Browsing all 1488 articles
Browse latest View live


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