A walkthrough on how to spawn enemy mobs, or NPCs, into your Godot 4 multiplayer game. We use Godot's multiplayer spawner and multiplayer synchronizer to spawn and sync them across the clients, from the server. I also show how to setup a basic chase mechanic when a player enters the area of activation for an enemy mob. The project in this video uses the 3D Multiplayer Starter Template, linked below, as a basis for these changes.
[Looking for the code?]
👉 / batteryaciddev
Starter project: https://www.patreon.com/posts/godot-4...
👋 Let's talk shop 👇
[Discord] / discord
[Helpful Unity Networking Assets] https://prf.hn/l/n0bZqOe
[Twitter] / batteryaciddev
[Support the channel] https://www.getyourgamedone.com/chann...
00:00:00 INTRO
00:00:24 MOB SCENE SETUP
00:04:20 MOB SYNCHRONIZER NODE START
00:05:17 MOB ACTIVATION AREA NODE
00:07:00 MOB CHASE SCRIPT
00:14:22 MOB SYNC SCRIPT
00:17:13 SPAWN MOBS INTO MAP
00:22:22 FIRST GAMEPLAY TEST
00:22:50 FIX MOB ROTATION
00:24:00 TEST WITHOUT MOB REPLICATION
00:24:40 ADD MOB REPLICATION FOR SYNC
00:26:18 FIX MOB AGGRO
00:30:00 FIX MOB STUCK T-POSE
00:31:32 WORKING DEMO WRAP-UP
#enemyspawn #mobspawn #enemysync #mobchase #3dmultiplayer #godotstartertemplate #godot #godottips #gametech #gamedev #indiedev #multiplayer #network #godotengine #movement