Dynamic Skin Assignment

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

Moderators: Lapo, Bax

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

Dynamic Skin Assignment

Post by croftie »

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: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Dynamic Skin Assignment

Post by Bax »

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
Post Reply