Jump to content

possible to get tile sprite?


Elgan
 Share

Recommended Posts

is it possible to get the sprite from a tile, and then animate, and destroy it?

 

pseudo code

{
tileSprite = getTIleSprite()

 

tileSprite.animate()

 

map.removeTile(x: number, y: number, layer: any);
}

Link to comment
Share on other sites

Oh I see. I'm not sure you can turn a Tile object into a Sprite object directly (though it seems odd that you can't and I'm sure I saw somewhere that you can!) - you'd probably have to remove the tile and at the same time replace it with a sprite using the same image, and then animate it.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...