Dynamic Skin Assignment

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

Moderators: Lapo, Bax

croftie
Posts: 49
Joined: 24 Jul 2013, 08:35
Location: Algarve Portugal
Contact:

Dynamic Skin Assignment

Postby croftie » 13 Aug 2014, 13:51

Is it possible to assign a skin to a tile dynamically from the server? The context is one where users are allowed to create new rooms in SFS2x and I would like to have a new skin or existing skin with a trigger to facilitate entering that new room.
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Dynamic Skin Assignment

Postby Bax » 13 Aug 2014, 15:37

This is not possible on the server side.
On the client side you could have a named skin which you make invisible (using the Tile.getSkinByName method) by default as soon as the map is loaded, unless you need to display it to activate the room change trigger.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 9 guests