Let's get our NPCs moving around waypoints and paths that we can set out in our scene! We'll even add an option for a wait time between moving to the next waypoint, so they can take a little break too. We'll make their move speed and wait time customisable to give each NPC individuality!
You can follow the playlist 🐸 to this top down base template!
Full Playlist: • Top Down Tutorial Series - Unity 2D
Get the code: / make-characters-123244379
Download the Top Down Template🐸: https://gamecodelibrary.itch.io/top-d...
Sprite sheet: https://pixel-boy.itch.io/ninja-adven...
All source code for all videos I have made and will make in the future can be found on my Patreon:
/ gamecodelibrary
Be sure to subscribe to see what kind of adventure we can go on together! I'm excited! :-)
If you have any suggestions, feedback or questions, be sure to comment below! Any opinions will help me out on this journey ♡
Check out the full platformer playlist!
• FULL Platformer Tutorial Series - Unity 2D
BUY THE COMPLETE PLATFORMER GAME TEMPLATE NOW!!!
https://gamecodelibrary.itch.io/2d-pl...
/ shop
#unity #gamedev #gamedevelopment #unity2d #topdown
0:00 - Intro
0:22 - Waypoints
1:13 - WaypointMover Script
5:17 - Modulus Operator Explanation
5:37 - Script Continued
6:30 - Object Setup
7:00 - Test
7:15 - Another NPC Example
7:56 - Final Test
8:18 - Next Video - Dynamic Sprite Swapping
8:39 - Get the Code!
9:01 - Outro