I need help with the online multiplayer camera

So I am making a parkour game and I am making it multiplayer but my camera switch with my friend’s camera and my friend’s camera switch with my.

There are lots of solutions but one of the easiest is to put the camera in a separate object (that’s set to “no multiplayer”), then make the player object check if they are a local player, and if so, make them Attach the object that has the camera in it

Screenshot 2025-04-18 150320
like this

Screenshot 2025-04-18 150400

Do you have a link to the game? it’s kind of hard to tell if that will work without context

yes, but the game is still in development so it might be buggy.

That’s fine, just being able to see where that code is implemented should help with being able to tell if it will work. (Or maybe I should just ask, does it work?)

no. it dose not work

Ok could I just get the link to the game then?

ok here

Ok so it looks like you are trying to Attach the player to the camera, when you instead should Attach the camera to the player
(this is the only code that should go in the camera)


(And then this should be the player’s code)

For future reference, the Attach behavior creates a new copy of an object that follows around the object that has the Attach behavior in it; also attached objects have no physics (so attaching a player object won’t work since the player would have no physics)

thank you! I am good at Flowlab but I never tried online multiplayer.

1 Like