Multiple user entities 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

Post Reply
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Multiple user entities AOI

Post by PanagiotisMilios »

I understand that SFS2x does not support out of the box one user having multiple entities with an AOI. Is there a chance that sfs3 will have this feature?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Multiple user entities AOI

Post by Lapo »

Hi,
I am not sure what you mean by that.
When connected to the server, you're represented as one entity (the User) both it in a regular Room or MMORoom.

You can have other entities (in a Room or MMORoom) that are related to your User, for example... bullets fired from your gun, or an npc companion that follows you, etc. But they are not tracked as User objects. They are just custom entities you can create and link to a specific owner.

So in the case of an MMORoom you can have MMOItems to add more entities and link them to an User, if needed. We implemented something similar in our SpaceWar multiplayer demo, where each bullet shot by the spaceships is an MMOItem.

Maybe you already know all this, but I wanted to make sure we're on the same page.

Can you provide more details on your use case?
Lapo
--
gotoAndPlay()
...addicted to flash games
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: Multiple user entities AOI

Post by PanagiotisMilios »

Yes, i understand these. I mostly meant controlling units with their own Area of Interest or 'line of sight' as is often called and owned by one user (i.e an Real time strategy game).

I also understand that i can do this implementation myself but it would be nice if this feature was offered by SmartFox 'out of the box'.
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Multiple user entities AOI

Post by Lapo »

No I am sorry. This is beyond the scope of the MMORoom.
It could work for a specialized system that is specifically implemented for a certain kind of games in mind, which is interesting, but not our approach.

Being an SDK we provide API and tools that would allow you to build a specialized system, rather than building the system. We've tried to do more specialized systems in the past and it never worked that well because expectations are very different for different games in that space (RTS, FPS etc...)

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
PanagiotisMilios
Posts: 34
Joined: 22 Jan 2023, 21:48

Re: Multiple user entities AOI

Post by PanagiotisMilios »

Yeah, I understand. That makes sense I guess. Anyway, thanks!
Post Reply