I am having a issue. I am trying to create an array of objects and trying to get that array of objects and break it down in construct 3. I dont know how to read the objects in construct 3 can anyone help?
onJoin(client, options){
this.playerCount ++;
let newPlayer = {
id: client.sessionId,
x: 100,
y: 100
}
this.players.push(newPlayer);
this.players.forEach(player=>{console.log(player)});
this.send(client,{
type: "players",
list: this.players
})
}
How will i be able to read this list of objects in construct 3?