[Noob] Multiplayer Quiz

Help, im going insane…

Hi everyone! I’m a programming newbie, but I’m developing a game that simulates the mechanics of a dating app.
Basically, I want to create a multiplayer game and I’m already having problems with the first part.

I want each player to answer a series of questions that will define their dating profiles (both physically and “mentally”), but I can’t get the profile questionnaire right.

I have 10 questions, and the maximum number of players is 4. I want gdeveloper to detect how many players are online (I’m using the value Multiplayer::PlayersInLobbyCount()) and from there, each time a button is clicked by a specific player, it adds 1 to the variable “next”(próxima in portuguese). If that variable is equal to the number of players in the lobby, then the question changes.

I’ll leave the screenshots here, sorry for the disorganization and thank you in advance.

Hey!
I haven’t used multiplayer much before, but I have thought of something you could do.

You could make it so every time someone presses a button, it adds 1 to the variable and hide all the buttons for that player. Then, when the variable is 4 (or however many players), it shows the buttons again, this time with new questions.

Sorry that I don’t have logic of screenshots to show right now, someone else can probably help with that! :smile:

1 Like

How would you hide the buttons only for that player?