Hello, I would like to browse all the skins of a tile, without knowing the names of the skins (actually, they are called wall1, wall2, wall3, or/and wall4), but with only the getTopSkin() and getSkinByName(), i can't browse them, since I don't know which walls are in the tile.
Is there some way to achieve this, or could you add this method to the tile class ?
going through a list of a tile's skins
There are no other methods on the Tile (and we have closed development until the official release), but you could simply use a for-loop in this case:
Code: Select all
for (var i = 1; i <= 4; i++)
{
var skin:Sprite = tile.getSkinByName("wall" + i)
if (skin != null)
{
...
}
}
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 57 guests