Offline mode for implementations of Noray #467
-
|
hi! i just wanted to ask: is there a clear-cut method of making the implementations of the netcode work independent from a session hosting, so as to avoid duplicating code for game controls between singleplayer and multiplayer? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Hi @Wilker-uwu, You can do this without any noray code. |
Beta Was this translation helpful? Give feedback.
Hi @Wilker-uwu,
I'd start with calling
NetworkTime.start()- it will start the tick loop, essentially starting netfox. Since the default peer is anOfflineMultiplayerPeer, it will pretend RPCs and any kind of data goes through instantly. So in essence, you'll be hosting a game for yourself, without ever transmitting any data over the network.You can do this without any noray code.