Комментарии:
This works well over my LAN. How do I make it so it's a very simple way to do over the internet? Like how do I make it so it uses a UPNP port and connect to my ip address as a peer connection?
ОтветитьSE PUDE ASER EN 3D TAMBIEN?
ОтветитьHow to make the player who entered different from the host?
Ответитьmucha gracias crack 👍
ОтветитьHi, I do not understand English and use translations.
Sorry if it is hard to communicate.
I would like to ask you a question.
Using this video as a basis,
I added a script to change the position of the host and client.
Before call_deferred("add_child",player) in _add_player
The following code was added
if id == 1:
player.position = Vector2(500,500)
else:
player.position = Vector2(0,0)
In this case, there seemed to be no problem.
However, if we try to add more collision to the player, a problem occurs.
We add a collision and make it somewhat larger so that it follows the image.
After that, when we run it, the client side is now positioned directly above the host.
Does anyone know the cause and solution to this problem?
When i trie to conect two computers it doesn't worked
Ответитьdid it exactly the same way and it doesn't work. the host spawns but the client screen shows nothing and doesn't have authority.
Ответитьcouldnt watch the tutorial music made me cry
ОтветитьYou just earned a sub
ОтветитьDoes this code work remotely or on people connected to the same network?
ОтветитьHave a little tip from me as a token of appreciation 👍
ОтветитьWhy on earth you set the authority to the name of the Character? I mean, your functions that creates characters name the first one "1", and the second one something like "@1@1" that you convert to integer "277281" (just random numbers) and the set authoriy to it. You never get the ID of the peer, not even set authoty using this ID and still, this somehow works
I dont get it
thanks, that was a nice guide, maybe you do more multiplayer tutorials?
ОтветитьHello, I use Godot 4.2.1 and the player_scene.instantiate() in _add_player function throw me this error : Cannot call non-static function "instantiate()" on the class "PackedScene" directly. Make an instance instead. Any hints why ?
Ответитьinsanely nice tutorial, I could just watch pause write the code do the steps and voila :) I was wondering how would you add the world, for example if a tilemap was added and we had to sync the tilemap?
ОтветитьSo I haven't tested this and I know very little about networking in games, but I'll assume it works judging from the other comments. I have a question though, is there anyway for someone to abuse P2P connections with malware or viruses through the open ports for the game?
Ответитьhow does multiplayer spawner change the name of the spawned node to the id of the peer? does it just do this automatically?
ОтветитьWould this be a good option for me to use if each of the players is different? they all have different models and abilities
ОтветитьDoes this work on a project that uses dedicated server, rpc?
Ответитьbig thank!
im only beginning the multiplayer discover and this certainly has been a nice start
Thank you very much for this.
The task that I thought would be the hardest ended up being the easiest haha.
Just gotta figure out some more things now.
works only on the same pc as host
Ответить'multiplayer_peer'(on base:'null instance') with value of type 'ENetMultiplayerPeer'.
what's up with this?
Го теперь на Godot 3? Но я попробую сделать это на Godot 3 вместо Godot 4!!!!?❤❤❤
Ответитьmy game not add player
ОтветитьDoes this work online?
ОтветитьThank you for the tutorial! It's very helpful 👍
ОтветитьHi, i need help, how to make "unique" camera in godot for every player?
ОтветитьThis is my favourite tutorial out of probably hundreds(or even thousands) of tutorials I have ever seen. Extremely concise, straight to the point, each step explained. Whole point explained on minimal working example and in 3 minutes. Insta subscribe.
Ответитьout of all the tutorials that ive seen so far I want to also say this one is amazing
ОтветитьThanks to you, 16BitDev, I today made my very first multiplayer prototype. Thank you so much.
Ответить❤
ОтветитьThanks, its works
ОтветитьHow to make if player instantiate object (bullet) other player can see the object
Ответитьhow safe is this multiplayer code for players ?
Ответитьcan you make a slightly extended version with passwords?
ОтветитьThank you so much for this short, simple, yet usefull tutorial. I just could not get multiplayer to work at all before this, but now, it works basically perfectly.
ОтветитьThe way the multiplayer connection is done in the video will give error once a player connects.
Is recommended to make a variant of AddPlayer which checks if "multiplayer.is_server()" is true before trying to spawn a player character, or else it will try creating a copy of the player object, while it already exists in the client.
VERY FAST
ОтветитьI never expected that Godot Multiplayer need just 3 mn, hahha
ОтветитьLocal on my machine it works perfectly. But does it work also for other Devices? My peer to peer connection does not work when i run the game on two different devices sharing the same network. Not even with lan.
Ответитьmas e para pc com celular?
vocé sabe como faz o cross plataform?
One question, can it work online?
ОтветитьCan this work on 3D too?
Ответитьsubbed!
Ответитьthanks for this awesome tutorial!
Can you have more than one multiplayer-spawner in an scene or just one, which has to handle a long auto-spawner-list?
E.g. one spawner for player. Other for NPC-enemies, other for ressources, bullets, ...?
Just a problem I had with this, _add_player isn't a function
ОтветитьAmazing, not only demonstrated knowledge, skills, it demonstrated how quick and easy was to set up using Godot, thank you so much!!!!!!!! the best multiplayer tutorial I 've ever seen.
ОтветитьI find this tutorial very good if you just want to copy-paste everything shown without asking questions... But I can't find a single tutorial that explains the developers' goals and how they implemented it to understand the overall functioning scheme instead of just copy-pasting from all the videos currently available on the internet about multiplayer with GODOT 4.
Ответить