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:
How can i solve that? Or what i need to do to implement the "create room" function to my game?
Adria Martín
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:
How can i solve that? Or what i need to do to implement the "create room" function to my game?
Thanks.
Hi Adria,
This is being addressed in your ticket.
Thanks,
Liam
Customer Support
Hi Adria,
This is being addressed in your ticket.
Thanks,
Liam
-
Documentation Notes
-
Design issues with user events
-
Using NoSQL
-
Runtime Collections vs Metadata Collections
-
Anonymous authentication from browser app
-
Modules
-
Movement With Unity
-
Problem with url parameters for downloadables
-
Querying NoSql GameSparks database
-
Challenge accesType
See all 2486 topics