Jump to content

TileSprite missing Sprite features?


gnack
 Share

Recommended Posts

I'm not sure if this is deliberate or not, but it seems from doing some Googling that TileSprite used to contain the alive property and the kill(), revive() methods, but no longer does.  Is there any way to easily merge the TileSprite and the Sprite classes so I can have the tiling ability with the kill() revive() methods, and the alive property?

 

To explain a little clearer why I'm after this, I have "flood water" that periodically appears at the bottom of my game.  To avoid repetition in the artwork, I've made the asset 50 x 125 pixels in size, and then used a TileSprite to repeat it horizontally over an 800 pixel wide game area.  This works really nicely, but I want to be able to kill and revive it as I need it.  Am I going about this the wrong way maybe?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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