0 votes

Hi! I'm currently working on a multiplayer game using server/client architecture. I was wondering what the best way to handle point-and-click movement is. (or every other aspect of the game for that matter)

For instance, I have a tilemap for my game. Should I:

  • create remote function on clients to simply move sprites based on a given path, and keep the optimal path calculation only on the server, then just provide the path to the clients for them to follow?
  • or create exact same script on both client and server and have all entities calculate paths at the same time? (which I hope yield exact same results)

I guess the question applies to a lot of other things like damage, hp caluclation, etc. Movement was just used as an example. Thank you so much!

in Engine by (14 points)

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