Open CoderReece opened 5 years ago
I've the gamemaker studio 2 copy! Although it doesn't seem to sync box2d physics! And i'm still unsure of how to detect if the localplayer is player 1
After some digging you can check the object "obj_htme" for a variable isServer. My final concern: Can we sync box2d physics or will i have to send the x and y variables and set the manually.
box2d physics wont sync out of the box. You need to manually synt this. Note that when you set a position for a box2d object, it might not work as expected. Box2d object don't like being set to a specific position becuase it will interrupt the physics animations. Best practice is to only have the server simulate the physics and the clients only get position updates. But you need to come up with a way to get a smooth movement.
Sorry for making a github issue, i wasn't sure where to go and i'm in a hurry!
So before i made a function that could detect if a player was the first to connect (The server) and i can't figure out how i did it..
and lastly where's the gamemaker studio 2 version?
Thank you for taking time to read my issue!