+3 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.

in Engine by (24 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 Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.