+2 votes

Because I want to use a non-Godot application to connect 2 players together in a 2 player turn-based game, I am attempting to use PacketPeerUDP for networking. I also want to use RPC to make the game move. However, RPC apparently needs the MultiPlayer API networking to set a peer for RPC to work

Is it possible to use RPC and PacketPeerUDP together, and if so, how? Many thanks for any clues.

asked Jul 9 in Engine by dkenshu (21 points)

I believe the answer is no, because RPC needs a NetworkedMultiplayerPeer and you can't bolt one of those onto PacketPeerUDP. As implied by https://docs.godotengine.org/en/3.2/tutorials/networking/high_level_multiplayer.html under Mid-Level abstraction.

So this leads to the goal question: how to implement a peer connection between 2 smartphones thru the network? Best I can tell, some kind of relay server is easiest. But relay what?

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.