Hi,
I aould like to add in runtime an image for a supertile placed on the map, what approch to take ?
shachar
adding image in runtime to a supertile
Re: adding image in runtime to a supertile
I think the tile should already contain the image, as an hidden skin. Then you could have a method on the skin's class to make it visible when needed.
Otherwise you have to add an empty skin with a name to a tile, then use the Tile.getSkinByName method to access it and add the new image to it dynamically.
Otherwise you have to add an empty skin with a name to a tile, then use the Tile.getSkinByName method to access it and add the new image to it dynamically.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team