My own yard map

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
kevinc
Posts: 4
Joined: 22 Dec 2009, 23:48

My own yard map

Post by kevinc »

We currently have a common area (map) where everyone can see one another and talk etc. We'd like to be able to teleport (via a sensor tile) to our own property from there (but only WE are able to see our own property).

For example, if there were 3 different people in the common area and they all used the sensor tile to go to their properties (map) then each person would feel like they were in their own map (they wouldn't see anyone).

I'm looking for ideas on how to implement this.

Thanks.
5th gear tapped wide... ya can't lose
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

All the avatar movement events contain the id of the avatar (user), so you could redirect each user to his own map.
Paolo Bax
The SmartFoxServer Team
kevinc
Posts: 4
Joined: 22 Dec 2009, 23:48

Post by kevinc »

Good idea. I think I understand. So basically there would be a bunch of duplicate map xml files with a unique user id appended to the name. When a user is about to teleport we would look up that unique id and map xml file and go from there.
5th gear tapped wide... ya can't lose
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Exactly.
Paolo Bax
The SmartFoxServer Team
Post Reply