0 votes

Is it possible to make a default script for players in a multiplayer game? Not adding multiplayer into my game yet, just asking.

Godot version 3.3
in Engine by (59 points)

1 Answer

0 votes

Your question is quite missing some details, but i will try to answer it the best i can.

Any code you write withing Godot can basically become multiplayer. Godot actually implements a dead simple high level API that i recommend you to document about: https://docs.godotengine.org/fr/stable/tutorials/networking/high_level_multiplayer.html

When writing your player script, you can use rset methods to synchronise variables, for example your player node's position with other players. RPCs also allow you to call functions on clients, multiplayer is a wonderfully rich topic which you should document yourself in to master!


by (73 points)

I meant to say, how to make a default script for players with some variables, movement, etc. & attach it to other players.

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.