rotate child from parent and lock on to nearest enemy
I am attempting to replicate the gameplay style of the original metroid prime game on gamecube which I have pretty much sorted out but I am having issues with the free aim when holding down a key and...
View ArticleNav mesh agent stop to attack?
Hello! Can anyone help me on how to make my enemy walk a certain distance, then stop to attack then continue to walk an so on... Im using Nav mesh agent to make enemy move. Thank you!
View ArticleCould anyone explain how to create an object(enemy in 2d game) in the Unity 5...
Hello. Could anyone explain how to create an object(enemy in 2d game) in the Unity 5 moving from left to right and disappearing after crossing the screen? Something like a bird flying over the map or a...
View ArticleNeed enemy to follow only active character
So i have a gameobject called "characters" which has children of all the possible characters. The character chooser script disables other characters and leaves the chosen one active but now the...
View ArticleProblem with rotation of enemy
I'm makeing a 2d game. I have enemy on scene and I have a problem with it rotation. So It has a srcipt like: public float OffSet; public float Length; void Update() { transform.position = new...
View ArticleHow to kill enemy when the bullet hits the BoxColllider2D?
Hello! I´m currently working in a game and I´m having trouble here. My enemy has two colliders (BoxCollider2D and CircleCollider2D). I use the CircleCollider2D to trigger the enemy (if the player is...
View ArticleMake an enemy follow along a wall
I have a 3d tile based map. I am trying to get an enemy to follow the wall of a room (either the wall on it's left or right consistently per enemy). ![Path for enemy][1] [1]:...
View Article2D Player Knockback ?
*Hello*, **I want to make a knockback, when my Player is colliding with enemy, but I cant imagine how I can realise this.** *Please try to show the example :)*
View ArticleAI script works, when we add a blocked function it stops working HELP
Hey, me and my friend are making a 2D platformer. My friend works on the AI and I work on the player mechanics. My friend ran into this problem that we can't solve, we are beginners to unity so our...
View ArticleHow can an enemy see the player?
I'm making a game based on resident evil 3. I'm trying to make a zombie with a camera. But I don't know how to write a code to detect the player. Please, help me!
View ArticleIs there a way to make a movement pattern using AnimationCurves?
I'm making a 2D space-shooter game, and I want the enemies to have specific movement patterns, ranging from simplistic like a linear left-right loop, to more complex like a parabola left-right motion...
View Article(Multiplayer) How can you make the client affect non player objects?
I've been using Unity for a while now, learning as I go, but this is the first real time I've struggled to find anything online to help and I'm kind of stumped. For the last few months I've been...
View Article`UnityEngine.Transform' does not contain a definition for `positon' and no...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemySpawn : MonoBehaviour { public GameObject enemyPrefab ; public float width=10f; public float height =5f;...
View ArticleLerp in Coroutine (Crazy Behavior)
Hey my friends i have a problem that i strugle on it for days now , i make an obstacle that goes up and stay some time and return down and stay for some times also, i make it move with the Vector3.lerp...
View ArticleEnemy shooting at player
Hi guys! So, I'm working on a game level for college that's due this Friday, it's a runner-type level with a helicopter chasing and shooting the player, however I can't get the shooting script to work....
View ArticleHow to monitor the movment speed of a 2D sprite
I am trying to get an enemy to follow the player when he gets to close, but I need him to flip between left and right but my only problem is I don't know how to monitor the speed of the enemy so I...
View ArticleEnemy vibrates when it reaches the player
Hello programmers around the world i am having a problem with an enemy Script which controls my enemy. The original idea was that if the player gets in range of the enemy, the enemy starts to move...
View ArticleKilling wrong enemy problem
Hello everyone, here's the problem. I made enemies as a prefab. If I jump on an enemy, it doesn't kill the enemy I stomped on, but the other one. I realized if I add more enemies, that it always kills...
View ArticleEnemy Rigidbody vibration when reaching the player
Hello programmers around the world I am having a problem with one of my scripts for the enemy in my game. It is supposed to follow the player to a certain beyond which it actually reaches the player...
View ArticleUnity 2D Enemy Problem
I am trying to create an endless runner where i have ghost-like enemies, which die from bullets, but the player can go through them if they are not dead. The problem is, I can't make it so the player...
View Article