Quantcast
Channel: Questions in topic: "enemy"
Browsing all 1488 articles
Browse latest View live
↧

How do I make a 2d enemy change direction upon hitting a wall?

I'm trying to make an enemy for my 2d platformer who moves to the right until they reach an edge or a wall, then moving left and repeating the process. I've managed to make it so they turn when...

View Article


Why is my enemy only working on certain scenes?

On a few of my scenes in my game, my enemy character will play an animation on the condition that my character is invulnerable. However, this only works on a few scenes for some reason and on the other...

View Article


I need help pls

Hi, I need help. In my 3d game you can shoot enemies, they follow you and shoot you but, when I shoot them, I wish they would go back a little bit and when they die I wish they would fly away like a...

View Article

Vector 2 only using x (Enemy AI)

Hello! so im making a 2d game where you basicly where bounce on your enemys and i need help with the enemy AI. The enemy should go to the player and shoot at him (i have the shooting part already so...

View Article

2D 8-directional enemy AI sprite animation with Blend Tree not using correct...

Hi all, I have a simple 2D top-down shooting game. I created a BlendTree and Animator Controller for my Player to animate in 8 directions, and that works great. The issue I'm having is getting the...

View Article


Problems with enemies

hi guys, i'm a newbie, and i was doing a enemy AI following [THIS][1] tutorial, i tried using a cube and it worked so i decided to replace it with my blender 3d model, but now when i come closer to my...

View Article

Problems with enemies and animations

hi, i programmed a enemy AI following [THIS][1] tutorial, it works but now i have problems with implementing the animations i've done in blender: when i add, for example, the idle animation ,it plays,...

View Article

Repeating a IEnumerator

So I'm making a scp game and need to create a blink function. I have completed it but it won't loop. Any answers? public GameObject BlinkPanel; public bool BlinkTrue; // Start is called before the...

View Article


How to setActive(true) then false on enemy child gameobject based on closest...

Overall Question: How do I get enemy's childgameobject(1) to be setactive(false) when the player finds a new closest enemy? Details: I've been attempting to do this for 2 days now and can't find any...

View Article


Instantiate with healthbar dont work correctly

I have a problem with duplicating objects. I have enemies who spawn randomly with the amount of hp. The problem is that when there is more than one enemy and I will damage him hp is subtracted from...

View Article

Why is this inconsistent?

Im trying to make a bullethell game and this is my code for the enemy shooting. public void Shoot(GameObject myPrefab) { GameObject bullet = Instantiate(myPrefab, transform.position,...

View Article

Make Enemy look & shoot at randomly chosen transform point from array

Hello guys. I'm currently stuck with an issue and somehow I can't get it to work. I'm trying to make a droid from Star Wars and the droid is currently shooting in the middle of the Capsule "Player"....

View Article

How do I make enemies appear (automatically) from the sides and I have to...

How do I make enemies appear (automatically) from the sides and do I have to dodge them, my game is vertical I'm making a game in 2d Sorry if I misspell, I'm using google translate

View Article


Destroy a spawning enemy prefab with an weapon prefab

I have three prefabs which I instantiate with a spawning script. This is the code for it: public class SpawnManager : MonoBehaviour { public GameObject[] enemyPrefabs; private float spawnRangeX = 7f;...

View Article

Ragdoll help

Hello, I am trying to make a script where the enemy turns into a ragdoll after his health is less than or equal to 0. Also, the enemy has an animation, so i'm trying to make it where the ragdoll gets...

View Article


How to use collision.name in custom function

So at the moment I'm suck trying to make a enemy stop after being hit. The problem is that I can't use the collision.name because it doesn't exist in the context but I also can't put Collider2D as a...

View Article

How i make the NPC friend stop following me and start to follow the enemy...

I am developing a game based on Solo Leveling, and my compannion ("shadows") is following me and i cannot find a way to make them start to follow the enemy when he is near. Does anyone knows how to...

View Article


How to make arch knockback

So I want my character to be knocked back when it's hit by an enemy. I tried to use this tutorial, https://www.youtube.com/watch?v=sdGeGQPPW7E. But it did not have the desired affect I was looking for....

View Article

How to check if a enemy is moving up or down?

So I have a basic chasing script for an enemy but when the enemy is trying to go up a hill it will stop, so I'm trying to lower it's gravity when going up a hill and up it's gravity when going down....

View Article

How to make the minions follow the right summoner ,How do i make the minions...

So I have this enemy that spawns two minions. The minions are supossed to follow spawn positions of the Enemy (where the minions got spawned). This works fine but if a instantiate another Enemy the...

View Article
Browsing all 1488 articles
Browse latest View live


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