Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
Pathfinding (NPC Follows Player/Aggro Monsters) - How to Make a 2D Game in Java #40
Play lesson

How to Make a 2D Game in Java - Pathfinding (NPC Follows Player/Aggro Monsters) - How to Make a 2D Game in Java #40

5.0 (0)
8 learners

What you'll learn

This course includes

  • 26 hours of video
  • Certificate of completion
  • Access on mobile and TV

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

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere