Uploaded October 2020 | Updated September 2026, 3 weeks ago
#AmongUs #UnityDestroyGameobject #UnityBullet #UnityKillEnemy #UnityEnemy
Kill Or Destroy An Enemy With A Bullet. Creating A 2D Top Down Among Us Shooter Made With Unity. Episode 7.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Previous Videos
Episode 1. Among Us Idle And Run Animation Unity Software Tutorial | Top Down Movement In 2D Unity Game youtu.be/W3-EncfpBZM
Episode 2. Give Among Us A Weapon Pistol & Shotgun | Game Clone Made In Unity Software | Weapon Switch Feature youtu.be/nDAZIKNx0wg
Episode 3. Fire Pistol And Shotgun Switching Them Back And Forth | Unity Fire And Switch Weapon Tutorial youtu.be/vmbZsbdqza0
Episode 4. Create Enemy Run Animation For Among Us 2D Shooter Game Clone Made With Unity Software youtu.be/9OV_M5PpjPY
Episode 5. Make Enemy Follow The Player In 2D Top Down Game Like Among Us Shooter Clone Made With Unity youtu.be/jdAoLlCn2e8
Episode 6. Spawn Enemies At Random Position With Random Color In Among Us 2D Shooter Clone Made With Unity youtu.be/C3VExnf4kmY
You can get project files here drive.google.com/file/d/1RtMHjj9a2heKbJbbisjpsn9JaYhaL7IS/view?usp=sharing
In this video I show you a very simple way to kill an enemy with a bullet. Bullet hits an enemy and both of them are destroyed. So here is my project which is being developed for several videos by this one. Links to those videos are in the description. So in one of those videos my character got an ability to fire bullets. I created my bullet prefab back then. Here it is. This bullet prefab has a script attached. It was a pretty simple one that just destroyed my bullet in 3 seconds. This time I added some extra code into it. It is ontrigger enter 2d method which is invoked when a bullet meets some collider. When it happens I check if that gameobject has Enemy script attached. If it has then I destroy that gameobject. A bullet is destroyed as well. That’s the script. To make this work I have to add a collider to my enemy prefab. I select the enemy prefab and add a capsule collider to it. I set it as a trigger. So now my enemy has got a collider and he is ready to be killed by a bullet. Let’s check it out. I can kill enemies with my handgun now. Also I can kill a couple of enemies with my shotgun at one shot. Great! Hope you like this tutorial. Thank you for watching and see you next time.
#AmongUs #UnityDestroyGameobject #UnityBullet #UnityKillEnemy #UnityEnemy
Kill Or Destroy An Enemy With A Bullet. Creating A 2D Top Down Among Us Shooter Made With Unity. Episode 7.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Previous Videos
Episode 1. Among Us Idle And Run Animation Unity Software Tutorial | Top Down Movement In 2D Unity Game youtu.be/W3-EncfpBZM
Episode 2. Give Among Us A Weapon Pistol & Shotgun | Game Clone Made In Unity Software | Weapon Switch Feature youtu.be/nDAZIKNx0wg
Episode 3. Fire Pistol And Shotgun Switching Them Back And Forth | Unity Fire And Switch Weapon Tutorial youtu.be/vmbZsbdqza0
Episode 4. Create Enemy Run Animation For Among Us 2D Shooter Game Clone Made With Unity Software youtu.be/9OV_M5PpjPY
Episode 5. Make Enemy Follow The Player In 2D Top Down Game Like Among Us Shooter Clone Made With Unity youtu.be/jdAoLlCn2e8
Episode 6. Spawn Enemies At Random Position With Random Color In Among Us 2D Shooter Clone Made With Unity youtu.be/C3VExnf4kmY
You can get project files here drive.google.com/file/d/1RtMHjj9a2heKbJbbisjpsn9JaYhaL7IS/view?usp=sharing
In this video I show you a very simple way to kill an enemy with a bullet. Bullet hits an enemy and both of them are destroyed. So here is my project which is being developed for several videos by this one. Links to those videos are in the description. So in one of those videos my character got an ability to fire bullets. I created my bullet prefab back then. Here it is. This bullet prefab has a script attached. It was a pretty simple one that just destroyed my bullet in 3 seconds. This time I added some extra code into it. It is ontrigger enter 2d method which is invoked when a bullet meets some collider. When it happens I check if that gameobject has Enemy script attached. If it has then I destroy that gameobject. A bullet is destroyed as well. That’s the script. To make this work I have to add a collider to my enemy prefab. I select the enemy prefab and add a capsule collider to it. I set it as a trigger. So now my enemy has got a collider and he is ready to be killed by a bullet. Let’s check it out. I can kill enemies with my handgun now. Also I can kill a couple of enemies with my shotgun at one shot. Great! Hope you like this tutorial. Thank you for watching and see you next time.










