
Simple Person AI: follow, (social) distancing, and attack | Game Builder Garage Tutorial
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
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.