How to make enemy speed up
I made a gravity runner game but I want the enemy to speed up in the beginning because he starts outside of the screen, any suggestions? Here is my code: using UnityEngine; using System.Collections;...
View ArticleSimple Photon Network Spawner C# - Photonview issue
I'm having an issue getting this work with photon networking, it works perfect without it. The script is attached to gameobject spawn point, I know it needs to instantiate using the master client as a...
View ArticleStopping a bullet but letting the animation continue
Right now I have a major hiccup in my game. I have a code running so that a "Bullet" shoots from the whale and when it collides with something it stops. This is exactly what I want, except when it...
View ArticleRotating Wrong
when the AI moves towards me it rotates forward for some reason, same as when it sees my player if I move it'll tilt the model forward a little and then when he chases me it doesn't work very well it...
View ArticlePreserve data within a scene
I'm making a game (specifically a top-down shooter) where there is a main area and several sub-areas saved as separate scenes. This has lead to a problem: if I kill an enemy in the main area, going...
View ArticleRandom Enemy 2D C#
Hey guys. I have a problem with my code. I want to make an enemy that it can show up everywhere and when I click that I get a poin, and the problem is when I run it the enemy doesn't show up. I thing...
View ArticleMake my enemy stop when he reaches me.
This is my EnemyAI script its just for some zombies, they don't attack its for a scary walkthrough type of thing. Its just that they get on top of the palyer and then block the players view from the...
View ArticleHow to get a enemy to flip at a certain point
I'm making a 2D side scroller game and I have this one bit where you have to jump across this lake on lily pads and there are sharks in the water. All you can see is their fins, I have got them moving...
View ArticleHow to keep an Enemy from teleporting outside of a room.
Simply put, there is an enemy within my game that has the ability to teleport, but what I want is for it to randomly teleport within a certain range, and also make sure that it does not teleport itself...
View ArticleEnemy ignore player if object blocked his sight
Hi ..... how to let enemy know there same thing block his sight to see player im using "vector3.angle" to make enemy sight
View ArticleRandom enemy generator
Hello, *Excuse my rusty English I'm creating a 2D Game and trying to create a random moving enemy, and the code works fine in small numbers.. but when i enter more than 50 enemies the game become very...
View ArticleEnemy fire does not propel in any direction?
I'm working on enemy AI and I'm trying to make the enemy shoot. However the bullets do not propel forward and I'm not sure how to make it do so. They just appear in front of the enemy and fall rather...
View ArticleRemove object from List after gameObject was destroyed in between Scene loads
Hello! I have been working on a script for mye enemies a while back, which ended up working quite well. Now I have an issue with it, after implementing more scenes and loading these scenes. The...
View ArticleUnity 3D Audio Clip Disabled
Hello, I am attempting to make a sound clip play when I destroy an enemy in a space shooter type game. However it keeps giving me the following message: Can not play a disabled audio source...
View Articleweapon destroyes enemy without running animation
Ok so i am following brackyes tutorials for making a survival game and i am stuck. I created animation attack for my fireaxe and did the script but when i go into play mode as soon as my weapon (axe)...
View ArticleMaking an enemy shoot at the Players direction (not just up, down, left and...
Ok, so I'm going pretty well on my game at the moment, but have just come into a slight hiccup but the enemy only being able to shoot in the directions of up, down, left and right, but I would rather...
View ArticleMake 2 enemies not collide with each other and player
If I set up both the enemies with colliders and rigid bodies they don't collide but my character can push them away then. I can I made my enemies not colliding with each other and the player character?...
View Articlewhy won't my code work?
//#pragma strict var enemies : Transform[]; var rand; function start () { enemies = GameObject.FindGameObjectsWithTag("Enemy"); transform.LookAt(enemies); } function Update () { LookAtRandomEnemy(); }...
View Article[SOLVED] Enemy Script : Mob doesn't take damage
=-=-=-=-=-=-=-=-=-=-=-=-= I solved my problem finally. =-=-=-=-=-=-=-=-=-=-=-=-= Hi. I'm currently working on a little FPS game. It is the first game that I do. I got a problem. My mob doesn't take...
View ArticleProblem with the movement of AI
I have made an IA that follow me when he see me. Instead of just following me, he follow me and he goes up. I don't know what to do. The following file is the file that control the Mob. **File :...
View Article