Remember me
You are here: HomeForum
Welcome, Guest
Username: Password: Remember me

TOPIC: multiplayer (consumables)

multiplayer (consumables) 2 years 8 months ago #2764

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
I generated 100 elements in a large map using "to" and placing the object inside it, but the problem is that when using multiplayer, player 2 does not see the 100 elements generated by player 1 in the same position, the player 2 sees the elements but in different positions and does not see the same positions of the elements that player 1 generated.

How could you match or sync the position of each generated item without being different?

proyect: www.gamemaker3d.com/player?pid=054616159795
Last Edit: 2 years 8 months ago by GODEBEX.
The administrator has disabled public write access.

multiplayer (consumables) 2 years 8 months ago #2766

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
If you have 100 objects and want to sync them, don't use Multiplayer Instance, but only Multiplayer Send + Multiplayer Receive.
Use Multiplayer instance only for the main player or when the main player shoots bullets, for example, you can generate the bullet object as Multiplayer Instance, and it will automatically be created on the other players.
You can take a look at the multiplayer car example. The cubes are synchronized across the players there.
Regards,
Cyberix3d team
The administrator has disabled public write access.
The following user(s) said Thank You: GODEBEX

multiplayer (consumables) 2 years 8 months ago #2768

  • GODEBEX
  • GODEBEX's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 158
  • Thank you received: 42
hi i've already been testing, sometimes it syncs but other times it doesn't.
check the last two boxes you mentioned, if there is another way that they are always synchronized you can let me know.


ss.png



here is the example: www.gamemaker3d.com/player?pid=054616159795
Last Edit: 2 years 8 months ago by GODEBEX.
The administrator has disabled public write access.

multiplayer (consumables) 2 years 8 months ago #2769

  • cyberix3d
  • cyberix3d's Avatar
  • OFFLINE
  • Administrator
  • Posts: 658
  • Thank you received: 624
We see whats the problem.
Syncing objects inside a for command is not supported.
We will add support and let you know when it is ready.
Regards,
Cyberix3D team
Last Edit: 2 years 8 months ago by cyberix3d.
The administrator has disabled public write access.
Time to create page: 4.912 seconds