0 votes

Hello! I'm making a game in Godot 4 that has singleplayer and multiplayer. I want to make scenes that can be used in both modes so it can save time and resources, but there are scenes that needs to behave a little different depending whether it's singleplayer or multiplayer. Is there a method to check whether networking is being used or not?

Godot version 4.0
in Engine by (94 points)

1 Answer

+1 vote
Best answer

Functioning multiplayer network code is bound to have some amount custom code provided by you. I'd suggest that you simply find an appropriate place in that code to set some global, boolean variable to true when you know your network code is being used.

by (21,800 points)
selected by
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.