Guard AI acting quite weird - Please Help!
Hello! I am still very new to this whole Unity thing but I'm absolutely loving it. I have encountered a big problem in my first 2d game with my Guard AI. The game design is very simple; guide the...
View ArticleHow I make my enemy face the player or flip towards player (top-down game)?
Sorry for my bad English. 2D btw using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { // Public Variables public float speed; public...
View ArticleHow can I make my Enemy look/flip towards my player (2D TOP-DOWN)
MY ENEMY SCRIPT: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { // Public Variables public float speed; public GameObject effect; //...
View ArticleHow can I make my enemy always look/flip towards my player (2D top-down)?
MY ENEMY SCRIPT: using System.Collections; using System.Collections.Generic; using UnityEngine; public class Enemy : MonoBehaviour { // Public Variables public float speed; public GameObject effect; //...
View ArticleEnemy fire rate? help!
Hi, I can not add the rate of fire, does anyone know how to make it work? Thank you! using UnityEngine; using System.Collections; public class EnemyShoot : MonoBehaviour { public GameObject Player;...
View ArticleReset enemy speed if player is not hit by Raycast.
I am a beginner at game making and i am trying to make a 2D platform game where enemies speed up if they are moving in the players direction on the platform. The problem is that i cant find a way to...
View ArticleFPS damage arrow? (raycast shoot)
Hello! how to i make the damage arrows depending the site of enemy shoot? thanks you! enemy shoot script: using UnityEngine; using System.Collections; public class EnemyShoot : MonoBehaviour { public...
View ArticleGuard AI acting bonkers - Please Help!
Hello! I am still very new to this whole Unity thing but I'm absolutely loving it. I have encountered a big problem in my first 2d game with my Guard AI. The game design is very simple; guide the...
View ArticleEnemy respawn help
I need to make enemies respawn instead of destroying at one of three initial locations (corners) randomly. public class Enemy : MonoBehaviour { //Members public float health = 1.0f; public float...
View ArticleFindObjectWithhTag return only one GameObject
I have an array of GameObjects and I wanna get them with "FindGameObjectsWithTag" method.In my BaseEnemy class on start I change tag to "Enemy" and in result I get only one GameObject(instead of 3)...
View Articleturn object to other object in 2D
Hey, I'm making a 2D topdown game and I want my enemy to always look at my player. How do I do that?
View ArticleCollider's codes works, while dont colliding..
Hey friends, i have a triggerenter2d code like; when triggerenter2d, hp -=10... But i try fire to empty space, target and the projectile didnt touch eacy other, didnt collide, didnt triggered but...
View ArticleTemporary invulnerability in a platformer
Hello I'm working on a 2d platformer and I'm trying to give my player invulnerability for 3 seconds after getting hit. but I just cant seem to get it to work. any ideas how to fix this script? public...
View ArticleTemporary invulnerability in a platformer
Hello I'm working on a 2d platformer and I'm trying to give my player invulnerability for 3 seconds after getting hit. but I just cant seem to get it to work. any ideas how to fix this script? public...
View Articlefree roaming enemy ai
I am making a small arcade survival horror game where players last as long as they can. Anyway I want to make an enemy ai similar to the SA-X in Metroid Fusion where it allows the enemy to roam around...
View ArticleEnemy 2D check for collision
Currently i have a basic enemy follow script but he gets caught on walls and such in my 2D topdown game and i wanted to make him check for collision but im not exactly sure how to do this here is my...
View ArticleEnemy direction going crazy after collision
Well, this is my first time here friends! I wrote a simple code for moving an enemy. But when he collides with anything he seems to lose direction (following the player). using System.Collections;...
View ArticleRaycast stealth enemy?
Hello !, I tell you that I am already finishing the enemy of my FPS but I found an error, lack the range and angle of vision (only forward) so that when you are behind a wall, do not see me, but if I...
View ArticleRaycast target sight?
Hello! i recently make a raycast enemy vision camp, but.. How to i make target in sight? (player) thanks! using UnityEngine; using System.Collections; public class EnemyRaycast : MonoBehaviour { Ray...
View ArticleEnemy ignore walls in sight! Help!
Hello again, I made a vision script in raycast, but NOTHING works, I need a vision of SIMPLE RAYCAST but I did not find anything, all are very difficult tutorials for me, I look for a line in which the...
View Article