Godot 4 Makes Multiplayer EASY!

Godot 4 Makes Multiplayer EASY!

Crigz Vs Game Dev

1 год назад

87,510 Просмотров

Creating multiplayer games has never been easier! Godot 4 has made some changes and new additions that make it mega simple to prototype a multiplayer game. I built a quick project in 3 hours, here's what I learned!

Resources:
Replication: https://godotengine.org/article/multiplayer-changes-godot-4-0-report-4
RPC's: https://godotengine.org/article/multiplayer-changes-godot-4-0-report-2

Tank model: https://sketchfab.com/3d-models/stylized-tank-bb4be3e59cf84ee4b842da57d97cf1ce

Chapters:
0:00 Intro
0:23 MultiplayerSpawner
1:50 MultiplayerSynchronizer
3:50 RPC's
5:18 Outro

Тэги:

#Godot_4 #Godot #Multiplayer #Networking #Multiplayer_Game #Game #Indie_dev #Tutorial #Games_dev
Ссылки и html тэги не поддерживаются


Комментарии:

TheRealDinotron
TheRealDinotron - 16.11.2023 20:26

Sorry if this is a dumb question, but in this implementation is this "MutliplayerSpawner" node running on its own dedicated server or is it just "owned" by the first client who connects?

Ответить
Eric Wood
Eric Wood - 30.10.2023 22:19

yes a MP tutorial would be great!

Ответить
Paulchen
Paulchen - 29.09.2023 02:39

please can we have the repo for this project? It would help me tremendously to actually look at a working example with all the setup and scripts instead of just some small snippets and explanations.
Please make this project available to everybody, that would be so awesome! :)

Ответить
ivi exe
ivi exe - 25.09.2023 20:56

Pls a cpmplete tutorial

Ответить
Jared
Jared - 23.09.2023 16:14

I would love a tuorial series on this, especially for local multiplayer

Ответить
alexleonardkrea
alexleonardkrea - 14.09.2023 23:23

I would definitely love to see more on this.

Ответить
Jorge Ramirez
Jorge Ramirez - 31.08.2023 06:33

Love to see a tutorial using this tank game as the example

Ответить
Bertan Gokalp
Bertan Gokalp - 18.08.2023 17:20

Tutorial please

Ответить
N-Xrd
N-Xrd - 10.08.2023 21:44

Low level info please!

Ответить
Meshi
Meshi - 05.08.2023 18:49

Hey, I can't seem to get the same child replication behaviour you have with the shield. The player nodes are replicated correctly with their position but if I instantiate something under the player and add it as a child it doesn't get replicated to the peers. I have the scene added to the MultiplayerSpawner. I've created a separate node and spawner at a higher level and added to this instead as a test and this will replicate correctly to all peers, but because the ability should ideally be a child of the player it's not the solution I wanted. Any idea what I could be missing get get child nodes to replicate? Thanks

Ответить
Darth Negative Hunter
Darth Negative Hunter - 23.07.2023 14:46

actually annotations are a thing in godot 3 as well. you can add master, mastersync, puppetsync, puppet before a function or a variable to configure it

Ответить
Jonathan Tash
Jonathan Tash - 06.07.2023 00:43

I really want to make a multiplayer game to play with my friends, so yes, I tutorial series would be extremely helpful.

Ответить
VoidOfSoul
VoidOfSoul - 30.06.2023 00:14

Tutorial for how to make a multiplayer game pls🥺

Ответить
benjamin deverell
benjamin deverell - 16.06.2023 21:17

i browsed my way to this vid, i would love to see a step by step, even for something as simple as a rock paper scissors sim. both prototyping and polishing for production on multiplayer.

Ответить
Andredy
Andredy - 01.06.2023 20:57

and all this will work if all of the players uses the same router, right?) How to connect them via the Internet?

Ответить
Luis Roma
Luis Roma - 23.05.2023 18:18

how do you manage spawning different players in different locations? for me, the client side position returns to the default node position, instead of the spawn position i am trying to asign

Ответить
Menno Homan
Menno Homan - 18.05.2023 23:32

A tutorial on this topic would be greatly appreciated

Ответить
XerotoLabs
XerotoLabs - 07.05.2023 22:17

An in depth one owuld be great . I'm still having issues while allowing players disconncet and come back to a session . I end up with the old ghosts being sync'ed on all subsequent new players ?
I much have some thing wrong in the disconnect and dropped connection some place.

Ответить
Caleb Park
Caleb Park - 01.05.2023 20:15

what's that intro song? :0

Ответить
Jeff Lewis
Jeff Lewis - 27.04.2023 16:26

As someone who is just starting to check out Godot I'd definitely be interested in a tutorial for multiplayer!

Ответить
Mathis
Mathis - 26.04.2023 20:15

hey thx for the tuto. I have a little problem, i dont have any error, but when i launch the exported game, and i host, the mouse is not captured, and i can't move. Instead i can do it when im in godot, do you know where is the problem ?

Ответить
Coltr1
Coltr1 - 15.04.2023 00:48

Can you go into more detail on the players creating bullets?

Ответить
Ewald Schulte
Ewald Schulte - 06.04.2023 23:13

There's still no step-by-step-tutorial, or?

Ответить
robotamori
robotamori - 01.04.2023 21:26

Tutorial please!!! 😍

Ответить
tomas hutchinson
tomas hutchinson - 01.04.2023 20:07

How did you spawn in projectiles? I'm currently having a lot of trouble with this and some help would be greatly appreciated.

Ответить
codelinx
codelinx - 29.03.2023 04:53

Low level stuff please

Ответить
IceManLT
IceManLT - 26.03.2023 19:35

Could you do a tutorial or give an example, how to do scene switching in multiplayer? Mainly some sort of lobby, when switch scene to some main game scene and spawn all players

Ответить
Pleyland
Pleyland - 16.03.2023 10:15

I'm trying to synchronize an Item list such as the one in the old multiplayer websocket demo. I have no idea whether to use a synchroniser or a spawner because the items in the list are generated by the node itself

Ответить
Pious
Pious - 06.03.2023 03:57

Wondering what the thoughts are in making a Godot 4 multiplayer tutorial 👀

Ответить
KAAS IS BAAS
KAAS IS BAAS - 28.02.2023 23:12

tutorial series would be awesome on myltiplayer

Ответить
Uropig
Uropig - 25.02.2023 15:06

music sauce?

Ответить
Tanto Edge
Tanto Edge - 31.01.2023 10:38

the project in a repo anywhere?

Ответить
Poor Man Productions
Poor Man Productions - 23.01.2023 04:26

do you have a github where the code for this lives? I'd love to take a look at it, that's the easiest way for me to learn

Ответить
prufaraSS
prufaraSS - 21.01.2023 12:04

damn dudes, i've been working with godot engine multiplayer for a quite long time and seeing THIS is omega pog! I can't believe my eyes!

Ответить
Thomas Eubank
Thomas Eubank - 19.01.2023 04:36

700th like

Ответить
Hairic Lilred
Hairic Lilred - 15.01.2023 23:25

this is an interesting and welcomed change to godot, can't wait to try it out

Ответить
Poor Man Productions
Poor Man Productions - 13.01.2023 23:25

multiplayer tutorial? YES PLEASE

Ответить
Nito Koshiro
Nito Koshiro - 09.01.2023 18:18

While this advanced engine-specific stuff is really cool, how do you even let people connect to a game you made at all? In the age of IPv6, port forwarding is no longer possible for many people, and buying server space online costs real money that not everyone is willing to spend on a silly leisure project. How to get online functionality off the ground to begin with is the most interesting and least discussed subject of all.

Ответить
TheMaskedPlayer
TheMaskedPlayer - 06.01.2023 11:07

PLEASE do a tutorial series on it!

Ответить
Joey D Darko
Joey D Darko - 04.01.2023 03:12

Would also love to see a Multiplayer/Networking tutorial

Ответить
lightcomic
lightcomic - 30.12.2022 18:30

Would it be possible to get this working with steam?

Ответить
sheen of the realm
sheen of the realm - 25.12.2022 02:34

Any chance of this tank game tutorial?

Ответить
PriZm
PriZm - 22.12.2022 02:55

Is there any chance you'll post the source code for this project? It would be very much appreciated.

Ответить
fatduckling
fatduckling - 17.12.2022 06:48

Would absolutely love a tutorial series for this type of game!

Ответить
Noah
Noah - 13.12.2022 06:20

I'd love to see a basic tutorial on how to make a small toy game like this in Godot with multiplayer

Ответить
김SW
김SW - 11.12.2022 15:49

Godot and your tutorial are both awesome.

Ответить
Bla Bla
Bla Bla - 11.12.2022 14:27

Can anyone tell if this is a tutorial for multiplayer that can be played in different devices??

Ответить