Published On Nov 29, 2021
In this video, we will implement an NPC and set his behavior.
We are no longer alone in this world!
If you have any questions, feel free to leave a comment.
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/folder...
Guidelines for using Blue Boy Adventure's code and assets:
https://docs.google.com/document/d/1q...
Thanks for watching.
Timestamps:
0:00 Prepare NPC images
0:54 House-keeping
3:08 Create NPC class
7:34 Create NPC array
7:57 Place NPC on Map
9:23 Draw NPC
13:05 NPC Movement and AI
17:14 Update NPC
19:43 Create Action Lock Counter
22:14 Player to NPC Collision
27:40 NPC to Player Collision
30:51 Final Result
#java2dgame #javagamedevelopment #javatilegame