NPC Part I // E29 // Make a 2D Action & Adventure RPG in Godot 4

Опубликовано: 19 Май 2026
на канале: Michael Games
10,177
392

In this tutorial we’re going to set up a resource system to store NPC data, create a base scene/class for our NPCs, and give them a simple wandering behavior.

Topics Covered: NPC, Godot custom icons, behavior script, resources, sprites, @tool

New Assets Needed:
npc_and_dialog.zip

Asset Download Page: https://michaelgames.itch.io/2d-actio...
GitHub Repo: https://github.com/michaelmalaska/aar...
Discord:   / discord  

--------------------
Chapters
--------------------
0:00 Intro
0:30 Intro to NPC and Dialog Concept
1:58 Setup Project and Files
4:45 Oggle some sprites
6:37 Grab them Icon assets
7:12 NPC Scene Creation
8:58 NPC Resource Class
10:54 NPC Class Variables
12:10 NPC Scene Setup
15:52 NPC Behavior
18:16 Wander Behavior Script
20:08 Start Coding the NPC Script
22:41 Create and Assign an NPC Resource
25:11 Make NPC a Tool script to update sprite in editor
29:20 Resume NPC Class
34:56 Set up NPC Animations
37:25 Create/Finish Wander Behavior
51:59 Constrain Wandering to Range
54:32 More NPCs!
55:31 Recap/Outro
--------------------

Series Playlist:    • Make a 2D Action & Adventure RPG in Godot ...