Transform.translate change
Hi guys! I've followed a tutorial that uses transform.translate to make an enemy (using enemy state machine move). However, in the tutorial, it calls to use a character flip bool and I don't want my...
View ArticleWhat would be a good script for fidget spinner shooting?
So basically I want my enemies to shoot fidget spinners at the character (this is an FPS btw). I've tried moving the fidget spinner to the player, but using the time.deltatime or any other method of...
View ArticleEnemy (with state machine) cannot target player!!
Hi guys, my project has been blocked by some error in my code. I followed InscopeStudios 2D platformer tutorial ("targeting the player"). In the tutorial, it calls ChangeDirection() to follow the...
View ArticleWhy the text and the UI code is can't applying
Why the text and the UI code is can't applying ? i can't apply the Ui code when i press apply in the block and the block is generated in time the ui code is not applying my codes Enemy ((Block)) using...
View ArticleEnemy is not taking damage!
Hi guys, so I'm following a tutorial by GucioDevs and I have run into an error. When my player attacks, the enemy doesn't take damage. Yes, I have the player tagged as Enemy. Please help :))! Here is...
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 ArticleKind of Lag in movement
Hello there , I have a guarding script in which enemy patrol around specific area and I have provided waypoints to the gameobject but the problem is that it movies like the game is lagging . Its...
View Articlehow do i make an Enemy take damage from prefab bullet clone?
i have the code for ray casting working well but im wanting to shoot a laser thatspawns a laster object that hits an enemy and it does damage to the enemy. i have gotten destroygameobject to work but...
View ArticleCreate enemy with multiple waves/attacks?
Hello, I'm creating a 2D sidescroller and I'm ***extremely*** new to Unity. I'm wondering how I could make a large boss battle enemy, where it's a giant ear of corn that has multiple waves for attacks,...
View ArticleUnity3D : Enemies following the player keep moving through each other
Hi, I'm trying to make enemies follow the player, but also for them to collide with each other and other objects in my game. The "following" part works (I found some help for that here already), but as...
View ArticleUNITY shooting script does nothing
UNITY shooting script wont work. i asigned alll values. how can i fix it? using System.Collections; using System.Collections.Generic; using UnityEngine; public class attack : MonoBehaviour { public...
View ArticleWhen enemy spawns it loses the script settings.
When the enemy spawns without there being a enemy already in the scene the enemy loses all preset like waypoint the player everything i clicked and dragged into the inspector before i made the enemy a...
View ArticleAnimations not playing correctly for FPS enemy AI
I am having trouble getting the animations specifically IdleFiring and RunForwards to play when the character is in and out of range of the enemy![alt text][1] [1]:...
View ArticleAnimations not playing correctly for FPS enemy AI
I am having trouble getting the animations specifically IdleFiring and RunForwards to play when the character is in and out of range of the enemy![alt text][1] [1]:...
View ArticleHow do I destroy all enemy game objects with a bomb?
Hello, Im new to coding so bare with me. I want to destroy all enemy game objects that are in the blast radius of a bomb. The simpler the better. Thank you so much for helping!
View ArticleProblem with adding items to a list
I'm trying to make a database of enemies for my turn based fighting game. So far I tried two things and neither worked, but I feel like this way is the better approach. If you know another method to...
View Article