Summary
Keywords
Full Transcript
If you want to learn how the A* algorithm works, please check: https://youtu.be/2JNEme00ZFA In this video, we will implement a pathfinding algorithm so NPCs/enemies can search the path and reach a specified location/target. What we do this time: - Guiding an NPC to a different location - Letting an NPC follow you - Making monsters start attacking/chasing you If you want to use my assets (images/maps/sound) that are used in this tutorial, here's the link: https://drive.google.com/drive/folders/1OBRM8M3qCNAfJDCaldg62yFMiyFaKgYx?usp=sharing Guidelines for using Blue Boy Adventure's code and assets: https://docs.google.com/document/d/1qcafOofpXYd_QPr95qbgfb1GYxXKgSZb/ Timestamps: 0:00 Introduction 1:38 Creating Node class 2:50 Creating Pathfinder class 19:36 Letting NPC finds the path 35:03 Drawing the path on the screen 37:16 NPC follows the Player 39:06 Monsters get aggro and chase the Player 44:21 FINAL RESULT
