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

Player automatically jumping off enemy after kiling it.

I want my player to after jumping on top of an enemy he kills it and jumps ups at the same time. I already did the killing part, but i cant figure out how to make him jump. here is the code i have on...

View Article


error in unity saying Enemy does not contain a definition for take damage and...

using System.Collections; using System.Collections.Generic; using UnityEngine; public class EnemyHealth : MonoBehaviour { public int maxHealth = 100; int currentHealth; // Start is called before the...

View Article


box Colliders

![alt text][1] [1]: /storage/temp/184455-screenshot-2021-08-06-194323.png Hello, i added two colliders to my 2D player. but when the player touch an enemy it takes 2 hearts from his life. that because...

View Article

Boss ai help EoW

I've looked around, but I can't quite seem to get this working: I'm trying to make an Eater of worlds inspired worm boss, from terraria. I've followed a couple tutorials and put things together as I...

View Article

Shade Cloak in Unity

Hello, I'm making a 2D platformer game and I want the dash ability to work pretty much like Hollow Knight's Shade Cloak ability. However, I'm relatively new to Unity and am not sure how to tackle...

View Article


Detect object outside overlapSphere

Hey guys, I'm asking me how I can detect, if the Enemy is outside the overlapSphere range to do some stuff. How can I do that? objectinzone = Physics.OverlapSphere(this.transform.position, 100f);...

View Article

Unity5 Collider error

Hi, why colliders rotating when enemy attacking me? He have collider, rigidbody and rigidbody position and rotation are locked. ![alt text][1] [1]: /storage/temp/195758-ekran-alıntısı.png

View Article

Enemy BulletSpread

Hey Im developing a top down rpg and am currently making an AI and I need to make the bullets spread like a shotgun. I've watched many tutorials but those only explain how to make this for the player,...

View Article


Please, I need help, I'm trying to create a Coroutine where my enemy shoots 1...

IEnumerator Shoot() { while(quantBullet <= 4) { GameObject bullet = Instantiate(bulletPrefab, shotSpawner.position, shotSpawner.rotation); Rigidbody2D rb = bullet.GetComponent();...

View Article


How can I make a 4 direction animation for an enemy?

I'm trying to animate a 2d enemy in 4 directions, I tried making a blend tree but I couldn't find or figure out any compatible code with my AI code. Can anyone help? using System.Collections; using...

View Article

Clone Scripts Freezes Unity On PlayMode!

I am making a FPS game and the AI just shoot constantly well the game is running. the Ai shoot script has worked for a while but today it freezes unity on play every time! this only happens with the...

View Article

Damage not working properly

Currently, I am trying to make a sword attack for a roguelike dungeon crawler I have been working on from a decent while now. I have a sprite for the sword and the animation of it swinging, and the...

View Article

Object too fast for Collision in Unity

I'm currently making a simulation where disks are placed in a conveyor belt and sorted by color. When the sensor detects a white disk, a rectangular object 'pushes' out of the conveyor belt into a box,...

View Article


How do I get the enemy's to rotate to players and shoot at them?

So I am making a game where the enemy is frozen in place and shoots the player, if they hit the player the game resets. The player is able to destroy them by killing them with their own bullets. I got...

View Article

NavMeshAgent makes my FPS enemy object flying up. Why?,NavMeshAgent makes my...

Hello! I just created my FPS enemies by following this tutorial: https://www.youtube.com/watch?v=UjkSFoLxesw&ab_channel=Dave%2FGameDevelopment But I have a weird problem. At the start of game my...

View Article


Problems creating spell rpg

Hello I'm trying to create spell prefab with Rigidbody without gravity and BoxCollider with trigger and call it when I press a key, so far so good; The problem starts when in the...

View Article

My game crahses when the enemy spawns???

Hi. I'm new at Unity and I need your help. I programmed a 2d endless runner but when the enemy spawns the game crashes. Please help me at why this could happen. I'd be extreme thankful if you can help.

View Article


i have a field of view script how to add enemy chase ai

so below is my field of view script I'm looking to idea how make the enemy chase you if you're in the field of view using System; using System.Collections; using System.Collections.Generic; using...

View Article

Is there a piece of code that could make enemies spawn in after one has been...

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Animations; using UnityEngine.Audio; public class Click : MonoBehaviour { public GameObject...

View Article

Best way to set the spawn of enemies

I have been looking for an answer for a long time, but I have not yet found a definitive one: my game is based on several levels (about 50) and in each level the player has to fight different waves of...

View Article
Browsing all 1488 articles
Browse latest View live


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