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 (56 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!

Cheers

by (18 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 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 webmaster@godotengine.org with your username.