Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. tng2903
  3. Posts
  • Profile
  • More
    • Continue chat with tng2903
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

Posts made by tng2903

RE: Unity3d request position at time

@halome Yup, do it like that you can raise the security bar of your game, if you want to use navagent, you should take a look at Unity headless master server :D

posted in Questions & Help • 12 Jan 2018, 10:14
RE: Unity3d request position at time

I'm totally new to Colyseus but I've worked on multiplayer games for a while, and here is my idea about your problem: server calculate, client do.

In your particular scenario, it should be step like these:

  • Player clicked on location, Client send the action (clicked, [location]) to server
  • Server process, so at time 0.2s, player model will be at x, which direction like so, speed like so, send that information (0.2, [x], [dir],[speed]) to user
  • Client display those information, and wait for next move from server

Then, no matter how many clients connected to your server, they will received the same game state

posted in Questions & Help • 12 Jan 2018, 09:27

© 2023 Endel Dreyer