Do i need a new object for each player in a multiplayer game?

Thats a bit of a mouthful

But i have a 3d game, with a first person character, and i wanna add at least up to 16 other multiplayer characters.

The code is gonna get really complicated if i need a new object for every player right?

Hi - There’s a couple of free templates, and it’s definitely worth opening one of these.
Multiplayer platformer pickup, a free game template for GDevelop | GDevelop
Looking at the free platformer template.
![Screenshot 2026-11-12 070134|690x320](u
pload://qpnvXjUAnseVkNGVd00OTSTzpUe.png)

The players are generated from an external layout:


The Player objects are numbered 1 to 4
but i can’t see an event to delete the ones that aren’t in use but you don’t need 16 of them (I love you’re optimism btw! - these days I set out to create multiplayers with between zero and 1 players)
To delete the unused or only create the required number -
Previously I used a repeat event at the beginning of the scene to create a player object each for every player in the lobby and give them an ID (object number variable) set to the number of repeats (use a number variable counting up) created at a numbered spawn point (in an array or at the location of a hidden object with an ID).
Or like in the template you can have all 16 players on the scene or on the external layout already numbered and delete all the ones that aren’t in use. (ID greater than the number of players)
Then can you use the multiplayer actions and conditions to determine which player is playing and which object and variables they are in control of.
in the example its done like this.

Wdym?

Why the heck is the second players camera still being put at the first players camera

I desynced the behavior…just, nothing works at all

what i mean is - you want up to 16 players. Say there’s 3 players in the lobby and game starts. You either create 3 player objects or delete 13 of them.
Can you post your events. I don’t work on multiplayer very often and i’ll be busy today - but im sure someone will help!

I pictured a fist slamming on the desk here! perhaps you’re not quite there yet, but there’s nothing quite like multiplayer for bringing out that primal retching frustration! - I needed to pop outside for twenty minutes and listen to the birds at one point during my brief multiplayer dev ‘career’!
Have you tried the line in the template pictured above that turns off smooth camera? It has the condition Object Player is not owned by the current Player.

I think using one Player object for each active player is a cleaner approach than keeping all 16 objects on the scene, especially if the lobby can have a different number of players each time. You could use a repeat event to create the required number of Player objects when the game starts, assign each one a unique player ID, and connect it to the correct spawn point.

The important part is making sure each object is controlled by its own player through the multiplayer ownership conditions. That should also help avoid issues where one player’s actions or camera affect another player. Are you currently creating the Player objects dynamically, or are you using the 16 pre-placed objects from the template?

But my games 3d… it doesnt use something like that. It uses the first person camera

Im confused why i need the template. But, for now i only have two pre placed characters

Hi - There didn’t seem to be a free multiplayer template so i shared the platformer. Its the ownership logic that’s tricky with multiplayer and so it shouldn’t really matter whether its 2d or 3d.
what are you currently using for events for camera? You’ve got the first person camera behaviour. In the template there’s smooth camera to get the camera to follow the player so you could try using a similar condition action approach but with first person camera
I’ve watch this vid by gemdev b4 on 3d multiplayer
Create a Multiplayer Game in GDevelop: Step-by-Step Tutorial! (2024)
he uses this event for camera ownership
image
he uses a repeat event repeating number of players in lobby to create the players but this vid is a few years old. Not sure if its aged at all!

Im never gonna find a solution if another person doesnt have my project, and my project has been repurposed like 8 times, and i dont think i will ever figure out how to implement multiplayer into it,

and its not fun, so like…im not gonna do it

i already watched many videos and tried many solutions similar to the one you showed

I know its not much fun doing ownership logic, and that’s why I don’t do it. But If your game idea needs it then I’m sure that it’s doable with a bit of perseverance, templates and tutorials etc.

It seems ive broken everything that made my game tick trying to make it work with multiplayer

Movement is broken, the camera is broken, the fov is broken, the controls i set are broken

i really didnt wanna start from scratch with the codebase but it seems that i must

In addition, i bought something using my gdevelop points so i didnt waste any money