Quantcast
Browsing all 1488 articles
Browse latest View live

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 Article


What 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 Article


Enemy (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 Article

Why 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 Article

Enemy 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 Article


How 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 Article

Enemy 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 Article

Killing 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 Article


Enemy 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 Article


Unity 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

Kind 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 Article

how 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 Article

Create 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 Article


Unity3D : 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 Article

UNITY 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 Article


When 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 Article

Animations 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 Article


Animations 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 Article

How 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 Article

Problem 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
Browsing all 1488 articles
Browse latest View live


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