youtube-transcript.ai

How To Make A Game - Adding Interesting Enemies [6]

Watch with subtitles, summary & AI chat
Add the free Subkun extension — works directly on YouTube.
  • Watch
  • Subtitles
  • Summary
  • Ask AI
Try free →

Game developers looking to enhance their projects by adding varied and engaging enemy AI behaviors.

TL;DR

This video tutorial demonstrates how to add unique enemy behaviors to a wave defense game. It covers implementing distinct movement patterns for ghosts and imps using AI extensions, and a unique drop-and-scale mechanic for spiders, concluding with game over conditions.

Key Takeaways

In This Video

  1. 00:00Introduction to Enemy AI

    This video concludes the series by adding unique enemy movement and abilities, including mobile controls.

  2. 00:30Boyd's Extension for Ghosts

    Using Boyd's extension for unique ghost movement towards the center, with initial speed and rotation adjustments.

  3. 02:58Ghost Avoids Player

    Ghosts now avoid the player, creating a dynamic and more interesting enemy behavior.

  4. 03:22Imp Movement and Firing

    Imps move slower, don't fear the player, and fire bullets towards the center with a cooldown.

  5. 06:36Bullet Collision with Player

    Player can now block enemy bullets with their body, adding a defensive mechanic.

  6. 07:37Spider Drop and Scale

    Spiders drop from the ceiling and scale into view using tweening behaviors.

  7. 14:56Game Over Conditions

    Game over if an enemy or its bullet reaches the center, restarting the game.

Questions & Answers

How to make enemies move in a game?
Use the Boyd's extension for unique movement patterns. Adjust speed, rotation, and decision weights to control their behavior, like moving towards or avoiding the center.
How to make enemies shoot projectiles?
Use the 'fire bullet' extension. Set a firing cooldown and specify the bullet's origin and target position, adjusting speed and alignment as needed.
How to make bullets blockable by the player?
Create a new event where if an enemy bullet collides with the player, the enemy bullet is deleted. Adjust the player's collision mask if necessary.
How to make enemies drop from the ceiling?
Use points for spawning, add a 'tween' behavior for scaling and Y-position. Spawn objects above the desired position and tween them down to create a dropping effect.
How to make enemies unique in a game?
Give each enemy a unique movement pattern or ability. For example, ghosts avoid the player, imps shoot fireballs, and spiders drop from the ceiling.
How to trigger game over in the game?
Implement game over conditions using 'OR' logic. Game over occurs if an enemy reaches the center or if an enemy bullet reaches the center.

Key Terms

Download or copy the punctuated YouTube transcript (Markdown)

Full Transcript

Loading transcript…

Source

YouTube video. Original: https://www.youtube.com/watch?v=UWIrB98Qnxg
Transcript captured and processed by youtube-transcript.ai on 2026-06-04.