Need some explanation about rooms

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
Jihaysse
Posts: 11
Joined: 28 Aug 2021, 12:23

Need some explanation about rooms

Postby Jihaysse » 28 Aug 2021, 12:28

Hey everyone,

I've just discovered about SmartFoxServer and wanted to know if it can fit my project.

So:
- Mr. X (our player) is in the main "zone" (MMO Room?) as every other players
- When Mr. X starts a fight, an instance of that zone is loaded with him + the enemy
- Now, other players aren't aware of Mr. X and he isn't aware of other players (except the enemy of course).

Is this *relatively* easy to implement using SFS? How would I start?

Thank you for your help!

Kind regards
Last edited by Jihaysse on 20 Oct 2021, 15:35, edited 1 time in total.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Need some explanation about rooms

Postby Lapo » 30 Aug 2021, 09:00

Hi,
yes isn't particularly difficult to implement with SFS2X.

You can use an MMORoom to host all the players and when two clients want to battle each other you can create a dedicated Room where they can play a private game, and then return to the original MMORoom. (Or they could be in two places at the same time, if needed)

I recommend taking a look at the examples and tutorials in this section of the docs:
http://docs2x.smartfoxserver.com/Exampl ... troduction

This is assuming you're using Unity on the client side, if not you will find similar examples for HTML, native iOS and Android etc...

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 44 guests