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

Herano

@Herano

Chat Follow Unfollow
0
Reputation
1
Posts
586
Profile views
0
Followers
0
Following
Joined 11 Dec 2022, 16:22 Last Online 26 Dec 2022, 01:32

  • Profile
  • More
    • Continue chat with Herano
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
Herano Follow

Posts made by Herano

How would you do enemies AI on a multiplayer game. If we want that the players fight the same enemy.

One of the challenges when developping a multiplayer game is sync enemies through all clients and make them fight together. How would you manage this for an average enemy and an average boss ( with attacks ).

My approach is basically giving the first player to start the fight, the Battle leader role. Basically they are going to host the fight for the server. They will be the reference for the server.

Their job will be to send a and b variable to server. The server will then broadcast those values to client. They will pathfind and perform the movement there. So I don't waste bandwith on transfering the position of EACH enemy.

The battle leader will have the role of doing all the enemy AI and attacks. It will send message to server if enemy does special attack and client will try to reproduce it.

I still didn't try this approach though, I will shortly and will update on it.

Meanwhile, I want to know how you would do such a thing.

Thank you

posted in General Discussion • 11 Dec 2022, 19:17

© 2023 Endel Dreyer