Simple Person AI: follow, (social) distancing, and attack | Game Builder Garage Tutorial

Simple Person AI: follow, (social) distancing, and attack | Game Builder Garage Tutorial

Channel:
Subscribers:
2,910
Published on ● Video Link: https://www.youtube.com/watch?v=RdBFugpuUX4



Game:
Category:
Tutorial
Duration: 12:06
6,332 views
114


This covers a basic movement of person AI. It teaches how to make a person to follow the character, slow down the movement, adjust minimum distancs, and attack if within the range.

This is useful for making a simple enemy ai that uses character nodon. Instead of punching, you can also change to launch object and makes the person shooting. There are many other possible ideas for you to explore. :)

* Why not setting the person speed *
1) If the character is too far, it may be too hard to catch up.
2) This was inspired by Mario/Luigi game where Mario&Luigi walk side-by-side. If one character is slower, it won't look like Mario/Luigi. : )

*How to compute distance between two points?*
You can also look up at "Euclidean Distance". I tried to simplify it by using a triangle and Pythagorean theorem.

* Why this tutorial? *
I saw a question on Reddit and thought that it was fun to do. :) The original question is about Mario & Luigi standing/walking next to each other. Also, Zach's program had a problem of boss running away from the player.

* Why do I sound slightly quiet? *
My aircon broke :'(. . . The weather is very hot!!!

Game Code: G-006-YLN-W27

== Check out my other videos ==
Advanced Camera Introduction: https://youtu.be/LvipQ0ZdraE
All Tutorial Playlist : https://www.youtube.com/playlist?list=PLtSpVsgSkvznvgelITL8rliC7_1qdV40L

== Connect with me ==
Twitter: https://twitter.com/jJaeStudio1
Twitch: https://www.twitch.tv/jjaestudio

00:00 Intro & Demo
00:32 Preparation & Motion Reference Setting
01:32 What is the destination?
02:43 Which direction should the AI go?
04:26 Can AI go slower?
06:02 Jump with me, please.
06:21 Maintaining social distance, can?
07:24 If you want to skip math
10:30 Removing white lines
10:46 Attack cuz you're too close!
11:36 Outro & See ya! :)

#GameBuilderGarage #AI #tutorial




Other Videos By jJae Studio


2021-08-09Random/single-item loot for enemies and treasure chests | Game Builder Garage Tutorial
2021-08-08Kid Dracula by Jongjungbu | Game Builder Garage Let's Play~
2021-08-07Multiplayer Game (+Codes) & Playing Viewer Games | Game Builder Garage Live
2021-08-054-Directional 2D Walking Animation: Facing Camera, no Paper (+code) | Game Builder Garage Tutorial
2021-08-03[FPS essential] GRENADE BOMB. Throw a bomb and blow 'em up! +code | Game Builder Garage Tutorial
2021-08-01Semi-Solid Platform with 5 nodons! As seen in Super Mario | Game Builder Garage Tutorial
2021-07-31Playing Viewer's Games (+Codes) and Showing my VideoDojam preview | Game Builder Garage Live
2021-07-30Multiplayer Game Advanced Camera: Fit 2 Players (Smash Bros-Inspired) | Game Builder Garage Tutorial
2021-07-29Can you make a Semi-solid Platform? (Demo) | Game Builder Garage Quiz
2021-07-28[RPG Essential] Dialogue &show/hide text without teleport nodon! PART1 |Game Builder Garage Tutorial
2021-07-27Simple Person AI: follow, (social) distancing, and attack | Game Builder Garage Tutorial
2021-07-262D TOP DOWN walking animation (like Pokemon) feat.MewNoHimitsu | Game Builder Garage Tutorial
2021-07-25It's a small world | Game Builder Garage Showcase #shorts
2021-07-24Playing Viewer's Games and Solving Extra-checkpoints | Game Builder Garage Live
2021-07-23Resident Evil Style Fixed Camera Switch | Game Builder Garage Advanced Camera Tutorial
2021-07-22Fast Fall (like Smash Bros) & Fix Bouncy Jump! | Game Builder Garage Tutorial
2021-07-22Zeraora Solo Ranked MVP Play 300+ Balls with 17 Killls | Pokemon Unite [No Commentary]
2021-07-19Double/Triple/Infinite Jump like Kirby (Smash Bros & Kirby Adventure)| Game Builder Garage Tutorial
2021-07-17Building our game & Playing your games (feat. Mew no Himitsu) | Game Builder Garage Live
2021-07-17Camera Shake | Game Builder Garage Tutorial
2021-07-16Easy 3D control for UFO | Game Builder Garage #shorts Tutorial



Tags:
game builder garage
game builder garage tutorial
tutorial
tutorials
gbg
game
build game
game dev
how to
ai
person
enemy



Other Statistics

Game Builder Garage Statistics For jJae Studio

At present, jJae Studio has 514,105 views spread across 244 videos for Game Builder Garage, with His channel uploaded over 19 days worth of Game Builder Garage videos. This is 57.00% of the total watchable video on jJae Studio's YouTube channel.