This is a tutorial for how to turn Brackeys first Godot project into a multiplayer game! We add players to the game with MultiplayerSpawner and sync their location and animation with a MultiplayerSynchronizer. I touch on how to use an RPC to send a message to the server. We also look at some common server/client authority strategies for setting up a multiplayer game.
If you haven't already, please watch Brackeys tutorial, it is very good and really helps you understand how to get started with Godot and create a 2D game!
[Brackeys Godot Tutorial]
https://youtu.be/LOhfqjmasi0?si=jtFdfo3l4ZIa6Rdc
https://github.com/Brackeys/first-game-in-godot
[Looking for the code?]
⭐️ https://github.com/BatteryAcid/first-game-in-godot
[Support the channel]
👉 https://www.patreon.com/BatteryAcidDev
👋 Let's talk shop 👇
[Discord] https://discord.gg/4eEwTDjXzk
[BlueSky] https://bsky.app/profile/batteryaciddev.bsky.social
[Insta] https://www.instagram.com/batteryaciddev/
[Mastodon] https://mastodon.gamedev.place/@BatteryAcidDev
[Threads] https://www.threads.net/@batteryaciddev
-----------------------------------------------------------------
00:00:00 TOPICS
00:01:04 CREATE MULTIPLAYER BUTTONS
00:05:15 CREATE MULTIPLAYER MANAGER AUTOLOAD
00:06:30 CREATE SERVER
00:07:21 CONNECTION LIFECYCLE SIGNALS
00:09:32 CREATE CLIENT
00:10:08 DEBUG WITH MULTIPLE WINDOWS
00:12:14 CREATE MULTIPLAYER SCENE
00:13:18 INIT PLAYERS FOR GAME
00:15:00 MULTIPLAYER SPAWNER
00:17:27 ADD PLAYERS TO GAME
00:18:21 REMOVE SINGLE PLAYER
00:19:52 HOW TO DEBUG PLAYER SESSION
00:21:01 BUILD PLAYER CONTROLLER
00:22:47 CREATE INPUT SYNCHRONIZER
00:25:04 APPLY MOVEMENT TO PLAYER
00:25:54 SYNC INPUT DIRECTION
00:26:36 SET PLAYER INPUT AUTHORITY
00:29:17 CREATE PLAYER SYNCHRONIZER
00:31:20 ADD PLAYER JUMP
00:32:00 JUMP RPC
00:35:00 ENABLE CAMERA
00:36:03 ENABLE ANIMATIONS
00:41:21 SYNCHRONIZER PLATFORM
00:45:20 HANDLE MULTIPLAYER DYING & RESPAWN
00:54:01 ADD FINISH LINE SET WINNER
00:57:00 DEMO & WHAT COMES NEXT
#2dgame #respawn #pvp #health #animations #gamedevelopment #2dmultiplayer #godotstartertemplate #godot #godottips #gametech #gamedev #indiedev #multiplayer #network #godotengine #brackeys