Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2D multiplayer sync? #44

Open
epibirikka opened this issue Mar 8, 2023 · 3 comments
Open

2D multiplayer sync? #44

epibirikka opened this issue Mar 8, 2023 · 3 comments

Comments

@epibirikka
Copy link

I have a game idea stuck in my head that depends on 2D multiplayer physics.

But how do you think one would implement this with less bandwidth close to how Roblox does live physics step-by-step? Surely it would be more than just remote-events.

@Toastaspiring
Copy link

As for now, Firing events is the only way, if the movements are basic, the bandwidth used won't be Huge. if you just fire one event with a metatable inside containing the info you won't have to spam multiple events every tick.
hope this helps

@epibirikka
Copy link
Author

As for now, Firing events is the only way, if the movements are basic, the bandwidth used won't be Huge. if you just fire one event with a metatable inside containing the info you won't have to spam multiple events every tick. hope this helps

Okay, so what about colliding with the real 2D world if your 2D character is desynced from the server's physics?

Roblox (in 3D) can handle reactions to collisions of unanchored parts from players moving or one of their projectiles. Recalling from BONK.io, you can collide with other players by force and they'll fly right away.

@jaipack17
Copy link
Owner

jaipack17 commented Apr 16, 2023

I have never tried this in the past, so I can't say much. "Server-sided" UI itself is quite difficult to get working with precision, which can only be done through events as Dsioul said. There are a few games I have seen on Roblox like a flappy bird clone that was made with UI and supported multiplayer. I'm not sure whether they took a path other than events but you could try with events first and then try to slim down on bandwidth as much as you can perhaps?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants