This is Part 29 of Make a Game Like Pokemon Series in Unity. In this video, we'll make the NPCs walk, and we can specify a pattern in which each of them should walk. We'll separate the common logic of the characters from the PlayerController script so they can be used by all other characters.
Join my Patreon to support this series and get access to the Complete Project files ( which also contains some advanced features that are not covered here)
/ complete-project-39632268
Script files for each part of this series (You can use this to compare with your script and find any mistakes)
/ script-files-for-38708232
Download the art assets needed to follow along with this series
https://github.com/GameDevExperiments...
0:00 - Intro
0:44 - Separate common behaviours to Character script
8:18 - OnMoveOver Action
10:43 - Separate layers into GameLayers script
13:39 - Clean up PlayerController script
14:58 - Use Character script to move Player
17:58 - Make the NPC walk
22:53 - Walk in the pattern specified
29:20 - Don't walk during dialogues
If you like this series, consider subscribing to the channel and leave a like on the video to help this channel grow.