Sign In Register

How can we help you today?

Start a new topic
Answered

createMatch for only 1 player?

Hi! 


I'm making a game based on 1vs1 mini-games where the players have to select what mini-game they want to play and after that they can choose if create a room or join an existing room. If they create the room, they will be alone and wait for another player to join or invite someone to the room.


One person from customer support told me to use createMatch to do that but in the documentation says that it requires 2 players to create a match: Spark().getMultiplayer().createMatch(player1, player2):

I tried to use just 1 player but it always return null and i don't know how to solve that.


That is my cloud code in a event that i created for that:


creatematch%20code.png


How can i solve that? Or what i need to do to implement the "create room" function to my game?


Thanks.


Best Answer

Hi Adria,


This is being addressed in your ticket.


Thanks,

Liam

1 Comment

Answer

Hi Adria,


This is being addressed in your ticket.


Thanks,

Liam

Login to post a comment