Simulate a Chunk System with the server AOI ?

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

Moderators: Lapo, Bax

genar
Posts: 137
Joined: 13 Jul 2017, 11:49

Simulate a Chunk System with the server AOI ?

Postby genar » 08 Dec 2017, 16:12

Hey there !

My game uses an chunk system. Its pretty much a 2D array, where i calculate in what tile the player is. Im using this mostly for pre-loading the chunks around it.
I already heard about the are of interest. Is possible to configurate it to match with my current chunk system (Size,Range) ? And also what would happen when an other player enters my AOI square ?
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Simulate a Chunk System with the server AOI ?

Postby Lapo » 09 Dec 2017, 22:02

Yes, it should work.
The area of interest works with both 2D and 3D maps. You can start learning about the AOI here:
http://docs2x.smartfoxserver.com/Advanc ... /mmo-rooms

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 54 guests