about Unity and SFS2X two question

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

Post Reply
kbband
Posts: 2
Joined: 15 Jul 2013, 04:31

about Unity and SFS2X two question

Post by kbband »

I'm trying to use the example "FPS" and I want to do that my game has to wait for 4 people to start a game, and also a game has three minute to play.
But I don't know how to define the Extension(sever) and it can send to client.
Who can give me some idea or suggestion . :(
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: about Unity and SFS2X two question

Post by Lapo »

You can use the server side GameAPI and create a private game for four people.
The system will send the invitations to everyone and wait for them to join the game Room before starting.
See here:
http://docs2x.smartfoxserver.com/Advanc ... s/game-api

For the game duration, you can start a scheduled Task that will trigger after N minutes and tell you that the game is over.
http://docs2x.smartfoxserver.com/Gettin ... wtos#item7
Lapo
--
gotoAndPlay()
...addicted to flash games
kbband
Posts: 2
Joined: 15 Jul 2013, 04:31

Re: about Unity and SFS2X two question

Post by kbband »

thank you for answering my question!
Thanks Lapo! :D
Post Reply